From 4f81032f5e861dfbd63d40b11b536badac1aa29c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Thu, 29 Oct 2020 19:26:16 +0100 Subject: [PATCH] ci: provide INFURA_TOKEN to builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- ci/Jenkinsfile.linux | 9 ++++++++- ci/Jenkinsfile.macos | 9 ++++++++- ci/Jenkinsfile.windows | 9 ++++++++- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/ci/Jenkinsfile.linux b/ci/Jenkinsfile.linux index d0d5b7b16d..b341ab5c55 100644 --- a/ci/Jenkinsfile.linux +++ b/ci/Jenkinsfile.linux @@ -52,7 +52,14 @@ pipeline { } stage('Client') { - steps { sh 'make nim_status_client' } + steps { + withCredentials([string( + credentialsId: utils.getInfuraTokenCred(), + variable: 'INFURA_TOKEN' + )]) { + sh 'make nim_status_client' + } + } } stage('Package') { diff --git a/ci/Jenkinsfile.macos b/ci/Jenkinsfile.macos index 3286b6ccb1..38cc2c05a6 100644 --- a/ci/Jenkinsfile.macos +++ b/ci/Jenkinsfile.macos @@ -48,7 +48,14 @@ pipeline { } stage('Client') { - steps { sh 'make nim_status_client' } + steps { + withCredentials([string( + credentialsId: utils.getInfuraTokenCred(), + variable: 'INFURA_TOKEN' + )]) { + sh 'make nim_status_client' + } + } } stage('Package') { steps { diff --git a/ci/Jenkinsfile.windows b/ci/Jenkinsfile.windows index 23cec6988e..3c171eca08 100644 --- a/ci/Jenkinsfile.windows +++ b/ci/Jenkinsfile.windows @@ -58,7 +58,14 @@ pipeline { } stage('Package') { - steps { sh "make ${env.STATUS_CLIENT_ZIP}" } + steps { + withCredentials([string( + credentialsId: utils.getInfuraTokenCred(), + variable: 'INFURA_TOKEN' + )]) { + sh "make ${env.STATUS_CLIENT_ZIP}" + } + } } stage('Parallel Upload') {