-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
The plugin would be more universal if it supported setting (hence passing them between steps) environment variables from step scripts using CLI interface ( https://wiki.jenkins-ci.org/display/JENKINS/Writing+CLI+commands ). Something like this:
java -jar jenkins-cli.jar [-s JENKINS_URL] set-env-var -b BUILD_TAG -p VAR1=VAL1 -p VAR2=VAL2
[JENKINS-36604] Support CLI command to set environment variables
Component/s | New: build-user-vars-plugin [ 17477 ] | |
Component/s | Original: _unsorted [ 19622 ] |
Description |
Original:
The plugin would be more universal if it supported setting (hence passing them between steps) environment variables from step scripts using CLI interface ( https://wiki.jenkins-ci.org/display/JENKINS/Writing+CLI+commands ). Something like this: {code} java -jar jenkins-cli.jar [-s JENKINS_URL] set-env-var -p KEY1=VAL1 -p KEY2=VAL2 -p KEY3=VAL3 {code} |
New:
The plugin would be more universal if it supported setting (hence passing them between steps) environment variables from step scripts using CLI interface ( https://wiki.jenkins-ci.org/display/JENKINS/Writing+CLI+commands ). Something like this: {code} java -jar jenkins-cli.jar [-s JENKINS_URL] set-env-var -b BUILD_ID -p VAR1=VAL1 -p VAR2=VAL2 {code} |
Description |
Original:
The plugin would be more universal if it supported setting (hence passing them between steps) environment variables from step scripts using CLI interface ( https://wiki.jenkins-ci.org/display/JENKINS/Writing+CLI+commands ). Something like this: {code} java -jar jenkins-cli.jar [-s JENKINS_URL] set-env-var -b BUILD_ID -p VAR1=VAL1 -p VAR2=VAL2 {code} |
New:
The plugin would be more universal if it supported setting (hence passing them between steps) environment variables from step scripts using CLI interface ( https://wiki.jenkins-ci.org/display/JENKINS/Writing+CLI+commands ). Something like this: {code} java -jar jenkins-cli.jar [-s JENKINS_URL] set-env-var -b BUILD_TAG -p VAR1=VAL1 -p VAR2=VAL2 {code} |
Component/s | New: envinject-plugin [ 15893 ] | |
Component/s | Original: build-user-vars-plugin [ 17477 ] |
Workflow | Original: JNJira [ 173325 ] | New: JNJira + In-Review [ 185065 ] |
Assignee | Original: Oleg Nenashev [ oleg_nenashev ] |
IMHO it's a wrong component. Build user vars just provides info about user who started the build. Maybe it's a case for EnvInject plugin or other such plugin.