From 11efcd8923a08c94f11567a4eb30837ec605f423 Mon Sep 17 00:00:00 2001 From: Anton Iakimov Date: Thu, 15 Aug 2024 16:02:46 +0200 Subject: [PATCH] ci: add api proxy stage build parameter --- ci/Jenkinsfile.linux | 5 +++++ ci/Jenkinsfile.linux-nix | 5 +++++ ci/Jenkinsfile.macos | 5 +++++ ci/Jenkinsfile.windows | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/ci/Jenkinsfile.linux b/ci/Jenkinsfile.linux index 9904eef4a5..e956d0d239 100644 --- a/ci/Jenkinsfile.linux +++ b/ci/Jenkinsfile.linux @@ -42,6 +42,11 @@ pipeline { description: 'Decides whether the mocked status-keycard-go library is built.', defaultValue: false ) + string( + name: 'STATUS_BUILD_PROXY_STAGE_NAME', + description: 'Defines the stage used to choose the correct Proxy API URL', + defaultValue: utils.isReleaseBuild() ? 'prod' : 'test' + ) } options { diff --git a/ci/Jenkinsfile.linux-nix b/ci/Jenkinsfile.linux-nix index 6aa3f7c246..a3975024a7 100644 --- a/ci/Jenkinsfile.linux-nix +++ b/ci/Jenkinsfile.linux-nix @@ -34,6 +34,11 @@ pipeline { description: 'Decides whether the mocked status-keycard-go library is built.', defaultValue: false ) + string( + name: 'STATUS_BUILD_PROXY_STAGE_NAME', + description: 'Defines the stage used to choose the correct Proxy API URL', + defaultValue: utils.isReleaseBuild() ? 'prod' : 'test' + ) } options { diff --git a/ci/Jenkinsfile.macos b/ci/Jenkinsfile.macos index ac4c42dcc7..3034ec1901 100644 --- a/ci/Jenkinsfile.macos +++ b/ci/Jenkinsfile.macos @@ -41,6 +41,11 @@ pipeline { description: 'Select app entitlements. Squish requires extra entitlements.', choices: ['resources/Entitlements.plist', 'resources/Entitlements_squish.plist'] ) + string( + name: 'STATUS_BUILD_PROXY_STAGE_NAME', + description: 'Defines the stage used to choose the correct Proxy API URL', + defaultValue: utils.isReleaseBuild() ? 'prod' : 'test' + ) } options { diff --git a/ci/Jenkinsfile.windows b/ci/Jenkinsfile.windows index 5d64e64117..2757cbdb29 100644 --- a/ci/Jenkinsfile.windows +++ b/ci/Jenkinsfile.windows @@ -33,6 +33,11 @@ pipeline { description: 'Decides whether the mocked status-keycard-go library is built.', defaultValue: false ) + string( + name: 'STATUS_BUILD_PROXY_STAGE_NAME', + description: 'Defines the stage used to choose the correct Proxy API URL', + defaultValue: utils.isReleaseBuild() ? 'prod' : 'test' + ) } options {