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

Branch missing BranchJobProperty is unable to fix itself in a Multibranch pipeline

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Issue:
      If a job somehow loses its BranchJobProperty in its config.xml via adjusting properties or something similar, it is unable to recover without massive manual intervention

      Steps to reproduce:
      1. Create a multibranch job with at least one branch containing a Jenkinsfile
      2. Do a branch indexing event on that multibranch job
      3. Edit the config.xml to remove the BranchJobProperty
      4. Restart Jenkins
      5. Observe the branch will no longer show up in the multibranch project and it is unable to be corrected via a branch indexing event

      Steps to workaround:
      1. Completely remove the config.xml on the filesystem
      2. Restart Jenkins
      3. Re-trigger an indexing event

      We should most likely handle issues like this more gracefully/automatically

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              ataylor Alex Taylor
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: