diff --git a/mini-e2e-helm.groovy b/mini-e2e-helm.groovy index f5ea50a75..ec26c41ea 100644 --- a/mini-e2e-helm.groovy +++ b/mini-e2e-helm.groovy @@ -17,6 +17,11 @@ def ssh(cmd) { } node('cico-workspace') { + environment { + // "github-api-token" is a secret text credential configured in Jenkins + GITHUB_API_TOKEN = credentials("github-api-token") + } + stage('checkout ci repository') { git url: "${ci_git_repo}", branch: "${ci_git_branch}", @@ -24,11 +29,6 @@ node('cico-workspace') { } stage('skip ci/skip/e2e label') { - environment { - // "github-api-token" is a secret text credential configured in Jenkins - GITHUB_API_TOKEN = credentials("github-api-token") - } - if (params.ghprbPullId == null) { skip_e2e = 1 return diff --git a/mini-e2e.groovy b/mini-e2e.groovy index ee7816436..7b6b34bdd 100644 --- a/mini-e2e.groovy +++ b/mini-e2e.groovy @@ -14,6 +14,11 @@ def ssh(cmd) { } node('cico-workspace') { + environment { + // "github-api-token" is a secret text credential configured in Jenkins + GITHUB_API_TOKEN = credentials("github-api-token") + } + stage('checkout ci repository') { git url: "${ci_git_repo}", branch: "${ci_git_branch}", @@ -21,11 +26,6 @@ node('cico-workspace') { } stage('skip ci/skip/e2e label') { - environment { - // "github-api-token" is a secret text credential configured in Jenkins - GITHUB_API_TOKEN = credentials("github-api-token") - } - if (params.ghprbPullId == null) { skip_e2e = 1 return diff --git a/upgrade-tests.groovy b/upgrade-tests.groovy index 37a8072af..d054b8c71 100644 --- a/upgrade-tests.groovy +++ b/upgrade-tests.groovy @@ -14,6 +14,11 @@ def ssh(cmd) { } node('cico-workspace') { + environment { + // "github-api-token" is a secret text credential configured in Jenkins + GITHUB_API_TOKEN = credentials("github-api-token") + } + stage('checkout ci repository') { git url: "${ci_git_repo}", branch: "${ci_git_branch}", @@ -21,11 +26,6 @@ node('cico-workspace') { } stage('skip ci/skip/e2e label') { - environment { - // "github-api-token" is a secret text credential configured in Jenkins - GITHUB_API_TOKEN = credentials("github-api-token") - } - if (params.ghprbPullId == null) { skip_e2e = 1 return