@@ -36,14 +36,16 @@ pipeline {
36
36
YETUS_REL = 'yetus'
37
37
DOCKERFILE_REL = "${SRC_REL}/dev-support/docker/Dockerfile"
38
38
YETUS_DRIVER_REL = "${SRC_REL}/dev-support/jenkins_precommit_github_yetus.sh"
39
- // Branch or tag name. Yetus release tags are 'rel/X.Y.Z'
40
- YETUS_VERSION = 'rel/0.12.0'
39
+ YETUS_VERSION = '0.15.0'
41
40
GENERAL_CHECK_PLUGINS = 'all,-javadoc,-jira,-shadedjars,-unit'
42
41
JDK_SPECIFIC_PLUGINS = 'compile,github,htmlout,javac,javadoc,maven,mvninstall,shadedjars,unit'
42
+ // This section of the docs tells folks not to use the javadoc tag. older branches have our old version of the check for said tag.
43
+ AUTHOR_IGNORE_LIST = 'src/main/asciidoc/_chapters/developer.adoc'
44
+ BLANKS_IGNORE_LIST = '.*/generated/.*'
43
45
// output from surefire; sadly the archive function in yetus only works on file names.
44
46
ARCHIVE_PATTERN_LIST = 'TEST-*.xml,org.apache.h*.txt,*.dumpstream,*.dump'
45
47
// These tests currently have known failures. Once they burn down to 0, remove from here so that new problems will cause a failure.
46
- TESTS_FILTER = 'cc, checkstyle,javac,javadoc,pylint,shellcheck,whitespace, perlcritic,ruby-lint,rubocop,mvnsite '
48
+ TESTS_FILTER = 'checkstyle,javac,javadoc,pylint,shellcheck,shelldocs,blanks, perlcritic,ruby-lint,rubocop'
47
49
EXCLUDE_TESTS_URL = "${JENKINS_URL}/job/HBase-Find-Flaky-Tests/job/${CHANGE_TARGET}/lastSuccessfulBuild/artifact/output/excludes"
48
50
// set build parallel
49
51
BUILD_THREAD = 4
@@ -102,11 +104,11 @@ pipeline {
102
104
checkout scm
103
105
}
104
106
dir("${YETUSDIR}") {
105
- checkout([
106
- $class : 'GitSCM',
107
- branches : [[name: " ${YETUS_VERSION}"]],
108
- userRemoteConfigs: [[url: 'https://github.com/ apache/ yetus.git']]]
109
- )
107
+ sh'''#!/usr/bin/env bash
108
+ wget https://dlcdn.apache.org/yetus/${YETUS_VERSION}/apache-yetus-${YETUS_VERSION}-bin.tar.gz && \
109
+ tar --strip-components=1 -xzf apache-yetus- ${YETUS_VERSION}-bin.tar.gz && \
110
+ rm apache- yetus-${YETUS_VERSION}-bin.tar.gz
111
+ '''
110
112
}
111
113
dir("${WORKDIR}") {
112
114
withCredentials([
@@ -229,11 +231,11 @@ pipeline {
229
231
checkout scm
230
232
}
231
233
dir("${YETUSDIR}") {
232
- checkout([
233
- $class : 'GitSCM',
234
- branches : [[name: " ${YETUS_VERSION}"]],
235
- userRemoteConfigs: [[url: 'https://github.com/ apache/ yetus.git']]]
236
- )
234
+ sh'''#!/usr/bin/env bash
235
+ wget https://dlcdn.apache.org/yetus/${YETUS_VERSION}/apache-yetus-${YETUS_VERSION}-bin.tar.gz && \
236
+ tar --strip-components=1 -xzf apache-yetus- ${YETUS_VERSION}-bin.tar.gz && \
237
+ rm apache- yetus-${YETUS_VERSION}-bin.tar.gz
238
+ '''
237
239
}
238
240
dir("${WORKDIR}") {
239
241
withCredentials([
@@ -365,11 +367,11 @@ pipeline {
365
367
checkout scm
366
368
}
367
369
dir("${YETUSDIR}") {
368
- checkout([
369
- $class : 'GitSCM',
370
- branches : [[name: " ${YETUS_VERSION}"]],
371
- userRemoteConfigs: [[url: 'https://github.com/ apache/ yetus.git']]]
372
- )
370
+ sh'''#!/usr/bin/env bash
371
+ wget https://dlcdn.apache.org/yetus/${YETUS_VERSION}/apache-yetus-${YETUS_VERSION}-bin.tar.gz && \
372
+ tar --strip-components=1 -xzf apache-yetus- ${YETUS_VERSION}-bin.tar.gz && \
373
+ rm apache- yetus-${YETUS_VERSION}-bin.tar.gz
374
+ '''
373
375
}
374
376
dir("${WORKDIR}") {
375
377
withCredentials([
@@ -493,22 +495,19 @@ pipeline {
493
495
SKIP_ERRORPRONE = true
494
496
}
495
497
when {
496
- allOf {
497
- // this will return true if the pipeline is building a change request, such as a GitHub pull request.
498
- changeRequest()
499
- expression { env.CHANGE_TARGET in ['master', 'branch-3'] }
500
- }
498
+ // this will return true if the pipeline is building a change request, such as a GitHub pull request.
499
+ changeRequest()
501
500
}
502
501
steps {
503
502
dir("${SOURCEDIR}") {
504
503
checkout scm
505
504
}
506
505
dir("${YETUSDIR}") {
507
- checkout([
508
- $class : 'GitSCM',
509
- branches : [[name: " ${YETUS_VERSION}"]],
510
- userRemoteConfigs: [[url: 'https://github.com/ apache/ yetus.git']]]
511
- )
506
+ sh'''#!/usr/bin/env bash
507
+ wget https://dlcdn.apache.org/yetus/${YETUS_VERSION}/apache-yetus-${YETUS_VERSION}-bin.tar.gz && \
508
+ tar --strip-components=1 -xzf apache-yetus- ${YETUS_VERSION}-bin.tar.gz && \
509
+ rm apache- yetus-${YETUS_VERSION}-bin.tar.gz
510
+ '''
512
511
}
513
512
dir("${WORKDIR}") {
514
513
withCredentials([
0 commit comments