@@ -43,8 +43,7 @@ pipeline {
4343 booleanParam(name : ' Run_As_Master_Branch' , defaultValue : false , description : ' Allow to run any steps on a PR, some steps normally only run on master branch.' )
4444 booleanParam(name : ' bench_ci' , defaultValue : true , description : ' Enable benchmarks.' )
4545 booleanParam(name : ' tests_ci' , defaultValue : true , description : ' Enable tests.' )
46- // temporarily disable building packages until https://github.com/pypa/manylinux/issues/512 is fixed
47- booleanParam(name : ' package_ci' , defaultValue : false , description : ' Enable building packages.' )
46+ booleanParam(name : ' package_ci' , defaultValue : true , description : ' Enable building packages.' )
4847 }
4948 stages {
5049 stage(' Initializing' ){
@@ -62,14 +61,23 @@ pipeline {
6261 deleteDir()
6362 gitCheckout(basedir : " ${ BASE_DIR} " , githubNotifyFirstTimeContributor : true )
6463 stash allowEmpty : true , name : ' source' , useDefaultExcludes : false
64+ script {
65+ dir(" ${ BASE_DIR} " ){
66+ // Skip all the stages except docs for PR's with asciidoc and md changes only
67+ env. ONLY_DOCS = isGitRegionMatch(patterns : [ ' .*\\ .(asciidoc|md)' ], shouldMatchAll : true )
68+ }
69+ }
6570 }
6671 }
6772 stage(' Sanity checks' ) {
6873 when {
6974 beforeAgent true
70- anyOf {
71- not { changeRequest() }
72- expression { return params.Run_As_Master_Branch }
75+ allOf {
76+ expression { return env. ONLY_DOCS == " false" }
77+ anyOf {
78+ not { changeRequest() }
79+ expression { return params.Run_As_Master_Branch }
80+ }
7381 }
7482 }
7583 steps {
@@ -96,7 +104,10 @@ pipeline {
96104 options { skipDefaultCheckout() }
97105 when {
98106 beforeAgent true
99- expression { return params. tests_ci }
107+ allOf {
108+ expression { return env. ONLY_DOCS == " false" }
109+ expression { return params. tests_ci }
110+ }
100111 }
101112 steps {
102113 withGithubNotify(context : ' Test' , tab : ' tests' ) {
@@ -140,7 +151,10 @@ pipeline {
140151 }
141152 when {
142153 beforeAgent true
143- expression { return params. package_ci }
154+ allOf {
155+ expression { return env. ONLY_DOCS == " false" }
156+ expression { return params. package_ci }
157+ }
144158 }
145159 steps {
146160 withGithubNotify(context : ' Building packages' ) {
@@ -159,9 +173,12 @@ pipeline {
159173 agent none
160174 when {
161175 beforeAgent true
162- anyOf {
163- changeRequest()
164- expression { return ! params.Run_As_Master_Branch }
176+ allOf {
177+ expression { return env. ONLY_DOCS == " false" }
178+ anyOf {
179+ changeRequest()
180+ expression { return ! params.Run_As_Master_Branch }
181+ }
165182 }
166183 }
167184 steps {
0 commit comments