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 {
9292 YETUS_DRIVER = "${WORKDIR}/${YETUS_DRIVER_REL}"
9393 ASF_NIGHTLIES_GENERAL_CHECK_BASE="${ASF_NIGHTLIES_BASE}/${WORKDIR_REL}/${PATCH_REL}"
9494 }
95+ when {
96+ // this will return true if the pipeline is building a change request, such as a GitHub pull request.
97+ changeRequest()
98+ }
9599 steps {
96100 dir("${SOURCEDIR}") {
97101 checkout scm
@@ -215,6 +219,10 @@ pipeline {
215219 YETUS_DRIVER = "${WORKDIR}/${YETUS_DRIVER_REL}"
216220 SKIP_ERRORPRONE = true
217221 }
222+ when {
223+ // this will return true if the pipeline is building a change request, such as a GitHub pull request.
224+ changeRequest()
225+ }
218226 steps {
219227 dir("${SOURCEDIR}") {
220228 checkout scm
@@ -347,6 +355,10 @@ pipeline {
347355 YETUS_DRIVER = "${WORKDIR}/${YETUS_DRIVER_REL}"
348356 SKIP_ERRORPRONE = true
349357 }
358+ when {
359+ // this will return true if the pipeline is building a change request, such as a GitHub pull request.
360+ changeRequest()
361+ }
350362 steps {
351363 dir("${SOURCEDIR}") {
352364 checkout scm
Original file line number Diff line number Diff line change @@ -67,14 +67,6 @@ mkdir -p "${PATCHDIR}"
6767mkdir " ${PATCHDIR} /machine"
6868" ${SOURCEDIR} /dev-support/gather_machine_environment.sh" " ${PATCHDIR} /machine"
6969
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
7870# enable debug output for yetus
7971if [[ " true" = " ${DEBUG} " ]]; then
8072 YETUS_ARGS+=(" --debug" )
You can’t perform that action at this time.
0 commit comments