-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
core 1.609.3
job-dsl-plugin 1.38
maven-plugin 2.12
Removing postBuildSteps block from a job-dsl script does not remove the post build step on the generated job. To reproduce, create a job-dsl seed job with this script:
mavenJob('example') { goals 'clean install' postBuildSteps { maven { goals "sonar:sonar -Psonar" } } }
Remove postBuildSteps block and run job-dsl seed job again. Configuration page of generated job example will still contain the post build step.
On disk config.xml of generated job doesn't have <postbuilders/> section anymore. Reloading generated job using a groovy script in system console doesn't help. Only restarting Jenkins works. That makes me think that the bug is in Maven plugin but not in JobDSL plugin. Something is wrong when reloading config.xml of generated job.
- depends on
-
JENKINS-21017 CLI update-job and POSTing config.xml cannot remove properties
- Resolved
- is related to
-
JENKINS-26825 JobDSL plugin doesn't reset customWorkspace setting
- Closed
- links to