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

REGRESSION: Unable to save pipeline from editor

    Details

    • Epic Link:
    • Sprint:
      Blue Ocean 1.1
    • Similar Issues:

      Description

      Looking at latest master, unable to create a new github pipeline that has branches, but not Jenkisnfiles, and then save from the editor. 

      An error is returned from the API: 

       

      To reproduce: 

      You will note an error in the console (and screen never finishes). It has however saved the Jenkinsfile, it just failed to get a response to continue on. Project is then not discovered. 

        Attachments

          Activity

          Hide
          michaelneale Michael Neale added a comment -

          Looks like it is due to org missing: 

           

          {
          "message" : "Failed to create Git pipeline",
          "code" : 400,
          "errors" : [ {
          "message" : "organization is required",
          "code" : "MISSING",
          "field" : "organization"
          } ]
          }
          Show
          michaelneale Michael Neale added a comment - Looks like it is due to org missing:    { "message" : "Failed to create Git pipeline" , "code" : 400, "errors" : [ { "message" : "organization is required" , "code" : "MISSING" , "field" : "organization" } ] }
          Hide
          vivek Vivek Pandey added a comment -

          This regression was introduced in JENKINS-44178. organization parameter requirement in pipeline create request has been removed as it can be computed from the request context using OrganizationFactory. PR is up for review: https://github.com/jenkinsci/blueocean-plugin/pull/1078.

          Show
          vivek Vivek Pandey added a comment - This regression was introduced in  JENKINS-44178 . organization parameter requirement in pipeline create request has been removed as it can be computed from the request context using OrganizationFactory. PR is up for review: https://github.com/jenkinsci/blueocean-plugin/pull/1078 .

            People

            • Assignee:
              vivek Vivek Pandey
              Reporter:
              michaelneale Michael Neale
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: