diff --git a/mini-e2e-helm.groovy b/mini-e2e-helm.groovy index d69ff47dd..ca3914eaf 100644 --- a/mini-e2e-helm.groovy +++ b/mini-e2e-helm.groovy @@ -28,6 +28,10 @@ node('cico-workspace') { skip_e2e = 1 return } + + // "github-api-token" is a secret text credential configured in Jenkins + env.GITHUB_API_TOKEN = credentials("github-api-token") + skip_e2e = sh( script: "./scripts/get_github_labels.py --id=${ghprbPullId} --has-label=ci/skip/e2e", returnStatus: true) diff --git a/mini-e2e.groovy b/mini-e2e.groovy index cecb03b75..d4fc56a6a 100644 --- a/mini-e2e.groovy +++ b/mini-e2e.groovy @@ -25,6 +25,10 @@ node('cico-workspace') { skip_e2e = 1 return } + + // "github-api-token" is a secret text credential configured in Jenkins + env.GITHUB_API_TOKEN = credentials("github-api-token") + skip_e2e = sh( script: "./scripts/get_github_labels.py --id=${ghprbPullId} --has-label=ci/skip/e2e", returnStatus: true) diff --git a/upgrade-tests.groovy b/upgrade-tests.groovy index a53580182..ad814cad1 100644 --- a/upgrade-tests.groovy +++ b/upgrade-tests.groovy @@ -25,6 +25,10 @@ node('cico-workspace') { skip_e2e = 1 return } + + // "github-api-token" is a secret text credential configured in Jenkins + env.GITHUB_API_TOKEN = credentials("github-api-token") + skip_e2e = sh( script: "./scripts/get_github_labels.py --id=${ghprbPullId} --has-label=ci/skip/e2e", returnStatus: true)