java - Jenkins: Duplicate building of jars in a single build -


i using jenkins 1.596 along maven 3.1.1. have multiple branches in repository , using following goals build:

'-t 5 clean install' 

when start build, shows following log:

started user anonymous building in workspace /var/lib/jenkins/jobs/<my_job>/workspace  > git rev-parse --is-inside-work-tree # timeout=10 .... [workspace] $ /usr/local/apache-maven/apache-maven-3.1.1/bin/mvn -s /var/lib/jenkins/.m2/settings.xml -t 5 clean install [info] scanning projects... 

it shows projects , reactor build order. executes tests , builds jars. following success message gets displayed after completion of build:

build success [info] ------------------------------------------------------------------------ [info] total time: 3:39.752s (wall clock) [info] finished at: wed apr 15 00:02:57 bst 2015 [info] final memory: 104m/406m 

now, issue is, after success message, repeats whole build again. starts scanning poms, downloads jars, executes tests , again, can see success message. following starting trace of unwanted build:

parsing poms [workspace] $ java -xmx1024m -cp /var/lib/jenkins/plugins/maven-plugin/web-inf/lib/maven31-agent-1.6.jar:/usr/local/apache-maven/apache-maven-3.1.1/boot/plexus-classworlds-2.5.1.jar:/usr/local/apache-maven/apache-maven-3.1.1/conf/logging jenkins.maven3.agent.maven31main /usr/local/apache-maven/apache-maven-3.1.1 /var/cache/jenkins/war/web-inf/lib/remoting-2.49.jar /var/lib/jenkins/plugins/maven-plugin/web-inf/lib/maven31-interceptor-1.6.jar /var/lib/jenkins/plugins/maven-plugin/web-inf/lib/maven3-interceptor-commons-1.6.jar 54000 <===[jenkins remoting capacity]===>channel started 

due this, whole build takes twice time. have disabled archiving doesn't seem have affected this. can please let me know doing wrong here?

thanks in advance.

i managed figure out cause of this. apparently, 'pre steps' enabled in jenkins doing mvn clean install , actual build configures start in turn, doing same thing :) have removed pre step , building in half amount of time compared earlier builds.

hope helps :)


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -