Skip to content

Commit 28de85f

Browse files
committed
HBASE-22719 Add debug support for github PR pre commit job
1 parent 0a5fe60 commit 28de85f

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

dev-support/Jenkinsfile_GitHub

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ pipeline {
3535
DOCKERFILE = "${SOURCEDIR}/dev-support/docker/Dockerfile"
3636
YETUS='yetus'
3737
// Branch or tag name. Yetus release tags are 'rel/X.Y.Z'
38-
YETUS_VERSION='rel/0.9.0'
38+
YETUS_VERSION='rel/0.10.0'
3939
}
4040

4141
parameters {
42-
string(name: 'JIRA_ISSUE_KEY',
43-
defaultValue: '',
44-
description: 'The JIRA issue that has a patch needing pre-commit testing. Example: HBASE-1234')
42+
booleanParam(name: 'DEBUG',
43+
defaultValue: false,
44+
description: 'Print extra outputs for debugging the jenkins job and yetus')
4545
}
4646

4747
stages {
@@ -96,17 +96,18 @@ pipeline {
9696
ulimit -a >"${PATCHDIR}/machine/ulimit-a" 2>&1 || true
9797
## /H*
9898

99-
# if given a JIRA issue, process it. If CHANGE_URL is set
100-
# (e.g., Github Branch Source plugin), process it.
101-
# otherwise exit, because we don't want HBase to do a
99+
# If CHANGE_URL is set (e.g., Github Branch Source plugin), process it.
100+
# Otherwise exit, because we don't want HBase to do a
102101
# full build. We wouldn't normally do this check for smaller
103102
# projects. :)
104-
if [[ -n "${JIRA_ISSUE_KEY}" ]]; then
105-
YETUS_ARGS+=("${JIRA_ISSUE_KEY}")
106-
elif [[ -z "${CHANGE_URL}" ]]; then
103+
if [[ -z "${CHANGE_URL}" ]]; then
107104
echo "Full build skipped" > "${WORKSPACE}/${PATCHDIR}/report.html"
108105
exit 0
109106
fi
107+
# enable debug output for yetus
108+
if [[ "true" = "${DEBUG}" ]]; then
109+
YETUS_ARGS+=("--debug")
110+
fi
110111
YETUS_ARGS+=("--patch-dir=${WORKSPACE}/${PATCHDIR}")
111112
# where the source is located
112113
YETUS_ARGS+=("--basedir=${WORKSPACE}/${SOURCEDIR}")

0 commit comments

Comments
 (0)