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

Failing to set string parameter from groovy script

    XMLWordPrintable

Details

    Description

      Earlier I was on Jenkins version 1.653 and the below script was able to set a parameter value from groovy post build script.
      _def pa = new ParametersAction([new StringParameterValue("TestStatusLog", "Test Passed with Warnings")])
      // add variable to current job
      Thread.currentThread().executable.addAction(pa)_

      Yesterday(7/18), I have upgraded Jenkins to version 2.13 and to my surprise, the above code is not working any more. Please check and try to fix this.

      Attachments

        Activity

          ikedam ikedam added a comment -

          I believe this is caused for fix of SECURITY-170 in Jenkins core.
          See https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2016-05-11 for details.

          Check your problem is affected by SECURITY-170 e.g. by setting hudson.model.ParametersAction.safeParameters to jvm properties.
          If you find your issue unrelated to SECURITY-170,
          please report more details:

          • The configuration of the downstream job.
          • What happens in the downstream build (in other words, how you found parameters not passed to downstreams).
          ikedam ikedam added a comment - I believe this is caused for fix of SECURITY-170 in Jenkins core. See https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2016-05-11 for details. Check your problem is affected by SECURITY-170 e.g. by setting hudson.model.ParametersAction.safeParameters to jvm properties. If you find your issue unrelated to SECURITY-170, please report more details: The configuration of the downstream job. What happens in the downstream build (in other words, how you found parameters not passed to downstreams).
          ikedam ikedam added a comment -

          No response from the reporter for a month.
          Reopen the ticket when you report more details.

          ikedam ikedam added a comment - No response from the reporter for a month. Reopen the ticket when you report more details.

          People

            rkkreddy Kirna Kumar Reddyvari
            rkkreddy Kirna Kumar Reddyvari
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: