Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Not A Defect
-
Jenkins ver. 1.60
Workspace Cleanup Plugin ver. 0.26
Other plugins that I have installed (on top of the ones that Jenkins ships with)
conditional-buildstep 1.3.3
GIT plugin 2.4.0
GitHub API Plugin 1.69
GitHub plugin 1.12.1
Multiple SCMs 0.5
Parameterized Trigger plugin 2.28
promoted builds plugincriteria 2.21
Run Condition Plugin 1.0
SCM API Plugin 0.2
Token Macro Plugin 1.10Jenkins ver. 1.60 Workspace Cleanup Plugin ver. 0.26 Other plugins that I have installed (on top of the ones that Jenkins ships with) conditional-buildstep 1.3.3 GIT plugin 2.4.0 GitHub API Plugin 1.69 GitHub plugin 1.12.1 Multiple SCMs 0.5 Parameterized Trigger plugin 2.28 promoted builds plugincriteria 2.21 Run Condition Plugin 1.0 SCM API Plugin 0.2 Token Macro Plugin 1.10
Description
This is a fresh install of Jenkins. I installed all the plugins (listed above).
I then created a Job.
- Under Build Environment I checked Delete workspace before build starts
- In the Post-build Actions I simply selected Delete workspace when build is done with no additional changes (That is I did not click on the Advanced button)
With that in place, I went to Jenkins->New Job and entered a new name, and then picked Copy existing Item giving it the name of the previously created job.
Upon inspecting the configuration I noticed that
- Under Build Environment Delete workspace before build starts is correctly selected
- However under Post-build Actions there is nothing.
Inspecting the config.xml file of the newly created job tells me that that portion of the configuration did not port over.
Here is the relevant portion of the ORIGINAL job's configuration
<publishers> <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup@0.26"> <deleteDirs>false</deleteDirs> <skipWhenFailed>false</skipWhenFailed> <cleanWhenSuccess>true</cleanWhenSuccess> <cleanWhenUnstable>true</cleanWhenUnstable> <cleanWhenFailure>true</cleanWhenFailure> <cleanWhenNotBuilt>true</cleanWhenNotBuilt> <cleanWhenAborted>true</cleanWhenAborted> <notFailBuild>false</notFailBuild> <cleanupMatrixParent>false</cleanupMatrixParent> <externalDelete/> </hudson.plugins.ws__cleanup.WsCleanup> </publishers> <buildWrappers> <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.26"> <deleteDirs>false</deleteDirs> <cleanupParameter/> <externalDelete/> </hudson.plugins.ws__cleanup.PreBuildCleanup> </buildWrappers>
Here is the same portion of the NEW job's configuration
<buildWrappers> <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.26"> <deleteDirs>false</deleteDirs> <cleanupParameter/> <externalDelete/> </hudson.plugins.ws__cleanup.PreBuildCleanup> </buildWrappers>
As a final attempt I programmatically POST ed the configuration of the original job to another job and I see the same thing happening. For some reason the Post-build Actions are not being applied.
Just to be sure, I tweaked the original job to have 2 Post-build Actions - and then created a New Job that simply is a Copy of the original one. Again, it did not port over the Delete workspace before build starts in Post-build Actions - However the other action did port over.
If there are any other details you like me to report on, please let me know.
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Description |
This is a *fresh* install of Jenkins. I installed all the plugins (listed above). I then created a Job. * Under {{Build Environment}} I checked {{Delete workspace before build starts}} * In the {{Post-build Actions}} I simply selected {{Delete workspace when build is done}} with no additional changes (That is I did *not* click on the {{Advanced}} button) With that in place, I went to Jenkins->New Job and entered a new name, and then picked {{Copy existing Item}} giving it the name of the previously created job. Upon inspecting the configuration I noticed that * Under {{Build Environment}} {{Delete workspace before build starts}} is correctly selected * *However* under {{Post-build Actions}} there is nothing. Inspecting the {{config.xml}} file of the newly created job tells me that that portion of the configuration did not port over. Here is the relevant portion of the *ORIGINAL* job's configuration {code:xml} <publishers> <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup@0.26"> <deleteDirs>false</deleteDirs> <skipWhenFailed>false</skipWhenFailed> <cleanWhenSuccess>true</cleanWhenSuccess> <cleanWhenUnstable>true</cleanWhenUnstable> <cleanWhenFailure>true</cleanWhenFailure> <cleanWhenNotBuilt>true</cleanWhenNotBuilt> <cleanWhenAborted>true</cleanWhenAborted> <notFailBuild>false</notFailBuild> <cleanupMatrixParent>false</cleanupMatrixParent> <externalDelete/> </hudson.plugins.ws__cleanup.WsCleanup> </publishers> <buildWrappers> <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.26"> <deleteDirs>false</deleteDirs> <cleanupParameter/> <externalDelete/> </hudson.plugins.ws__cleanup.PreBuildCleanup> </buildWrappers> {code} Here is the same portion of the *NEW* job's configuration {code:xml} <buildWrappers> <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.26"> <deleteDirs>false</deleteDirs> <cleanupParameter/> <externalDelete/> </hudson.plugins.ws__cleanup.PreBuildCleanup> </buildWrappers> {code} As a final attempt I programmatically {{POST}}ed the configuration of the original job to *another* job and I see the same thing happening. For some reason the {{Post-build Actions}} are not being applied. Just to be sure, I tweaked the original job to have 2 {{Post-build Actions}} - and then created a *New Job* that simply is a Copy of the original one. Again, it did not port over the {{Delete workspace before build starts}} in {{Post-build Actions}} - However the other action did port over. If there are any other details you like me to report on, please let me know. |
This is a *fresh* install of Jenkins. I installed all the plugins (listed above). I then created a Job. * Under {{Build Environment}} I checked {{Delete workspace before build starts}} * In the {{Post-build Actions}} I simply selected {{Delete workspace when build is done}} with no additional changes (That is I did *not* click on the {{Advanced}} button) With that in place, I went to Jenkins->New Job and entered a new name, and then picked {{Copy existing Item}} giving it the name of the previously created job. Upon inspecting the configuration I noticed that * Under {{Build Environment}} {{Delete workspace before build starts}} is correctly selected * *However* under {{Post-build Actions}} there is nothing. Inspecting the {{config.xml}} file of the newly created job tells me that that portion of the configuration did not port over. Here is the relevant portion of the *ORIGINAL* job's configuration {code:xml} <publishers> <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup@0.26"> <deleteDirs>false</deleteDirs> <skipWhenFailed>false</skipWhenFailed> <cleanWhenSuccess>true</cleanWhenSuccess> <cleanWhenUnstable>true</cleanWhenUnstable> <cleanWhenFailure>true</cleanWhenFailure> <cleanWhenNotBuilt>true</cleanWhenNotBuilt> <cleanWhenAborted>true</cleanWhenAborted> <notFailBuild>false</notFailBuild> <cleanupMatrixParent>false</cleanupMatrixParent> <externalDelete/> </hudson.plugins.ws__cleanup.WsCleanup> </publishers> <buildWrappers> <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.26"> <deleteDirs>false</deleteDirs> <cleanupParameter/> <externalDelete/> </hudson.plugins.ws__cleanup.PreBuildCleanup> </buildWrappers> {code} Here is the same portion of the *NEW* job's configuration {code:xml} <buildWrappers> <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.26"> <deleteDirs>false</deleteDirs> <cleanupParameter/> <externalDelete/> </hudson.plugins.ws__cleanup.PreBuildCleanup> </buildWrappers> {code} As a final attempt I programmatically {{POST}} ed the configuration of the original job to *another* job and I see the same thing happening. For some reason the {{Post-build Actions}} are not being applied. Just to be sure, I tweaked the original job to have 2 {{Post-build Actions}} - and then created a *New Job* that simply is a Copy of the original one. Again, it did not port over the {{Delete workspace before build starts}} in {{Post-build Actions}} - However the other action did port over. If there are any other details you like me to report on, please let me know. |
Resolution | Not A Defect [ 7 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Workflow | JNJira [ 165038 ] | JNJira + In-Review [ 209139 ] |