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

Allow Script Path/Content to add/override environment variables for the build job

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • envinject-plugin
    • None
    • Environment Injector Plugin v1.55

      Currently the help indication for Script Path/Content states:

      ... adding or overriding environment variables in the script doesn't have any impacts in the build job.

      It would be extremely useful to be able to source a script (i.e., bash) which exports environment variables such that they persist for use in the build job. Currently to work around this, I need to source the script at the top of every Execute Shell build step.

          [JENKINS-14097] Allow Script Path/Content to add/override environment variables for the build job

          David Ehrenberger created issue -
          Gregory Boissinot made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 144728 ] New: JNJira + In-Review [ 185414 ]

            gbois Gregory Boissinot
            daehren David Ehrenberger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: