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

Parametrized build doesn't set environment variables in Mutli-configuration projects

      Steps to reproduce:

      1. Create a new Multi-configuration project
      2. Enable "This project is parameterized"
      3. Add parameters (I tried choices, strings, boolean)
      4. Add "Execute shell" build step with `env` command
      5. Save and "Build with Parameters"

      The `env` output will not contain any parameters set on step (3), while it should and it used to work fine on Jenkins 1.x.

          [JENKINS-35024] Parametrized build doesn't set environment variables in Mutli-configuration projects

          Vlad Frolov added a comment -

          I have updated several plugins today and now it is working fine!

          Vlad Frolov added a comment - I have updated several plugins today and now it is working fine!

          Adrien CLERC added a comment -

          I confirmed this behavior, both before and after plugin update.

          Unfortunately, I didn't record which plugins were updated.

          Adrien CLERC added a comment - I confirmed this behavior, both before and after plugin update. Unfortunately, I didn't record which plugins were updated.

          Ashish Behl added a comment -

          Please see the issue:
          https://issues.jenkins-ci.org/browse/JENKINS-35921

          I am still facing the problem. Please let me know if there is any other specific plugin to update in jenkins?

          Ashish Behl added a comment - Please see the issue: https://issues.jenkins-ci.org/browse/JENKINS-35921 I am still facing the problem. Please let me know if there is any other specific plugin to update in jenkins?

          Vlad Frolov added a comment -

          As far as I recall, at the time I faced the issue, it was caused by Credentials Plugin. Is it up-to-date in your setup?

          Vlad Frolov added a comment - As far as I recall, at the time I faced the issue, it was caused by Credentials Plugin. Is it up-to-date in your setup?

          Ashish Behl added a comment -

          Thanks. the problem was definitely with credentials plugin.
          But after upgrading the credentials plugin, now passing credentials to shell script as job parameters does not work. crashes when adding "use secret texts -> bindings"

          Marking this issue as resolved.
          Thanks for the help and a quick answer.

          Ashish Behl added a comment - Thanks. the problem was definitely with credentials plugin. But after upgrading the credentials plugin, now passing credentials to shell script as job parameters does not work. crashes when adding "use secret texts -> bindings" Marking this issue as resolved. Thanks for the help and a quick answer.

            huybrechts huybrechts
            freol Vlad Frolov
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: