From a0d67b085bf090805442af5edc3d9d60a2d9f485 Mon Sep 17 00:00:00 2001 From: Vedran Mendelski Date: Fri, 13 Dec 2024 16:50:52 +0100 Subject: [PATCH] ci_: add proxy test creds --- _assets/ci/Jenkinsfile.tests-rpc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/_assets/ci/Jenkinsfile.tests-rpc b/_assets/ci/Jenkinsfile.tests-rpc index ad08c340752..55116b86350 100644 --- a/_assets/ci/Jenkinsfile.tests-rpc +++ b/_assets/ci/Jenkinsfile.tests-rpc @@ -1,5 +1,5 @@ #!/usr/bin/env groovy -library 'status-jenkins-lib@v1.9.6' +library 'status-jenkins-lib@v1.9.16' pipeline { agent { label 'linux && x86_64 && nix-2.19' } @@ -15,6 +15,11 @@ pipeline { defaultValue: true, description: 'Should the job report test coverage to Codecov?' ) + booleanParam( + name: 'RELEASE', + description: 'Decides whether release credentials are used.', + defaultValue: params.RELEASE ?: false + ) } options { @@ -35,7 +40,7 @@ pipeline { PKG_URL = "${currentBuild.absoluteUrl}/consoleText" /* Hack-fix for params not being set in env on first job run. */ - BRANCH = "${params.BRANCH}" + BRANCH = "${params.BRANCH}" FUNCTIONAL_TESTS_REPORT_CODECOV = "${params.FUNCTIONAL_TESTS_REPORT_CODECOV}" } @@ -47,6 +52,11 @@ pipeline { credentialsId: 'codecov-repository-upload-token', variable: 'CODECOV_TOKEN' ), + usernamePassword( + credentialsId: "api-proxy-devel", + usernameVariable: 'STATUS_BUILD_PROXY_USER', + passwordVariable: 'STATUS_BUILD_PROXY_PASSWORD' + ), ]) { nix.shell('make test-functional', pure: false) }