Skip to content

Commit 87f737a

Browse files
authored
try not to build vendor branches
1 parent 8567ce1 commit 87f737a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Jenkinsfile

+10
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ pipeline {
44
}
55
agent none
66
stages {
7+
stage('Check Branch Name') {
8+
steps {
9+
script {
10+
if (env.BRANCH_NAME.startsWith('vendor/')) {
11+
currentBuild.result = 'NOT_BUILT'
12+
error('Skipping build for vendor branch')
13+
}
14+
}
15+
}
16+
}
717
stage('BuildAndTest') {
818
matrix {
919
agent {

0 commit comments

Comments
 (0)