Jenkins setup:
Jenkins Version:
Jenkins: 2.452.1
Operating System:
OS: Linux - 3.10.0-1160.114.2.el7.x86_64
Java Version:
Java: 11.0.18 - Red Hat, Inc. (OpenJDK 64-Bit Server VM)
---
Plugins Installed:
Office-365-Connector:4.18.0
ace-editor:1.1
active-directory:2.35
ansible:307.va_1f3ef06575a_
ansicolor:0.7.2
ant:1.8
antisamy-markup-formatter:1.1
apache-httpcomponents-client-4-api:4.5.14-208.v438351942757
asm-api:9.7-33.v4d23ef79fcc8
atlassian-bitbucket-server-integration:3.3.2
authentication-tokens:1.113.v81215a_241826
authorize-project:1.4.0
blueocean:1.27.13
blueocean-autofavorite:1.2.5
blueocean-bitbucket-pipeline:1.27.13
blueocean-commons:1.27.13
blueocean-config:1.27.13
blueocean-core-js:1.27.13
blueocean-dashboard:1.27.13
blueocean-display-url:2.4.2
blueocean-events:1.27.13
blueocean-git-pipeline:1.27.13
blueocean-github-pipeline:1.27.13
blueocean-i18n:1.27.13
blueocean-jwt:1.27.13
blueocean-personalization:1.27.13
blueocean-pipeline-api-impl:1.27.13
blueocean-pipeline-editor:1.27.13
blueocean-pipeline-scm-api:1.27.13
blueocean-rest:1.27.13
blueocean-rest-impl:1.27.13
blueocean-web:1.27.13
bootstrap5-api:5.3.3-1
bouncycastle-api:2.30.1.78.1-233.vfdcdeb_0a_08a_a_
branch-api:2.1169.va_f810c56e895
build-name-setter:2.1.0
build-timeout:1.20
build-timestamp:1.0.3
build-with-parameters:1.6
built-on-column:1.1
caffeine-api:3.1.8-133.v17b_1ff2e0599
checks-api:2.2.0
cloudbees-bitbucket-branch-source:887.va_d359b_3d2d8d
cloudbees-folder:6.928.v7c780211d66e
command-launcher:1.4
commons-compress-api:1.26.1-2
commons-httpclient3-api:3.1-3
commons-lang3-api:3.14.0-76.vda_5591261cfe
commons-text-api:1.12.0-119.v73ef73f2345d
conditional-buildstep:1.4.3
conjur-credentials:1.0.16
conjur-simple-integration:0.0.1
convert-to-pipeline:1.0
credentials:1344.v5a_3f65a_1e173
credentials-binding:677.vdc9d38cb_254d
delivery-pipeline-plugin:1.4.2
display-url-api:2.204.vf6fddd8a_8b_e9
downstream-ext:1.8
durable-task:555.v6802fe0f0b_82
echarts-api:5.5.0-1
eddsa-api:0.3.0-4.v84c6f0f4969e
email-ext:1814.v404722f34263
envfile:1.2
envinject:2.3.0
envinject-api:1.7
environment-script:1.2.6
external-monitor-job:215.v2e88e894db_f8
favorite:2.218.vd60382506538
font-awesome-api:6.5.2-1
generic-webhook-trigger:2.2.1
git:5.2.2
git-client:5.0.0
github:1.39.0
github-api:1.318-461.v7a_c09c9fa_d63
github-branch-source:1789.v5b_0c0cea_18c3
gson-api:2.11.0-41.v019fcf6125dc
handy-uri-templates-2-api:2.1.8-30.v7e777411b_148
hashicorp-vault-plugin:368.v48134f694db_f
htmlpublisher:1.35
instance-identity:185.v303dc7c645f9
ionicons-api:74.v93d5eb_813d5f
jackson2-api:2.17.0-379.v02de8ec9f64c
jakarta-activation-api:2.1.3-1
jakarta-mail-api:2.1.3-1
javadoc:226.v71211feb_e7e9
javax-activation-api:1.2.0-7
javax-mail-api:1.6.2-5
jaxb:2.3.9-1
jdk-tool:1.4
jenkins-design-language:1.27.13
jenkins-multijob-plugin:623.v03401733c9a_9
jjwt-api:0.11.5-77.v646c772fddb_0
job-import-plugin:3.6
joda-time-api:2.12.7-29.v5a_b_e3a_82269a_
join:1.21
jquery:1.12.4-1
jquery3-api:3.7.1-2
jsch:0.1.55.61.va_e9ee26616e7
json-api:20240303-41.v94e11e6de726
json-path-api:2.9.0-58.v62e3e85b_a_655
junit:1265.v65b_14fa_f12f0
ldap:1.11
mailer:472.vf7c289a_4b_420
mask-passwords:3.3
matrix-auth:2.6.5
matrix-project:832.va_66e270d2946
maven-plugin:3.20
mina-sshd-api-common:2.12.1-113.v4d3ea_5eb_7f72
mina-sshd-api-core:2.12.1-113.v4d3ea_5eb_7f72
momentjs:1.1.1
okhttp-api:4.11.0-172.vda_da_1feeb_c6e
pam-auth:1.5.1
parameterized-trigger:806.vf6fff3e28c3e
pipeline-build-step:540.vb_e8849e1a_b_d8
pipeline-graph-analysis:216.vfd8b_ece330ca_
pipeline-groovy-lib:727.ve832a_9244dfa_
pipeline-input-step:495.ve9c153f6067b_
pipeline-milestone-step:119.vdfdc43fc3b_9a_
pipeline-model-api:2.2198.v41dd8ef6dd56
pipeline-model-definition:2.2198.v41dd8ef6dd56
pipeline-model-extensions:2.2198.v41dd8ef6dd56
pipeline-project-env:66.v00058ca_88721
pipeline-rest-api:2.27
pipeline-stage-step:312.v8cd10304c27a_
pipeline-stage-tags-metadata:2.2198.v41dd8ef6dd56
pipeline-stage-view:2.27
pipeline-utility-steps:2.17.0
plain-credentials:183.va_de8f1dd5a_2b_
plugin-util-api:4.1.0
popper2-api:2.11.6-2
postbuild-task:1.8
postbuildscript:3.2.0-460.va_fda_0fa_26720
powershell:1.4
promoted-builds:892.vd6219fc0a_efb
promoted-builds-simple:1.9
pubsub-light:1.18
python:1.3
rebuild:332.va_1ee476d8f6d
role-strategy:562.v44e9a_e828d0e
run-condition:1.5
scm-api:690.vfc8b_54395023
script-security:1341.va_2819b_414686
service-now:0.0.4
sitemonitor:0.6
snakeyaml-api:2.2-111.vc6598e30cc65
sonar:2.14
sse-gateway:1.26
ssh-credentials:337.v395d2403ccd4
ssh2easy:1.4
sshd:3.236.ved5e1b_cb_50b_2
strict-crumb-issuer:2.1.0
structs:338.v848422169819
timestamper:1.11.6
token-macro:400.v35420b_922dcb_
trilead-api:2.147.vb_73cc728a_32e
variant:60.v7290fc0eb_b_cd
windows-slaves:1.0
workflow-aggregator:590.v6a_d052e5a_a_b_5
workflow-api:1316.v33eb_726c50b_a_
workflow-basic-steps:1058.vcb_fc1e3a_21a_9
workflow-cps:3903.v48a_8836749e9
workflow-durable-task-step:1353.v1891a_b_01da_18
workflow-job:1400.v7fd111b_ec82f
workflow-multibranch:783.787.v50539468395f
workflow-scm-step:427.v4ca_6512e7df1
workflow-step-api:657.v03b_e8115821b_
workflow-support:907.v6713a_ed8a_573
Question:
I upgraded my DEV Jenkins LTS from 2.361.1 to 2.452.1 and upgraded all possible plugins to its latest version to avoid security vulnerabilities which includes ansible plugin as well.
Post this, i see a weird issue in Jenkins that if I update or add “invoke ansible playbook” build step in any of the jenkins job and save it, all the invoke ansible playbook build steps goes missing. Even the already existing ansible build steps are also missing. But all the existing jobs that was before upgrading jenkins are there and running without any issue. Issue is only when i create new job with ansible build step or update the job with ansible build step.
Is this because of any plugin dependencies or because of jenkins upgrade? I tried to reproduce the same issue with other PoC environment and i face the same issue with version 2.426.1 itself wherein my other DEV environment is running in Jenkins LTS 2.440.1 with no issues.
Can anyone help me to find the root cause of this issue?
Thanks for providing the list of plugins. There are several issues that Jenkins reports should be resolved in that list of plugins, including:
Deprecated plugins that should be uninstalled
The following installed plugins are deprecated and should be uninstalled
In general, this means that these plugins are either obsolete, no longer being developed, or may no longer work.
Plugins to be updated
60 plugins are listed as having an update available. They should be updated.
Plugins with known vulnerabilities
The following plugins are badly outdated and have known vulnerabilities. Refer to their plugin health score on the Jenkins plugin page for more details. They should be removed:
After making those changes, the list of plugins included
plugin versions
Office-365-Connector:4.21.1
active-directory:2.35
ansible:403.v8d0ca_dcb_b_502
ansicolor:1.0.4
ant:497.v94e7d9fffa_b_9
antisamy-markup-formatter:162.v0e6ec0fcfcf6
apache-httpcomponents-client-4-api:4.5.14-208.v438351942757
asm-api:9.7-33.v4d23ef79fcc8
atlassian-bitbucket-server-integration:4.0.0
authentication-tokens:1.119.v50285141b_7e1
authorize-project:1.7.2
blueocean:1.27.13
blueocean-autofavorite:1.2.5
blueocean-bitbucket-pipeline:1.27.13
blueocean-commons:1.27.13
blueocean-config:1.27.13
blueocean-core-js:1.27.13
blueocean-dashboard:1.27.13
blueocean-display-url:2.4.3
blueocean-events:1.27.13
blueocean-git-pipeline:1.27.13
blueocean-github-pipeline:1.27.13
blueocean-i18n:1.27.13
blueocean-jwt:1.27.13
blueocean-personalization:1.27.13
blueocean-pipeline-api-impl:1.27.13
blueocean-pipeline-editor:1.27.13
blueocean-pipeline-scm-api:1.27.13
blueocean-rest:1.27.13
blueocean-rest-impl:1.27.13
blueocean-web:1.27.13
bootstrap5-api:5.3.3-1
bouncycastle-api:2.30.1.78.1-248.ve27176eb_46cb_
branch-api:2.1169.va_f810c56e895
build-name-setter:2.4.2
build-timeout:1.33
build-timestamp:1.0.3
build-with-parameters:76.v9382db_f78962
built-on-column:1.4
caffeine-api:3.1.8-133.v17b_1ff2e0599
checks-api:2.2.0
cloudbees-bitbucket-branch-source:887.va_d359b_3d2d8d
cloudbees-folder:6.928.v7c780211d66e
command-launcher:107.v773860566e2e
commons-compress-api:1.26.1-2
commons-lang3-api:3.14.0-76.vda_5591261cfe
commons-text-api:1.12.0-119.v73ef73f2345d
conditional-buildstep:1.4.3
conjur-credentials:2.2.0
conjur-simple-integration:0.0.1
credentials:1361.v56f5ca_35d21c
credentials-binding:681.vf91669a_32e45
delivery-pipeline-plugin:1.4.2
display-url-api:2.204.vf6fddd8a_8b_e9
downstream-ext:73.vdda_16e6eb_0da
durable-task:555.v6802fe0f0b_82
echarts-api:5.5.0-1
eddsa-api:0.3.0-4.v84c6f0f4969e
email-ext:1814.v404722f34263
envfile:43.v2644436e7d71
envinject:2.908.v66a_774b_31d93
envinject-api:1.199.v3ce31253ed13
environment-script:100.v3a_f1a_6a_b_7549
external-monitor-job:215.v2e88e894db_f8
favorite:2.218.vd60382506538
font-awesome-api:6.5.2-1
generic-webhook-trigger:2.2.1
git:5.2.2
git-client:5.0.0
github:1.39.0
github-api:1.318-461.v7a_c09c9fa_d63
github-branch-source:1789.v5b_0c0cea_18c3
gson-api:2.11.0-41.v019fcf6125dc
handy-uri-templates-2-api:2.1.8-30.v7e777411b_148
hashicorp-vault-plugin:368.v48134f694db_f
htmlpublisher:1.35
instance-identity:185.v303dc7c645f9
ionicons-api:74.v93d5eb_813d5f
jackson2-api:2.17.0-379.v02de8ec9f64c
jakarta-activation-api:2.1.3-1
jakarta-mail-api:2.1.3-1
javadoc:243.vb_b_503b_b_45537
javax-activation-api:1.2.0-7
javax-mail-api:1.6.2-10
jaxb:2.3.9-1
jdk-tool:73.vddf737284550
jenkins-design-language:1.27.13
jjwt-api:0.11.5-112.ve82dfb_224b_a_d
job-import-plugin:3.6
joda-time-api:2.12.7-29.v5a_b_e3a_82269a_
join:1.21
jquery:1.12.4-1
jquery3-api:3.7.1-2
jsch:0.2.16-86.v42e010d9484b_
json-api:20240303-41.v94e11e6de726
json-path-api:2.9.0-58.v62e3e85b_a_655
junit:1265.v65b_14fa_f12f0
ldap:725.v3cb_b_711b_1a_ef
mailer:472.vf7c289a_4b_420
mask-passwords:173.v6a_077a_291eb_5
matrix-auth:3.2.2
matrix-project:832.va_66e270d2946
maven-plugin:3.23
mina-sshd-api-common:2.13.1-117.v2f1a_b_66ff91d
mina-sshd-api-core:2.13.1-117.v2f1a_b_66ff91d
okhttp-api:4.11.0-172.vda_da_1feeb_c6e
pam-auth:1.11
parameterized-trigger:806.vf6fff3e28c3e
pipeline-build-step:540.vb_e8849e1a_b_d8
pipeline-graph-analysis:216.vfd8b_ece330ca_
pipeline-groovy-lib:727.ve832a_9244dfa_
pipeline-input-step:495.ve9c153f6067b_
pipeline-milestone-step:119.vdfdc43fc3b_9a_
pipeline-model-api:2.2203.v89fa_170c2b_f5
pipeline-model-definition:2.2203.v89fa_170c2b_f5
pipeline-model-extensions:2.2203.v89fa_170c2b_f5
pipeline-project-env:108.vfa_130b_24429b_
pipeline-rest-api:2.34
pipeline-stage-step:312.v8cd10304c27a_
pipeline-stage-tags-metadata:2.2203.v89fa_170c2b_f5
pipeline-stage-view:2.34
pipeline-utility-steps:2.17.0
plain-credentials:183.va_de8f1dd5a_2b_
plugin-util-api:4.1.0
postbuild-task:1.9
postbuildscript:3.2.0-550.v88192b_d3e922
powershell:2.1
promoted-builds:957.vf5b_cee587563
pubsub-light:1.18
rebuild:332.va_1ee476d8f6d
role-strategy:727.vd344b_eec783d
run-condition:1.7
scm-api:690.vfc8b_54395023
script-security:1341.va_2819b_414686
service-now:0.0.4
snakeyaml-api:2.2-111.vc6598e30cc65
sonar:2.17.2
sse-gateway:1.27
ssh-credentials:337.v395d2403ccd4
ssh2easy:1.6
sshd:3.330.vc866a_8389b_58
strict-crumb-issuer:2.1.1
structs:338.v848422169819
timestamper:1.27
token-macro:400.v35420b_922dcb_
trilead-api:2.147.vb_73cc728a_32e
variant:60.v7290fc0eb_b_cd
workflow-aggregator:600.vb_57cdd26fdd7
workflow-api:1316.v33eb_726c50b_a_
workflow-basic-steps:1058.vcb_fc1e3a_21a_9
workflow-cps:3903.v48a_8836749e9
workflow-durable-task-step:1360.v82d13453da_a_f
workflow-job:1400.v7fd111b_ec82f
workflow-multibranch:783.787.v50539468395f
workflow-scm-step:427.v4ca_6512e7df1
workflow-step-api:678.v3ee58b_469476
workflow-support:907.v6713a_ed8a_573
1 Like
Thankyou Mark. Let me try your suggestion and update the status.
- By the way, does this kind of weird issue occur if all plugins are not up to date?
- How frequent plugins need to be updated? Only during the Jenkins upgrade or anytime? If anytime, does that not break any existing job configuration?
The recommended pattern for Jenkins upgrades is to at least once a month (assuming you’re using a Jenkins LTS release like 2.452.2):
- Upgrade plugins to most recent releases before upgrading Jenkins
- Upgrade Jenkins to most recent release
- Upgrade plugins to most recent releases after upgrading Jenkins
By upgrading Jenkins plugins frequently, you keep your system closer to the configuration that many other users are running. You’re less likely to have errors and more likely to get help from others when you’re running the most recent releases of Jenkins and the installed plugins.
Jenkins core maintainers and Jenkins plugin maintainers work very hard to retain compatibility. The “Compatibility matters” section of the Jenkins governance document describes it by saying:
We recognize that users expect their existing data, accumulated under past versions (including Hudson up to 1.395) to continue working under future versions of Jenkins. This includes jobs configurations, build records, and plugin binaries that they are using.
1 Like
Thankyou Mark again. I have updated all the plugins to latest release and now invoke ansible playbook in build step works.