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

Builds with password parameters cause remote trigger to show failure

XMLWordPrintable

      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)
      

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

              Created:
              Updated: