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

buildWithParamteres is used when '"actions":[{},{},{}]' is returned

    XMLWordPrintable

Details

    Description

      Our Remote Target Job answers
      http://test.jenkins.retail-sc.com//job/remote-trigger-test-target/api/json

      {"actions":[{},{},{}],"description":"Triggered \"remotely\" by <a href=\"../remote-trigger-test-source\">remote-trigger-test-source</a>","displayName":"remote-trigger-test-target","displayNameOrNull":null,"name":"remote-trigger-test-target","url":"https://test.jenkins.retail-sc.com/job/remote-trigger-test-target/","buildable":true,"builds":[],"color":"notbuilt","firstBuild":null,"healthReport":[],"inQueue":false,"keepDependencies":false,"lastBuild":null,"lastCompletedBuild":null,"lastFailedBuild":null,"lastStableBuild":null,"lastSuccessfulBuild":null,"lastUnstableBuild":null,"lastUnsuccessfulBuild":null,"nextBuildNumber":1,"property":[{},{}],"queueItem":null,"concurrentBuild":false,"downstreamProjects":[],"scm":{},"upstreamProjects":[]}

      which makes https://github.com/jenkinsci/parameterized-remote-trigger-plugin/commit/d544e329dc27fdf700c5f23191077b4a7074a4d9 decide to be parametrized:

      if(response.getJSONArray("actions").size() >= 1)

      { isParameterized = true; }

      Like the perform method it needs to be checked if there are parameters inside of the action:
      if (!action.has("parameters")) continue;

      Attachments

        Activity

          I think this issue is the "remote jobs without parameters" which was resolved. 

          cashlalala KaiHsiang Chang added a comment - I think this issue is the "remote jobs without parameters" which was resolved. 

          People

            cashlalala KaiHsiang Chang
            sc_rsc Stefan Cordes
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: