-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
System Properties
Name ↓
Value
awt.toolkit sun.awt.X11.XToolkit
executable-war /usr/share/jenkins/jenkins.war
file.encoding UTF-8
file.encoding.pkg sun.io
file.separator /
java.awt.graphicsenv sun.awt.X11GraphicsEnvironment
java.awt.headless true
java.awt.printerjob sun.print.PSPrinterJob
java.class.path /usr/share/jenkins/jenkins.war
java.class.version 52.0
java.endorsed.dirs /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/endorsed
java.ext.dirs /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext:/usr/java/packages/lib/ext
java.home /usr/lib/jvm/java-8-openjdk-amd64/jre
java.io.tmpdir /tmp
java.library.path /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
java.runtime.name OpenJDK Runtime Environment
java.runtime.version 1.8.0_111-8u111-b14-2~bpo8+1-b14
java.specification.name Java Platform API Specification
java.specification.vendor Oracle Corporation
java.specification.version 1.8
java.vendor Oracle Corporation
java.vendor.url http://java.oracle.com/
java.vendor.url.bug http://bugreport.sun.com/bugreport/
java.version 1.8.0_111
java.vm.info mixed mode
java.vm.name OpenJDK 64-Bit Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Oracle Corporation
java.vm.specification.version 1.8
java.vm.vendor Oracle Corporation
java.vm.version 25.111-b14
jna.loaded true
jna.platform.library.path /usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:/lib64:/usr/lib:/lib
jnidispatch.path /tmp/jna--1712433994/jna3064635532468336844.tmp
line.separator
mail.smtp.sendpartial true
mail.smtps.sendpartial true
os.arch amd64
os.name Linux
os.version 4.4.11-23.53.amzn1.x86_64
path.separator :
sun.arch.data.model 64
sun.boot.class.path /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/classes
sun.boot.library.path /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64
sun.cpu.endian little
sun.cpu.isalist
sun.font.fontmanager sun.awt.X11FontManager
sun.io.unicode.encoding UnicodeLittle
sun.java.command /usr/share/jenkins/jenkins.war
sun.java.launcher SUN_STANDARD
sun.jnu.encoding UTF-8
sun.management.compiler HotSpot 64-Bit Tiered Compilers
sun.os.patch.level unknown
svnkit.http.methods Digest,Basic,NTLM,Negotiate
svnkit.ssh2.persistent false
user.dir /
user.home /var/jenkins_home
user.language en
user.name jenkins
user.timezone Etc/UTC
Environment Variables
Name ↓
Value
CA_CERTIFICATES_JAVA_VERSION 20140324
COPY_REFERENCE_FILE_LOG /var/jenkins_home/copy_reference_file.log
HOME /var/jenkins_home
HOSTNAME 6565806f61fe
JAVA_DEBIAN_VERSION 8u111-b14-2~bpo8+1
JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
JAVA_VERSION 8u111
JENKINS_HOME /var/jenkins_home
JENKINS_SLAVE_AGENT_PORT 50000
JENKINS_UC https://updates.jenkins.io
JENKINS_VERSION 2.36
LANG C.UTF-8
MLBAM_JENKINS_URL https://epg.jenkins.us-east-1.bamgrid.net
MLBAM_TEAM_NAME amz-epg
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD /
SHLVL 0
TINI_SHA 0f78709a0e3c80e7c9119fdc32c2bc0f4cfc4cab
TINI_VERSION 0.13.1
Plugins
Name ↓
Version
Enabled
Pinned
ace-editor 1.1 true false
ant 1.4 true false
antisamy-markup-formatter 1.5 true false
artifactory 2.8.2 true false
authentication-tokens 1.3 true false
aws-java-sdk 1.11.66 true false
blueocean 1.0.0-b13 true false
blueocean-autofavorite 0.5 true false
blueocean-commons 1.0.0-b13 true false
blueocean-config 1.0.0-b13 true false
blueocean-dashboard 1.0.0-b13 true false
blueocean-display-url 1.3 true false
blueocean-events 1.0.0-b13 true false
blueocean-i18n 1.0.0-b13 true false
blueocean-jwt 1.0.0-b13 true false
blueocean-personalization 1.0.0-b13 true false
blueocean-pipeline-api-impl 1.0.0-b13 true false
blueocean-rest 1.0.0-b13 true false
blueocean-rest-impl 1.0.0-b13 true false
blueocean-web 1.0.0-b13 true false
bouncycastle-api 2.16.0 true false
branch-api 2.0.8 true false
build-timeout 1.18 true false
cloudbees-folder 6.0.3 true false
config-file-provider 2.13 true false
credentials 2.1.13 true false
credentials-binding 1.11 true false
display-url-api 0.5 true false
docker-commons 1.5 true false
docker-workflow 1.9.1 true false
durable-task 1.13 true false
email-ext 2.52 true false
external-monitor-job 1.6 true false
favorite 2.0.4 true false
git 3.0.1 true false
git-client 2.1.0 true false
git-server 1.7 true false
github 1.25.0 true false
github-api 1.80 true false
github-branch-source 1.10.1 true false
github-organization-folder 1.5 true false
gradle 1.25 true false
handlebars 1.1.1 true false
hipchat 2.0.0 true false
icon-shim 2.0.3 true false
ivy 1.26 true false
jackson2-api 2.7.3 true false
javadoc 1.4 true false
jquery-detached 1.2.1 true false
junit 1.19 true false
ldap 1.13 true false
mailer 1.18 true false
mapdb-api 1.0.9.0 true false
matrix-auth 1.4 true false
matrix-project 1.7.1 true false
maven-plugin 2.14 true false
metrics 3.1.2.9 true false
momentjs 1.1.1 true false
pam-auth 1.3 true false
pipeline-build-step 2.5 true false
pipeline-graph-analysis 1.3 true false
pipeline-input-step 2.5 true false
pipeline-milestone-step 1.3.1 true false
pipeline-model-api 1.1.2 true false
pipeline-model-declarative-agent 1.1.1 true false
pipeline-model-definition 1.1.2 true false
pipeline-model-extensions 1.1.2 true false
pipeline-rest-api 2.6 true false
pipeline-stage-step 2.2 true false
pipeline-stage-tags-metadata 1.1.2 true false
pipeline-stage-view 2.6 true false
plain-credentials 1.3 true false
resource-disposer 0.3 true false
scm-api 2.1.1 true false
script-security 1.27 true false
simple-theme-plugin 0.3 true false
slack 2.1 true false
sse-gateway 1.10 true false
ssh-credentials 1.12 true false
ssh-slaves 1.12 true false
structs 1.6 true false
subversion 2.7.1 true false
swarm 2.2 true false
timestamper 1.8.7 true false
token-macro 2.0 true false
variant 1.1 true false
windows-slaves 1.2 true false
workflow-aggregator 2.5 true false
workflow-api 2.13 true false
workflow-basic-steps 2.4 true false
workflow-cps 2.29 true false
workflow-cps-global-lib 2.7 true false
workflow-durable-task-step 2.10 true false
workflow-job 2.10 true false
workflow-multibranch 2.14 true false
workflow-remote-loader 1.3 true false
workflow-scm-step 2.4 true false
workflow-step-api 2.9 true false
workflow-support 2.14 true false
ws-cleanup 0.32 true falseSystem Properties Name ↓ Value awt.toolkit sun.awt.X11.XToolkit executable-war /usr/share/jenkins/jenkins.war file.encoding UTF-8 file.encoding.pkg sun.io file.separator / java.awt.graphicsenv sun.awt.X11GraphicsEnvironment java.awt.headless true java.awt.printerjob sun.print.PSPrinterJob java.class.path /usr/share/jenkins/jenkins.war java.class.version 52.0 java.endorsed.dirs /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/endorsed java.ext.dirs /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext:/usr/java/packages/lib/ext java.home /usr/lib/jvm/java-8-openjdk-amd64/jre java.io.tmpdir /tmp java.library.path /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib java.runtime.name OpenJDK Runtime Environment java.runtime.version 1.8.0_111-8u111-b14-2~bpo8+1-b14 java.specification.name Java Platform API Specification java.specification.vendor Oracle Corporation java.specification.version 1.8 java.vendor Oracle Corporation java.vendor.url http://java.oracle.com/ java.vendor.url.bug http://bugreport.sun.com/bugreport/ java.version 1.8.0_111 java.vm.info mixed mode java.vm.name OpenJDK 64-Bit Server VM java.vm.specification.name Java Virtual Machine Specification java.vm.specification.vendor Oracle Corporation java.vm.specification.version 1.8 java.vm.vendor Oracle Corporation java.vm.version 25.111-b14 jna.loaded true jna.platform.library.path /usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:/lib64:/usr/lib:/lib jnidispatch.path /tmp/jna--1712433994/jna3064635532468336844.tmp line.separator mail.smtp.sendpartial true mail.smtps.sendpartial true os.arch amd64 os.name Linux os.version 4.4.11-23.53.amzn1.x86_64 path.separator : sun.arch.data.model 64 sun.boot.class.path /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/classes sun.boot.library.path /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64 sun.cpu.endian little sun.cpu.isalist sun.font.fontmanager sun.awt.X11FontManager sun.io.unicode.encoding UnicodeLittle sun.java.command /usr/share/jenkins/jenkins.war sun.java.launcher SUN_STANDARD sun.jnu.encoding UTF-8 sun.management.compiler HotSpot 64-Bit Tiered Compilers sun.os.patch.level unknown svnkit.http.methods Digest,Basic,NTLM,Negotiate svnkit.ssh2.persistent false user.dir / user.home /var/jenkins_home user.language en user.name jenkins user.timezone Etc/UTC Environment Variables Name ↓ Value CA_CERTIFICATES_JAVA_VERSION 20140324 COPY_REFERENCE_FILE_LOG /var/jenkins_home/copy_reference_file.log HOME /var/jenkins_home HOSTNAME 6565806f61fe JAVA_DEBIAN_VERSION 8u111-b14-2~bpo8+1 JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 JAVA_VERSION 8u111 JENKINS_HOME /var/jenkins_home JENKINS_SLAVE_AGENT_PORT 50000 JENKINS_UC https://updates.jenkins.io JENKINS_VERSION 2.36 LANG C.UTF-8 MLBAM_JENKINS_URL https://epg.jenkins.us-east-1.bamgrid.net MLBAM_TEAM_NAME amz-epg PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PWD / SHLVL 0 TINI_SHA 0f78709a0e3c80e7c9119fdc32c2bc0f4cfc4cab TINI_VERSION 0.13.1 Plugins Name ↓ Version Enabled Pinned ace-editor 1.1 true false ant 1.4 true false antisamy-markup-formatter 1.5 true false artifactory 2.8.2 true false authentication-tokens 1.3 true false aws-java-sdk 1.11.66 true false blueocean 1.0.0-b13 true false blueocean-autofavorite 0.5 true false blueocean-commons 1.0.0-b13 true false blueocean-config 1.0.0-b13 true false blueocean-dashboard 1.0.0-b13 true false blueocean-display-url 1.3 true false blueocean-events 1.0.0-b13 true false blueocean-i18n 1.0.0-b13 true false blueocean-jwt 1.0.0-b13 true false blueocean-personalization 1.0.0-b13 true false blueocean-pipeline-api-impl 1.0.0-b13 true false blueocean-rest 1.0.0-b13 true false blueocean-rest-impl 1.0.0-b13 true false blueocean-web 1.0.0-b13 true false bouncycastle-api 2.16.0 true false branch-api 2.0.8 true false build-timeout 1.18 true false cloudbees-folder 6.0.3 true false config-file-provider 2.13 true false credentials 2.1.13 true false credentials-binding 1.11 true false display-url-api 0.5 true false docker-commons 1.5 true false docker-workflow 1.9.1 true false durable-task 1.13 true false email-ext 2.52 true false external-monitor-job 1.6 true false favorite 2.0.4 true false git 3.0.1 true false git-client 2.1.0 true false git-server 1.7 true false github 1.25.0 true false github-api 1.80 true false github-branch-source 1.10.1 true false github-organization-folder 1.5 true false gradle 1.25 true false handlebars 1.1.1 true false hipchat 2.0.0 true false icon-shim 2.0.3 true false ivy 1.26 true false jackson2-api 2.7.3 true false javadoc 1.4 true false jquery-detached 1.2.1 true false junit 1.19 true false ldap 1.13 true false mailer 1.18 true false mapdb-api 1.0.9.0 true false matrix-auth 1.4 true false matrix-project 1.7.1 true false maven-plugin 2.14 true false metrics 3.1.2.9 true false momentjs 1.1.1 true false pam-auth 1.3 true false pipeline-build-step 2.5 true false pipeline-graph-analysis 1.3 true false pipeline-input-step 2.5 true false pipeline-milestone-step 1.3.1 true false pipeline-model-api 1.1.2 true false pipeline-model-declarative-agent 1.1.1 true false pipeline-model-definition 1.1.2 true false pipeline-model-extensions 1.1.2 true false pipeline-rest-api 2.6 true false pipeline-stage-step 2.2 true false pipeline-stage-tags-metadata 1.1.2 true false pipeline-stage-view 2.6 true false plain-credentials 1.3 true false resource-disposer 0.3 true false scm-api 2.1.1 true false script-security 1.27 true false simple-theme-plugin 0.3 true false slack 2.1 true false sse-gateway 1.10 true false ssh-credentials 1.12 true false ssh-slaves 1.12 true false structs 1.6 true false subversion 2.7.1 true false swarm 2.2 true false timestamper 1.8.7 true false token-macro 2.0 true false variant 1.1 true false windows-slaves 1.2 true false workflow-aggregator 2.5 true false workflow-api 2.13 true false workflow-basic-steps 2.4 true false workflow-cps 2.29 true false workflow-cps-global-lib 2.7 true false workflow-durable-task-step 2.10 true false workflow-job 2.10 true false workflow-multibranch 2.14 true false workflow-remote-loader 1.3 true false workflow-scm-step 2.4 true false workflow-step-api 2.9 true false workflow-support 2.14 true false ws-cleanup 0.32 true false
Given a declarative pipeline Jenkinsfile, modifications to the parameters block seem to take place inconsistently. Attached are four jenkinsfiles numbered 1-4. ive included step by step instructions below to reproduce the issues I've seen. The two main issues I've seen are that changes to existing parameters seem to require multiple builds to actually apply, and that the last parameter in a build cannot ever actually be removed.
- Apply and run Jenkinsfile.1. This will create a build plan with a single string parameter PARAM. This seems to work fine.
- Apply and run Jenkinsfile.2. This file switches the type of the PARAM parameter from a string to a boolean. It also adds a second parameter PARAM2 of type string. The first build using the second jenkinsfile will echo the old default value for PARAM but the new default value for PARAM2. Viewing the 'Parameters' tab of the build will display only PARAM, display the old default value, and say that it is of type string despite it being switched to a boolean.
- Rerun the build with the same jenkinsfile. (This can be done either by 'Build With Parameters' which will display the correct params and default values or by a trivial change to the jenkinsfile). The second run with Jenkinsfile.2 will result in the default boolean value for PARAM to be used. The 'Parameters' tab for this build will display the correct parameters, types, and values.
- Apply and run Jenkinsfile.3. This file removes the PARAM parameter (but still references it in the task in an echo). The parameters tab will display both parameters despite PARAM being removed. The build step will echo the default value for PARAM despite it being removed.
- Rerun the build with the same jenkinsfile (as in step 3, either manually or by a trivial change to the jenkinsfile). The parameters tab will have PARAM removed and the build step that echoes PARAM will echo null.
- Apply and run Jenkinsfile.4. This file removes the parameters block entirely. The parameters tab will still display PARAM2, and PARAM2's default value will be echoed despite the param being removed. This behaves much like removing PARAM did in step 4, except for the next step
- Rerun the build with the build with the same jenkinsfile. Unlike removing PARAM, PARAM2 is still displayed in 'Build With Parameters' and rerunning the build still echoes the default value for PARAM2 despite it not being in the Jenkinsfile.
In case anyone is wondering, I know that some of the steps in here are kind of weird steps to take in the normal usecase of jenkinsfiles. I stumbled across these issues while attempting to isolate a different bug (already reported as JENKINS-43486) where I was trying to change param types from string to boolean or vice versa and remove params.
- duplicates
-
JENKINS-44149 Removing triggers block does not remove triggers from config.xml
- Closed