HADOOP-17985. Disable JIRA plugin for Yetus run (#3601)

Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
Gautham B A 2021-10-31 22:48:23 +05:30 committed by GitHub
parent 0a68413a4f
commit bccf2f3ef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 14 deletions

View File

@ -15,13 +15,10 @@
// specific language governing permissions and limitations // specific language governing permissions and limitations
// under the License. // under the License.
def getGithubAndJiraCreds() { def getGithubCreds() {
return [usernamePassword(credentialsId: 'apache-hadoop-at-github.com', return [usernamePassword(credentialsId: 'apache-hadoop-at-github.com',
passwordVariable: 'GITHUB_TOKEN', passwordVariable: 'GITHUB_TOKEN',
usernameVariable: 'GITHUB_USER'), usernameVariable: 'GITHUB_USER')]
usernamePassword(credentialsId: 'hadoopqa-at-asf-jira',
passwordVariable: 'JIRA_PASSWORD',
usernameVariable: 'JIRA_USER')]
} }
// Publish JUnit results only if there are XML files under surefire-reports // Publish JUnit results only if there are XML files under surefire-reports
@ -130,7 +127,7 @@ pipeline {
} }
steps { steps {
withCredentials(getGithubAndJiraCreds()) { withCredentials(getGithubCreds()) {
sh '''#!/usr/bin/env bash sh '''#!/usr/bin/env bash
chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh" chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh"
@ -176,7 +173,7 @@ pipeline {
} }
steps { steps {
withCredentials(getGithubAndJiraCreds()) { withCredentials(getGithubCreds()) {
sh '''#!/usr/bin/env bash sh '''#!/usr/bin/env bash
chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh" chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh"
@ -222,7 +219,7 @@ pipeline {
} }
steps { steps {
withCredentials(getGithubAndJiraCreds()) { withCredentials(getGithubCreds()) {
sh '''#!/usr/bin/env bash sh '''#!/usr/bin/env bash
chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh" chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh"
@ -265,7 +262,7 @@ pipeline {
} }
steps { steps {
withCredentials(getGithubAndJiraCreds()) { withCredentials(getGithubCreds()) {
sh '''#!/usr/bin/env bash sh '''#!/usr/bin/env bash
chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh" chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh"

View File

@ -149,10 +149,6 @@ function run_ci() {
# enable writing back to Github # enable writing back to Github
YETUS_ARGS+=("--github-token=${GITHUB_TOKEN}") YETUS_ARGS+=("--github-token=${GITHUB_TOKEN}")
# enable writing back to ASF JIRA
YETUS_ARGS+=("--jira-password=${JIRA_PASSWORD}")
YETUS_ARGS+=("--jira-user=${JIRA_USER}")
# auto-kill any surefire stragglers during unit test runs # auto-kill any surefire stragglers during unit test runs
YETUS_ARGS+=("--reapermode=kill") YETUS_ARGS+=("--reapermode=kill")
@ -173,7 +169,7 @@ function run_ci() {
YETUS_ARGS+=("--build-url-artifacts=artifact/out") YETUS_ARGS+=("--build-url-artifacts=artifact/out")
# plugins to enable # plugins to enable
YETUS_ARGS+=("--plugins=all") YETUS_ARGS+=("--plugins=all,-jira")
# don't let these tests cause -1s because we aren't really paying that # don't let these tests cause -1s because we aren't really paying that
# much attention to them # much attention to them