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

Error 500 using Build other Projects in Promotion process of a template

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None
    • Jenkins 1.625.3.1
      CloudBees Template 4.21

      When adding a Build Other Projects step in the promotion process in a Job Template, the server raises a NullPointerException when processing the following request:

      http://localhost:8083/job/test-job/descriptorByName/hudson.tasks.BuildTrigger/check?value=
      

      The method doCheck in the BuildTrigger assume that the @AncestorInPath is not null which is a bug.

      Source code is here: https://github.com/jenkinsci/jenkins/blob/e2dccc35572b64f5e602a6b1b3efb517c578872c/core/src/main/java/hudson/tasks/BuildTrigger.java#L371

      How to reproduce:

      • Create a Job Template "test-job" at the root
      • Tick "Define Promotion Process"
      • "Build Other Projects" action
      • An ERROR link appears

      Note: This issue does not block the functionality and this error can be ignored. Specifying an existing project and saving the configuration will make this error disappears.

          [JENKINS-32525] Error 500 using Build other Projects in Promotion process of a template

          Allan BURDAJEWICZ created issue -
          Allan BURDAJEWICZ made changes -
          Attachment New: build-other-projects-error.txt [ 31658 ]
          Allan BURDAJEWICZ made changes -
          Assignee New: Allan BURDAJEWICZ [ allan_burdajewicz ]
          Allan BURDAJEWICZ made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Allan BURDAJEWICZ made changes -
          Remote Link New: This issue links to "PR 2087 (Web Link)" [ 14035 ]
          Jesse Glick made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-28113 [ JENKINS-28113 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 168168 ] New: JNJira + In-Review [ 198364 ]

            allan_burdajewicz Allan BURDAJEWICZ
            allan_burdajewicz Allan BURDAJEWICZ
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: