diff --git a/automation/Jenkinsfile b/automation/Jenkinsfile index 94df71470..fa589e053 100644 --- a/automation/Jenkinsfile +++ b/automation/Jenkinsfile @@ -86,8 +86,9 @@ pipeline { } } stage('Documentation') { - when { - branch 'development' + anyOf { + branch 'development'; + branch pattern: 'development-doc*' } steps { sh 'pip install -r docs/requirements.txt' @@ -106,8 +107,9 @@ pipeline { } } stage('Master Documentation') { - when { - branch 'master' + anyOf { + branch 'master'; + branch pattern: 'master-doc*' } steps { sh 'pip install -r docs/requirements.txt'