-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: core
-
Environment:Jenkins: 2.263.4
OS: Linux - 4.15.0-161-generic
---
PrioritySorter:3.6.0
accelerated-build-now-plugin:1.0.1
ace-editor:1.1
amazon-ecr:1.6
analysis-collector:2.0.0
analysis-core:1.96
analysis-model-api:9.8.1
ansicolor:0.7.5
ant:1.11
antisamy-markup-formatter:2.1
apache-httpcomponents-client-4-api:4.5.13-1.0
artifactdeployer:1.2
artifactory:3.10.5
authentication-tokens:1.4
aws-credentials:1.28
aws-java-sdk:1.11.955
bootstrap4-api:4.6.0-2
bouncycastle-api:2.18
branch-api:2.6.2
browserstack-integration:1.2.3
build-failure-analyzer:2.0.0
build-pipeline-plugin:1.5.8
build-symlink:1.1
build-timeout:1.20
checks-api:1.5.0
checkstyle:4.0.0
cloud-stats:0.26
cloudbees-bitbucket-branch-source:2.9.7
cloudbees-folder:6.15
cobertura:1.16
code-coverage-api:1.3.1
command-launcher:1.5
conditional-buildstep:1.4.1
config-file-provider:3.7.0
copyartifact:1.43
create-fingerprint:1.2
credentials:2.3.15
credentials-binding:1.24
cvs:2.17
data-tables-api:1.10.23-3
depgraph-view:1.0.5
discard-old-build:1.05
disk-usage:0.28
display-url-api:2.3.4
docker-commons:1.17
docker-slaves:1.0.7
docker-workflow:1.26
downstream-buildview:1.9
durable-task:1.35
echarts-api:4.9.0-4
extended-read-permission:3.2
external-monitor-job:1.7
favorite:2.3.2
findbugs:5.0.0
font-awesome-api:5.15.2-2
forensics-api:1.0.0
ghprb:1.42.2
git:4.6.0
git-client:3.6.0
git-server:1.9
github:1.33.1
github-api:1.123
github-branch-source:2.9.7
github-oauth:0.33
github-organization-folder:1.6
google-login:1.6
google-oauth-plugin:1.0.3
gradle:1.36
greenballs:1.15.1
handlebars:1.1.1
handy-uri-templates-2-api:2.1.8-1.0
htmlpublisher:1.25
icon-shim:2.0.3
influxdb:2.5
ivy:2.1
jackson2-api:2.12.1
jacoco:3.2.0
javadoc:1.6
jclouds-jenkins:2.20
jdk-tool:1.5
jenkins-design-language:1.24.4
jira:3.2
jjwt-api:0.11.2-9.c8b45b8bb173
jobConfigHistory:2.26
jquery:1.12.4-1
jquery-detached:1.2.1
jquery-ui:1.0.2
jquery3-api:3.5.1-3
jsch:0.1.55.2
junit:1.48
kubernetes:1.29.1
kubernetes-client-api:4.13.2-1
kubernetes-credentials:0.8.0
label-linked-jobs:6.0.1
ldap:1.26
lockable-resources:2.10
locks-and-latches:0.6
logstash:2.4.0
mailer:1.32.1
mapdb-api:1.0.9.0
matrix-auth:2.6.5
matrix-project:1.18
maven-plugin:3.8
mercurial:2.12
metrics:4.0.2.7
momentjs:1.1.1
oauth-credentials:0.4
okhttp-api:3.14.9
openid:2.4
openid4java:0.9.8.0
pam-auth:1.6
parameterized-trigger:2.39
percentage-du-node-column:0.1.0
pipeline-build-step:2.13
pipeline-github:2.7
pipeline-github-lib:1.0
pipeline-graph-analysis:1.10
pipeline-input-step:2.12
pipeline-milestone-step:1.3.2
pipeline-model-api:1.8.4
pipeline-model-declarative-agent:1.1.1
pipeline-model-definition:1.8.4
pipeline-model-extensions:1.8.4
pipeline-rest-api:2.19
pipeline-stage-step:2.5
pipeline-stage-tags-metadata:1.8.4
pipeline-stage-view:2.19
pipeline-utility-steps:2.6.1
plain-credentials:1.7
plugin-util-api:2.0.0
popper-api:1.16.1-2
postbuildscript:2.11.0
publish-over:0.22
publish-over-ssh:1.22
pubsub-light:1.13
rebuild:1.31
resource-disposer:0.15
robot:2.2.0
run-condition:1.5
scm-api:2.6.4
scoring-load-balancer:1.0.1
script-security:1.76
slack:2.45
snakeyaml-api:1.27.0
sse-gateway:1.24
ssh-agent:1.21
ssh-credentials:1.18.1
ssh-slaves:1.31.5
structs:1.22
subversion:2.14.0
throttle-concurrents:2.1
timestamper:1.11.8
token-macro:2.13
translation:1.16
trilead-api:1.0.13
variant:1.4
warnings:5.0.1
warnings-ng:8.10.0
windows-slaves:1.7
workflow-aggregator:2.6
workflow-api:2.41
workflow-basic-steps:2.23
workflow-cps:2.90
workflow-cps-global-lib:2.18
workflow-durable-task-step:2.37
workflow-job:2.40
workflow-multibranch:2.22
workflow-scm-step:2.12
workflow-step-api:2.23
workflow-support:3.7
ws-cleanup:0.39Jenkins: 2.263.4 OS: Linux - 4.15.0-161-generic --- PrioritySorter:3.6.0 accelerated-build-now-plugin:1.0.1 ace-editor:1.1 amazon-ecr:1.6 analysis-collector:2.0.0 analysis-core:1.96 analysis-model-api:9.8.1 ansicolor:0.7.5 ant:1.11 antisamy-markup-formatter:2.1 apache-httpcomponents-client-4-api:4.5.13-1.0 artifactdeployer:1.2 artifactory:3.10.5 authentication-tokens:1.4 aws-credentials:1.28 aws-java-sdk:1.11.955 bootstrap4-api:4.6.0-2 bouncycastle-api:2.18 branch-api:2.6.2 browserstack-integration:1.2.3 build-failure-analyzer:2.0.0 build-pipeline-plugin:1.5.8 build-symlink:1.1 build-timeout:1.20 checks-api:1.5.0 checkstyle:4.0.0 cloud-stats:0.26 cloudbees-bitbucket-branch-source:2.9.7 cloudbees-folder:6.15 cobertura:1.16 code-coverage-api:1.3.1 command-launcher:1.5 conditional-buildstep:1.4.1 config-file-provider:3.7.0 copyartifact:1.43 create-fingerprint:1.2 credentials:2.3.15 credentials-binding:1.24 cvs:2.17 data-tables-api:1.10.23-3 depgraph-view:1.0.5 discard-old-build:1.05 disk-usage:0.28 display-url-api:2.3.4 docker-commons:1.17 docker-slaves:1.0.7 docker-workflow:1.26 downstream-buildview:1.9 durable-task:1.35 echarts-api:4.9.0-4 extended-read-permission:3.2 external-monitor-job:1.7 favorite:2.3.2 findbugs:5.0.0 font-awesome-api:5.15.2-2 forensics-api:1.0.0 ghprb:1.42.2 git:4.6.0 git-client:3.6.0 git-server:1.9 github:1.33.1 github-api:1.123 github-branch-source:2.9.7 github-oauth:0.33 github-organization-folder:1.6 google-login:1.6 google-oauth-plugin:1.0.3 gradle:1.36 greenballs:1.15.1 handlebars:1.1.1 handy-uri-templates-2-api:2.1.8-1.0 htmlpublisher:1.25 icon-shim:2.0.3 influxdb:2.5 ivy:2.1 jackson2-api:2.12.1 jacoco:3.2.0 javadoc:1.6 jclouds-jenkins:2.20 jdk-tool:1.5 jenkins-design-language:1.24.4 jira:3.2 jjwt-api:0.11.2-9.c8b45b8bb173 jobConfigHistory:2.26 jquery:1.12.4-1 jquery-detached:1.2.1 jquery-ui:1.0.2 jquery3-api:3.5.1-3 jsch:0.1.55.2 junit:1.48 kubernetes:1.29.1 kubernetes-client-api:4.13.2-1 kubernetes-credentials:0.8.0 label-linked-jobs:6.0.1 ldap:1.26 lockable-resources:2.10 locks-and-latches:0.6 logstash:2.4.0 mailer:1.32.1 mapdb-api:1.0.9.0 matrix-auth:2.6.5 matrix-project:1.18 maven-plugin:3.8 mercurial:2.12 metrics:4.0.2.7 momentjs:1.1.1 oauth-credentials:0.4 okhttp-api:3.14.9 openid:2.4 openid4java:0.9.8.0 pam-auth:1.6 parameterized-trigger:2.39 percentage-du-node-column:0.1.0 pipeline-build-step:2.13 pipeline-github:2.7 pipeline-github-lib:1.0 pipeline-graph-analysis:1.10 pipeline-input-step:2.12 pipeline-milestone-step:1.3.2 pipeline-model-api:1.8.4 pipeline-model-declarative-agent:1.1.1 pipeline-model-definition:1.8.4 pipeline-model-extensions:1.8.4 pipeline-rest-api:2.19 pipeline-stage-step:2.5 pipeline-stage-tags-metadata:1.8.4 pipeline-stage-view:2.19 pipeline-utility-steps:2.6.1 plain-credentials:1.7 plugin-util-api:2.0.0 popper-api:1.16.1-2 postbuildscript:2.11.0 publish-over:0.22 publish-over-ssh:1.22 pubsub-light:1.13 rebuild:1.31 resource-disposer:0.15 robot:2.2.0 run-condition:1.5 scm-api:2.6.4 scoring-load-balancer:1.0.1 script-security:1.76 slack:2.45 snakeyaml-api:1.27.0 sse-gateway:1.24 ssh-agent:1.21 ssh-credentials:1.18.1 ssh-slaves:1.31.5 structs:1.22 subversion:2.14.0 throttle-concurrents:2.1 timestamper:1.11.8 token-macro:2.13 translation:1.16 trilead-api:1.0.13 variant:1.4 warnings:5.0.1 warnings-ng:8.10.0 windows-slaves:1.7 workflow-aggregator:2.6 workflow-api:2.41 workflow-basic-steps:2.23 workflow-cps:2.90 workflow-cps-global-lib:2.18 workflow-durable-task-step:2.37 workflow-job:2.40 workflow-multibranch:2.22 workflow-scm-step:2.12 workflow-step-api:2.23 workflow-support:3.7 ws-cleanup:0.39
Manage Jenkins/Configure System
Under Global Properties add an environment variable.
Make a mistake and have space before the name. Example:
Name: " DOCKER_DEFAULT_PLATFORM"
Value: "linux/amd64"
Save
Then run a job that dumps the environment variables:
// Uses Declarative syntax to run commands inside a container. pipeline {   agent { label "docker-host" }   stages {     stage('Main') {       steps {         sh '''         env | sort         '''       }     }   } }
The variable will not be present.
Â
Expected:Â
Warning is given in the screen above about leading whitespace
or
Leading and trailing whitespace is automatically removed
or
Environment variable is set, with the whitespace in the name.