-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Jenkins core 2.73.2 LTS
ace-editor 1.1
analysis-core 1.92
ansicolor 0.5.2
ant 1.7
antisamy-markup-formatter 1.5
apache-httpcomponents-client-4-api 4.5.3-2.0
artifactory 2.13.1
authentication-tokens 1.3
bouncycastle-api 2.16.2
branch-api 2.0.15
build-timeout 1.19
build-user-vars-plugin 1.5
checkstyle 3.49
cloudbees-folder 6.2.1
config-file-provider 2.16.4
copyartifact 1.38.1
credentials 2.1.16
credentials-binding 1.13
cvs 2.13
dashboard-view 2.9.11
display-url-api 2.1.0
docker-commons 1.9
docker-workflow 1.13
durable-task 1.15
email-ext 2.61
envinject 2.1.5
envinject-api 1.4
external-monitor-job 1.7
extra-columns 1.18
findbugs 4.71
git 3.6.3
git-client 2.5.0
git-server 1.7
github 1.28.1
github-api 1.89
github-branch-source 2.2.4
gitlab-plugin 1.5.0
gradle 1.28
handlebars 1.1.1
htmlpublisher 1.14
icon-shim 2.0.3
ivy 1.27.1
jackson2-api 2.8.7.0
jacoco 2.2.1
javadoc 1.4
job-dsl 1.66
jquery 1.12.4-0
jquery-detached 1.2.1
jsch 0.1.54.1
junit 1.21
junit-attachments 1.4.2
ldap 1.17
logstash 1.3.0
mailer 1.2
mapdb-api 1.0.9.0
mask-passwords 2.10.1
matrix-auth 2.1
matrix-project 1.12
maven-plugin 3
momentjs 1.1.1
monitoring 1.69.1
notification 1.12
pam-auth 1.3
pipeline-build-step 2.5.1
pipeline-github-lib 1
pipeline-graph-analysis 1.5
pipeline-input-step 2.8
pipeline-milestone-step 1.3.1
pipeline-model-api 1.2.2
pipeline-model-declarative-agent 1.1.1
pipeline-model-definition 1.2.2
pipeline-model-extensions 1.2.2
pipeline-rest-api 2.9
pipeline-stage-step 2.2
pipeline-stage-tags-metadata 1.2.2
pipeline-stage-view 2.9
pipeline-utility-steps 1.5.1
plain-credentials 1.4
progress-bar-column-plugin 1
rebuild 1.27
resource-disposer 0.8
scm-api 2.2.3
script-security 1.34
slack 2.3
sonar 2.6.1
ssh-credentials 1.13
ssh-slaves 1.22
structs 1.1
subversion 2.9
swarm 3.6
test-results-analyzer 0.3.4
text-finder 1.1
throttle-concurrents 2.0.1
timestamper 1.8.8
token-macro 2.3
urltrigger 0.42-SNAPSHOT (private-e7a1f00b-testrunner)
windows-slaves 1.3.1
workflow-aggregator 2.5
workflow-api 2.23.1
workflow-basic-steps 2.6
workflow-cps 2.41
workflow-cps-global-lib 2.9
workflow-durable-task-step 2.17
workflow-job 2.15
workflow-multibranch 2.16
workflow-scm-step 2.6
workflow-step-api 2.13
workflow-support 2.16
ws-cleanup 0.34Jenkins core 2.73.2 LTS ace-editor 1.1 analysis-core 1.92 ansicolor 0.5.2 ant 1.7 antisamy-markup-formatter 1.5 apache-httpcomponents-client-4-api 4.5.3-2.0 artifactory 2.13.1 authentication-tokens 1.3 bouncycastle-api 2.16.2 branch-api 2.0.15 build-timeout 1.19 build-user-vars-plugin 1.5 checkstyle 3.49 cloudbees-folder 6.2.1 config-file-provider 2.16.4 copyartifact 1.38.1 credentials 2.1.16 credentials-binding 1.13 cvs 2.13 dashboard-view 2.9.11 display-url-api 2.1.0 docker-commons 1.9 docker-workflow 1.13 durable-task 1.15 email-ext 2.61 envinject 2.1.5 envinject-api 1.4 external-monitor-job 1.7 extra-columns 1.18 findbugs 4.71 git 3.6.3 git-client 2.5.0 git-server 1.7 github 1.28.1 github-api 1.89 github-branch-source 2.2.4 gitlab-plugin 1.5.0 gradle 1.28 handlebars 1.1.1 htmlpublisher 1.14 icon-shim 2.0.3 ivy 1.27.1 jackson2-api 2.8.7.0 jacoco 2.2.1 javadoc 1.4 job-dsl 1.66 jquery 1.12.4-0 jquery-detached 1.2.1 jsch 0.1.54.1 junit 1.21 junit-attachments 1.4.2 ldap 1.17 logstash 1.3.0 mailer 1.2 mapdb-api 1.0.9.0 mask-passwords 2.10.1 matrix-auth 2.1 matrix-project 1.12 maven-plugin 3 momentjs 1.1.1 monitoring 1.69.1 notification 1.12 pam-auth 1.3 pipeline-build-step 2.5.1 pipeline-github-lib 1 pipeline-graph-analysis 1.5 pipeline-input-step 2.8 pipeline-milestone-step 1.3.1 pipeline-model-api 1.2.2 pipeline-model-declarative-agent 1.1.1 pipeline-model-definition 1.2.2 pipeline-model-extensions 1.2.2 pipeline-rest-api 2.9 pipeline-stage-step 2.2 pipeline-stage-tags-metadata 1.2.2 pipeline-stage-view 2.9 pipeline-utility-steps 1.5.1 plain-credentials 1.4 progress-bar-column-plugin 1 rebuild 1.27 resource-disposer 0.8 scm-api 2.2.3 script-security 1.34 slack 2.3 sonar 2.6.1 ssh-credentials 1.13 ssh-slaves 1.22 structs 1.1 subversion 2.9 swarm 3.6 test-results-analyzer 0.3.4 text-finder 1.1 throttle-concurrents 2.0.1 timestamper 1.8.8 token-macro 2.3 urltrigger 0.42-SNAPSHOT (private-e7a1f00b-testrunner) windows-slaves 1.3.1 workflow-aggregator 2.5 workflow-api 2.23.1 workflow-basic-steps 2.6 workflow-cps 2.41 workflow-cps-global-lib 2.9 workflow-durable-task-step 2.17 workflow-job 2.15 workflow-multibranch 2.16 workflow-scm-step 2.6 workflow-step-api 2.13 workflow-support 2.16 ws-cleanup 0.34
When I use the "Disable removed jobs" feature of the Job DSL plugin, it does not work with Pipeline jobs. The job is correctly detected as an unreferenced item by ExecuteDslScripts, but it is not disabled because the Job DSL plugin is doing the disable via AbstractProject.disable():
// Update unreferenced jobs for (GeneratedJob unreferencedJob : unreferenced) { Item removedItem = getLookupStrategy().getItem(seedJob, unreferencedJob.getJobName(), Item.class); if (removedItem != null && removedJobAction != RemovedJobAction.IGNORE) { if (removedJobAction == RemovedJobAction.DELETE) { removedItem.delete(); removed.add(unreferencedJob); } else { if (removedItem instanceof AbstractProject) { AbstractProject project = (AbstractProject) removedItem; project.checkPermission(Item.CONFIGURE); if (project.isInQueue()) { project.checkPermission(Item.CANCEL); // disable() will cancel queued builds } project.disable(); disabled.add(unreferencedJob); } } } }
Pipeline jobs don't extend AbstractProject, so this logic won't disable them.
This issue was previously blocked on Jenkins fixing pipeline jobs so that they support enable/disable at all. That bug has now been taken care of in JENKINS-27299 which defines enabling/disabling in ParameterizedJob rather than AbstractProject. This fix has been made available starting in Jenkins 2.61 (or 2.73 LTS). So now the Job DSL plugin needs to be updated to take advantage of this new functionality if present.
- depends on
-
JENKINS-27299 Refactor Disable Build feature out of AbstractProject for Pipeline Compatibility
- Resolved
- is blocked by
-
JENKINS-46899 Gradle JPI Plugin can't use coreVersion of Jenkins >= 2.64
- Closed