Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36604

Support CLI command to set environment variables

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • envinject-plugin
    • 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

          Oleg Nenashev added a comment -

          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.

          Oleg Nenashev added a comment - 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.

          Sorry, you are correct – fixed.

          Victor Varvariuc added a comment - Sorry, you are correct – fixed.

            Unassigned Unassigned
            warvariuc Victor Varvariuc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: