[ https://issues.jenkins-ci.org/browse/JENKINS-8029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
evernat resolved JENKINS-8029. ------------------------------ Resolution: Cannot Reproduce The m2-extra-steps is now deprecated because the functionality is now included in the core. So this certainly works now in the core. > M2 extra steps plugin post step executed before the build > --------------------------------------------------------- > > Key: JENKINS-8029 > URL: https://issues.jenkins-ci.org/browse/JENKINS-8029 > Project: Jenkins > Issue Type: Bug > Components: m2-extra-steps > Environment: Hudson 1.381, M2 extra steps 1.1.3 > Reporter: Costin Caraivan > Assignee: abayer > > When adding some post steps for a Maven 2 build, they are executed before the > build. > Output from the log: > > [Project_Trunk] $ /bin/sh -xe /tmp/hudson4332229457250043200.sh > > + echo '[INFO] Prebuild step' > This works ok, it's a pre build step. > > [trunk] $ /home/axhudson/tools/maven/apache-maven-2.2.1/bin/mvn > > -Dmaven.repo.local=/home/axhudson/hudson/workspace/Project_Trunk/.repository > > - B -U -e com.axway.maven2.plugins:axway-arti-staging-plugin:1.1.1:stage > > -DdeployList -Dintegration -Dwebliv > This doesn't, it's the post build step. > Of course, later on this happens: > org.apache.maven.lifecycle.LifecycleExecutionException: > /home/axhudson/hudson/workspace/Project_Trunk/trunk/all-project/patcher/target/patcher-3.7.0-SNAPSHOT-proguard.jar > not found. > Since the post build step needs a build artifact. > The relevant config.xml section: > <hudson.plugins.m2extrasteps.M2ExtraStepsWrapper> > <preBuildSteps> > <hudson.tasks.Shell> > <command>echo "[INFO] Prebuild step"</command> > </hudson.tasks.Shell> > </preBuildSteps> > <postBuildSteps> > <hudson.tasks.Maven> > <targets>-B -U -e > com.axway.maven2.plugins:axway-arti-staging-plugin:1.1.1:stage -DdeployList > -Dintegration -Dwebliv</targets> > <mavenName>MAVEN_221</mavenName> > <usePrivateRepository>true</usePrivateRepository> > </hudson.tasks.Maven> > <hudson.tasks.Shell> > <command>${JAVA_16_HOME}/bin/java -jar ${JYTHON}/jython.jar > ${DEPLOY_SCRIPT}</command> > </hudson.tasks.Shell> > </postBuildSteps> > <runIfResult>success</runIfResult> > </hudson.plugins.m2extrasteps.M2ExtraStepsWrapper> > Any other debug information needed? > Thanks. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira