File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ pipeline {
92
92
YETUS_DRIVER = "${WORKDIR}/${YETUS_DRIVER_REL}"
93
93
ASF_NIGHTLIES_GENERAL_CHECK_BASE="${ASF_NIGHTLIES_BASE}/${WORKDIR_REL}/${PATCH_REL}"
94
94
}
95
+ when {
96
+ // this will return true if the pipeline is building a change request, such as a GitHub pull request.
97
+ changeRequest()
98
+ }
95
99
steps {
96
100
dir("${SOURCEDIR}") {
97
101
checkout scm
@@ -215,6 +219,10 @@ pipeline {
215
219
YETUS_DRIVER = "${WORKDIR}/${YETUS_DRIVER_REL}"
216
220
SKIP_ERRORPRONE = true
217
221
}
222
+ when {
223
+ // this will return true if the pipeline is building a change request, such as a GitHub pull request.
224
+ changeRequest()
225
+ }
218
226
steps {
219
227
dir("${SOURCEDIR}") {
220
228
checkout scm
@@ -347,6 +355,10 @@ pipeline {
347
355
YETUS_DRIVER = "${WORKDIR}/${YETUS_DRIVER_REL}"
348
356
SKIP_ERRORPRONE = true
349
357
}
358
+ when {
359
+ // this will return true if the pipeline is building a change request, such as a GitHub pull request.
360
+ changeRequest()
361
+ }
350
362
steps {
351
363
dir("${SOURCEDIR}") {
352
364
checkout scm
Original file line number Diff line number Diff line change @@ -67,14 +67,6 @@ mkdir -p "${PATCHDIR}"
67
67
mkdir " ${PATCHDIR} /machine"
68
68
" ${SOURCEDIR} /dev-support/gather_machine_environment.sh" " ${PATCHDIR} /machine"
69
69
70
- # If CHANGE_URL is set (e.g., Github Branch Source plugin), process it.
71
- # Otherwise exit, because we don't want HBase to do a
72
- # full build. We wouldn't normally do this check for smaller
73
- # projects. :)
74
- if [[ -z " ${CHANGE_URL} " ]]; then
75
- echo " Full build skipped" > " ${PATCHDIR} /report.html"
76
- exit 0
77
- fi
78
70
# enable debug output for yetus
79
71
if [[ " true" = " ${DEBUG} " ]]; then
80
72
YETUS_ARGS+=(" --debug" )
You can’t perform that action at this time.
0 commit comments