Hello Folks,
Jenkins: 2.7.1
OS: Ubuntu 14.04
I am trying to add the following block
configure { project ->
project / buildWrappers << 'de.jamba.hudson.plugin.wsclean.PrePostClean'(plugin: 'hudson-wsc...@1.0.5') {
before('false')
behind('true')
}
}
to a job generated by DSL the step gets added the job as expected.
But when the job runs it seems to be running the PrePostClean right after the build step and on the machine were the build is being done.
It is only supposed to clean only on other nodes were the build has run and not on the current system.
When I add the step manually things work as expected.
The difference appeared to be that when I configure the job manually all of the steps prior to build environment get wrap in in the 'properties' tag and the PrePostClean step is at the bottom
of the job config by itself as follows:
</publishers>
<buildWrappers>
<de.jamba.hudson.plugin.wsclean.PrePostClean plugin="hudson-wsc...@1.0.5">
<before>false</before>
<behind>true</behind>
</de.jamba.hudson.plugin.wsclean.PrePostClean>
</buildWrappers>
</project>
When I run the job update via DSL
There are other components mingled in the buildWrappers section.
<buildWrappers>
<de.jamba.hudson.plugin.wsclean.PrePostClean plugin="hudson-wsc...@1.0.5">
<before>false</before>
<behind>true</behind>
</de.jamba.hudson.plugin.wsclean.PrePostClean>
</buildWrappers>
<assignedNode>sjc-prd-lrls30</assignedNode>
<logRotator>
<daysToKeep>60</daysToKeep>
<numToKeep>-1</numToKeep>
<artifactDaysToKeep>-1</artifactDaysToKeep>
<artifactNumToKeep>-1</artifactNumToKeep>
</logRotator>
<scm class="hudson.plugins.mercurial.MercurialSCM">
<source>ssh://merc//home/hg/CouponsComWeb/PaiWeb</source>
<modules/>
<revisionType>BRANCH</revisionType>
<revision>1.56-release</revision>
<clean>true</clean>
<credentialsId/>
<disableChangeLog/>
<credentials/>
<browser class="hudson.plugins.mercurial.browser.HgWeb">
</browser>
</scm>
Does anyone know what am I missing/doign wrong?
Thank you kindly.
Sam