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

Builds with password parameters cause remote trigger to show failure

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Execute a remote parameterized build with a password parameter, and the following stack trace happens on the local Jenkins even though the remote build succeeds. This happens because the Jenkins API strips out the value of password parameters.

      ERROR: Build step failed with exception
      net.sf.json.JSONException: JSONObject["value"] not found.
      	at net.sf.json.JSONObject.getString(JSONObject.java:2040)
      	at org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.compareParameters(RemoteBuildConfiguration.java:695)
      	at org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.perform(RemoteBuildConfiguration.java:567)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
      	at hudson.model.Build$BuildExecution.build(Build.java:203)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
      	at hudson.model.Run.execute(Run.java:1741)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:374)
      

        Attachments

          Activity

          Hide
          jeffastorey Jeff Storey added a comment -
          Show
          jeffastorey Jeff Storey added a comment - Pull request submitted https://github.com/jenkinsci/parameterized-remote-trigger-plugin/pull/15 and ready for review
          Hide
          jmf10024 Justin Fiore added a comment -

          What is the status of this ticket? Can Jeff Storey's commit be merged and released?

          I am also hitting this issue.

          Show
          jmf10024 Justin Fiore added a comment - What is the status of this ticket? Can Jeff Storey 's commit be merged and released? I am also hitting this issue.
          Hide
          tom_ghyselinck Tom Ghyselinck added a comment -

          Hi,

          When will this pull request be integrated?

          We are still bothered by this issue.

          Show
          tom_ghyselinck Tom Ghyselinck added a comment - Hi, When will this pull request be integrated? We are still bothered by this issue.

            People

            • Assignee:
              cashlalala KaiHsiang Chang
              Reporter:
              jeffastorey Jeff Storey
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: