[Issue 1120] New - maven2 job archiving too often

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 1120] New - maven2 job archiving too often

tblack-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=1120
                 Issue #|1120
                 Summary|maven2 job archiving too often
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|other
             Assigned to|issues@hudson
             Reported by|tblack






------- Additional comments from [hidden email] Wed Jan  2 17:18:21 +0000 2008 -------
I have a multimodule maven2 build configured in hudson as a maven2 job.  Hudson
1.149.  Maven 2.0.7.

As part of the build, we have integrated pmd and checkstyle reporting into the
'verify' phases of the build.  If any violations are found, then the build fails.

In hudson, each of these executions causes hudson to archive the project
artifacts.  In addition we also run the deploy goal for each hudson build, which
also causes hudson to archive the same artifacts, yet again.

I've also noticed that each "[Hudson] Archiving..." step gets slower as the
build progresses.

The result being build times on the order of 3x+ longer than necessary.

Below is an excerpt from my build.

===


[INFO] ----------------------------------------------------------------------------
[INFO] Building Company :: Toolkit :: NAC Producers :: Launchers :: Servlet ::
Jar Artifact
[INFO]    task-segment: [clean, install, deploy]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/target
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 2 source files to
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/target/classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] No tests to run.
[HUDSON] Recording test results
[INFO] [jar:jar]
[INFO] Building jar:
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/target/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
[INFO] Preparing pmd:check
[HUDSON] Archiving
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/pom.xml
[HUDSON] Archiving
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/target/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
[INFO] [pmd:pmd]
[WARNING] Unable to locate Source XRef to link to - DISABLED
[HUDSON] Archiving
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/pom.xml
[HUDSON] Archiving
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/target/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
[INFO] [pmd:check {execution: default}]
[INFO]
[INFO] [pmd:pmd {execution: default}]
[WARNING] Unable to locate Source XRef to link to - DISABLED
[INFO] Preparing checkstyle:check
[HUDSON] Archiving
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/pom.xml
[HUDSON] Archiving
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/target/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
[INFO] [checkstyle:checkstyle]
[WARNING] Unable to locate Source XRef to link to - DISABLED
[HUDSON] Archiving
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/pom.xml
[HUDSON] Archiving
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/target/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
[INFO] [checkstyle:check {execution: default}]
[INFO] [install:install]
[INFO] Installing
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/target/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
to
/home/hudson/.m2/repository/com/Company/toolkit/nac/producer/launcher/servlet/nac-producer-launcher-servlet-impl/0.0.1-SNAPSHOT/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] No tests to run.
[HUDSON] Recording test results
[INFO] [jar:jar]
[INFO] Building jar:
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/target/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
[INFO] Preparing pmd:check
[HUDSON] Archiving
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/pom.xml
[HUDSON] Archiving
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/target/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
[INFO ] Installing
/home/hudson/hudson/jobs/toolkit/modules/com.Company.toolkit.nac.producer.launcher.servlet$nac-producer-launcher-servlet-impl/builds/2008-01-02_10-39-17/archive/com.Company.toolkit.nac.producer.launcher.servlet/nac-producer-launcher-servlet-impl/0.0.1-SNAPSHOT/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
to
/home/hudson/.m2/repository/com/Company/toolkit/nac/producer/launcher/servlet/nac-producer-launcher-servlet-impl/0.0.1-SNAPSHOT/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
[INFO] [pmd:pmd]
[WARNING] Unable to locate Source XRef to link to - DISABLED
[HUDSON] Archiving
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/pom.xml
[HUDSON] Archiving
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/target/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
[INFO ] Installing
/home/hudson/hudson/jobs/toolkit/modules/com.Company.toolkit.nac.producer.launcher.servlet$nac-producer-launcher-servlet-impl/builds/2008-01-02_10-39-17/archive/com.Company.toolkit.nac.producer.launcher.servlet/nac-producer-launcher-servlet-impl/0.0.1-SNAPSHOT/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
to
/home/hudson/.m2/repository/com/Company/toolkit/nac/producer/launcher/servlet/nac-producer-launcher-servlet-impl/0.0.1-SNAPSHOT/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
[INFO] [pmd:check {execution: default}]
[INFO]
[INFO] [pmd:pmd {execution: default}]
[WARNING] Unable to locate Source XRef to link to - DISABLED
[INFO] Preparing checkstyle:check
[HUDSON] Archiving
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/pom.xml
[HUDSON] Archiving
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/target/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
[INFO ] Installing
/home/hudson/hudson/jobs/toolkit/modules/com.Company.toolkit.nac.producer.launcher.servlet$nac-producer-launcher-servlet-impl/builds/2008-01-02_10-39-17/archive/com.Company.toolkit.nac.producer.launcher.servlet/nac-producer-launcher-servlet-impl/0.0.1-SNAPSHOT/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
to
/home/hudson/.m2/repository/com/Company/toolkit/nac/producer/launcher/servlet/nac-producer-launcher-servlet-impl/0.0.1-SNAPSHOT/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
[INFO] [checkstyle:checkstyle]
[WARNING] Unable to locate Source XRef to link to - DISABLED
[HUDSON] Archiving
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/pom.xml
[HUDSON] Archiving
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/target/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
[INFO ] Installing
/home/hudson/hudson/jobs/toolkit/modules/com.Company.toolkit.nac.producer.launcher.servlet$nac-producer-launcher-servlet-impl/builds/2008-01-02_10-39-17/archive/com.Company.toolkit.nac.producer.launcher.servlet/nac-producer-launcher-servlet-impl/0.0.1-SNAPSHOT/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
to
/home/hudson/.m2/repository/com/Company/toolkit/nac/producer/launcher/servlet/nac-producer-launcher-servlet-impl/0.0.1-SNAPSHOT/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
[INFO] [checkstyle:check {execution: default}]
[INFO] [install:install]
[INFO] Installing
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/target/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
to
/home/hudson/.m2/repository/com/Company/toolkit/nac/producer/launcher/servlet/nac-producer-launcher-servlet-impl/0.0.1-SNAPSHOT/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
[INFO] [deploy:deploy]
altDeploymentRepository = null
[INFO] Retrieving previous build number from Company-maven2-repository
Uploading:
http://10.5.5.xx:8081/artifactory/libs-snapshots/com/Company/toolkit/nac/producer/launcher/servlet/nac-producer-launcher-servlet-impl/0.0.1-SNAPSHOT/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
[INFO] Retrieving previous metadata from Company-maven2-repository
[INFO] Uploading repository metadata for: 'snapshot
com.Company.toolkit.nac.producer.launcher.servlet:nac-producer-launcher-servlet-impl:0.0.1-SNAPSHOT'
[INFO] Retrieving previous metadata from Company-maven2-repository
[INFO] Uploading repository metadata for: 'artifact
com.Company.toolkit.nac.producer.launcher.servlet:nac-producer-launcher-servlet-impl'
[INFO] Retrieving previous metadata from Company-maven2-repository
[INFO] Uploading project information for nac-producer-launcher-servlet-impl
0.0.1-SNAPSHOT
[HUDSON] Archiving
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/pom.xml
[HUDSON] Archiving
/home/hudson/hudson/jobs/toolkit/workspace/trunk/nac-producers/launchers/servlet/jar/target/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
[INFO ] Installing
/home/hudson/hudson/jobs/toolkit/modules/com.Company.toolkit.nac.producer.launcher.servlet$nac-producer-launcher-servlet-impl/builds/2008-01-02_10-39-17/archive/com.Company.toolkit.nac.producer.launcher.servlet/nac-producer-launcher-servlet-impl/0.0.1-SNAPSHOT/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar
to
/home/hudson/.m2/repository/com/Company/toolkit/nac/producer/launcher/servlet/nac-producer-launcher-servlet-impl/0.0.1-SNAPSHOT/nac-producer-launcher-servlet-impl-0.0.1-SNAPSHOT.jar

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 1120] maven2 job archiving too often

Kohsuke Kawaguchi
Administrator
https://hudson.dev.java.net/issues/show_bug.cgi?id=1120



User kohsuke changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |STARTED
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Wed Jun  4 19:02:45 +0000 2008 -------
Any chance anyone can contribute a test case?

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 1120] maven2 job archiving too often

Kohsuke Kawaguchi
Administrator
In reply to this post by tblack-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=1120






------- Additional comments from [hidden email] Thu Jul  3 01:50:52 +0000 2008 -------
Created an attachment (id=311)
Output indicating the call site of archiving


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 1120] maven2 job archiving too often

Kohsuke Kawaguchi
Administrator
In reply to this post by tblack-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=1120






------- Additional comments from [hidden email] Thu Jul  3 01:52:57 +0000 2008 -------
I think I reproduced the problem with
https://www.dev.java.net/svn/hudson/trunk/hudson/test-projects/assembly

This appears to happen when execution moves from one kind of mojo to another
kind. Exactly what makes a difference in "kind" I need to investigate, but I
suspect it's aggregator-style vs non-aggregator style.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 1120] maven2 job archiving too often

abayer
In reply to this post by tblack-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=1120



User abayer changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|STARTED                   |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |DUPLICATE
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Sat Oct 31 00:00:10 +0000 2009 -------
Duplicate of resolved bug.

*** This issue has been marked as a duplicate of 1870 ***

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]