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

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

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            freol Vlad Frolov added a comment -

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

            Show
            freol Vlad Frolov added a comment - I have updated several plugins today and now it is working fine!
            Hide
            adrien Adrien CLERC added a comment -

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

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

            Show
            adrien Adrien CLERC added a comment - I confirmed this behavior, both before and after plugin update. Unfortunately, I didn't record which plugins were updated.
            Hide
            ashish_behl 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?

            Show
            ashish_behl 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?
            Hide
            freol 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?

            Show
            freol 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?
            Hide
            ashish_behl 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.

            Show
            ashish_behl 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.

              People

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

                Dates

                Created:
                Updated:
                Resolved: