[JIRA] Created: (HUDSON-8029) M2 extra steps plugin post step executed before the build

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

[JIRA] Created: (HUDSON-8029) M2 extra steps plugin post step executed before the build

Hudson issues mailing list
M2 extra steps plugin post step executed before the build
---------------------------------------------------------

                 Key: HUDSON-8029
                 URL: http://issues.hudson-ci.org/browse/HUDSON-8029
             Project: Hudson
          Issue Type: Bug
          Components: m2-extra-steps
         Environment: Hudson 1.381, M2 extra steps 1.1.3
            Reporter: ccaraivan
            Assignee: abayer


When adding some post steps for a Maven 2 build, they are executated 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 &quot;[INFO] Prebuild step&quot;</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 contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

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

Reply | Threaded
Open this post in threaded view
|

[JIRA] Updated: (HUDSON-8029) M2 extra steps plugin post step executed before the build

Hudson issues mailing list

     [ http://issues.hudson-ci.org/browse/HUDSON-8029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ccaraivan updated HUDSON-8029:
------------------------------

    Description:
When adding some post steps for a Maven 2 build, they are executated 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 &quot;[INFO] Prebuild step&quot;</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.



  was:
When adding some post steps for a Maven 2 build, they are executated 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 &quot;[INFO] Prebuild step&quot;</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.




> M2 extra steps plugin post step executed before the build
> ---------------------------------------------------------
>
>                 Key: HUDSON-8029
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-8029
>             Project: Hudson
>          Issue Type: Bug
>          Components: m2-extra-steps
>         Environment: Hudson 1.381, M2 extra steps 1.1.3
>            Reporter: ccaraivan
>            Assignee: abayer
>
> When adding some post steps for a Maven 2 build, they are executated 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 &quot;[INFO] Prebuild step&quot;</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 contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

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