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

since 1.3.4 we can't use remote api to create pipeline

XMLWordPrintable

      on 1.3.3, we can use remote api to create pipeline, by posting the following data to createView url:

      $jsonvalue = array (
      "name" => $jobName,
      "mode" => "au.com.centrumsystems.hudson.plugin.buildpipeline.BuildPipelineView",
      "filterExecutors" => "false",
      "filterQueue" => "false",
      "selectedJob" => $jobName,
      "noOfDisplayedBuilds" => "10",
      "buildViewTitle" => $description,
      "refreshFrequency" => "3",
      "description" => $description,
      // does not work
      "showPipelineDefinitionHeader" => "true"
      );

      $parameters = array (
      "name" => $jobName,
      "mode" => "au.com.centrumsystems.hudson.plugin.buildpipeline.BuildPipelineView",
      "description" => $description,
      "_.showPipelineDefinitionHeader" => "true",
      "json" => json_encode ( $jsonvalue )
      );

      But after 1.3.4, it did not work.

      I guess the reason is "gridBuilder" does not be constructed, since "readResolve()" did not work.

            liweing li wei
            liweing li wei
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: