linux_wiki:jenkins_multibranch_pipeline

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux_wiki:jenkins_multibranch_pipeline [2019/06/23 17:52]
billdozor created
linux_wiki:jenkins_multibranch_pipeline [2019/07/13 20:39] (current)
billdozor [Build Strategies]
Line 44: Line 44:
 Build strategies are ways to limit what branches are built and when. Build strategies are ways to limit what branches are built and when.
  
-  * FIXME - to add some build strategies.+  * "Suppress automatic SCM triggering" 
 +    * Do not build on changes during a multibranch scan. 
 +    * **Note**: This strategy is removed when you install the plugin "Basic Branch Build Strategies Plugin" below, but can be achieved in a different way. 
 + 
 +  * Install the plugin: [[https://wiki.jenkins.io/display/JENKINS/Basic+Branch+Build+Strategies+Plugin|Basic Branch Build Strategies Plugin]] 
 +    * "All Strategies Match" 
 +      * The strategies contained are all used together. This strategy must be used to contain the next two if you don't want automatic scm triggering. 
 +      * "Skip initial build on first branch indexing" 
 +        * Don't build upon initial branch discovery (will build every time after if changes are discovered unless further build strategies are added) 
 +      * "Named Branches" 
 +        * Add "Wildcard include/exclude" 
 +          * "Exclude: *" 
 +            * This will exclude all matched branch names from building - useful if you only want to build branches explicitly and not automatically(such as deploy jobs) You could also only exclude branches that may deploy to production (For example: master)
  
 ---- ----
  
  • linux_wiki/jenkins_multibranch_pipeline.1561326752.txt.gz
  • Last modified: 2019/06/23 17:52
  • by billdozor