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

Basic Branch Build Strategies Plugin build matched jobs on manual scan

      The build strategies configuration of multibranch is attached.

      Expected: 

      1. Skip build of master, develop and any other branch jobs after 'Scan Multibranch Pipeline Now' button is clicked(It doesn't work)
      2. Skip initial build of master, develop and any other branch jobs on first branch indexing(It works)
      3. Skip build of branch jobs except master and develop branch(It works)
      4. Automatically build master and develop branch when changes detected(It works)
      5. Automatically build PR jobs even it is initial build(It works)
      6. Automatically build PR jobs when changes detected(It works)
      7. Automatically build target branch jobs, when a PR is merged and target branch is master or develop(It works)

       

      Jenkinsfile of multibranch job

      // code placeholder
      pipeline {
        agent any
        stages {
          stage("Init") {
            agent any
            steps {
              echo "Init"
            }
          }
        }
      }
        
      

       

          [JENKINS-67037] Basic Branch Build Strategies Plugin build matched jobs on manual scan

          Jack created issue -
          Jack made changes -
          Description Original: The build strategies configuration of multibranch is attached.

          Expected: 
           # Skip build of master, develop and any other branch jobs after 'Scan Multibranch Pipeline Now' button is clicked({color:#FF0000}It doesn't work{color})
           # Skip initial build of master, develop and any other branch jobs on first branch indexing({color:#00875a}It works{color})
           # Skip build of branch jobs except master and develop branch({color:#00875a}It works{color})
           # Automatically build master and develop branch when changes detected({color:#00875a}It works{color})
           # Automatically build PR jobs even it is initial build
           # Automatically build PR jobs when changes detected({color:#00875a}It works{color})
           # Automatically build target branch jobs, when a PR is merged and target branch is master or develop({color:#00875a}It works{color})

           

          Jenkinsfile of multibranch job
          {code:java}
          // code placeholder
          pipeline {
            agent any
            stages {
              stage("Init") {
                agent any
                steps {
                  echo "Init"
                }
              }
            }
          }
            
          {code}
           
          New: The build strategies configuration of multibranch is attached.

          Expected: 
           # Skip build of master, develop and any other branch jobs after 'Scan Multibranch Pipeline Now' button is clicked({color:#ff0000}It doesn't work{color})
           # Skip initial build of master, develop and any other branch jobs on first branch indexing({color:#00875a}It works{color})
           # Skip build of branch jobs except master and develop branch({color:#00875a}It works{color})
           # Automatically build master and develop branch when changes detected({color:#00875a}It works{color})
           # Automatically build PR jobs even it is initial build({color:#00875a}It works{color})
           # Automatically build PR jobs when changes detected({color:#00875a}It works{color})
           # Automatically build target branch jobs, when a PR is merged and target branch is master or develop({color:#00875a}It works{color})

           

          Jenkinsfile of multibranch job
          {code:java}
          // code placeholder
          pipeline {
            agent any
            stages {
              stage("Init") {
                agent any
                steps {
                  echo "Init"
                }
              }
            }
          }
            
          {code}
           
          Jack made changes -
          Link New: This issue duplicates JENKINS-63799 [ JENKINS-63799 ]
          Jack made changes -
          Released As New: https://github.com/jenkinsci/basic-branch-build-strategies-plugin/releases/tag/71.vc1421f89888e
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            jack_zhang Jack
            jack_zhang Jack
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: