ci: add api proxy stage build parameter

This commit is contained in:
Anton Iakimov 2024-08-15 16:02:46 +02:00 committed by Anthony Laibe
parent 2041b5044a
commit 11efcd8923
4 changed files with 20 additions and 0 deletions

View File

@ -42,6 +42,11 @@ pipeline {
description: 'Decides whether the mocked status-keycard-go library is built.', description: 'Decides whether the mocked status-keycard-go library is built.',
defaultValue: false 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 { options {

View File

@ -34,6 +34,11 @@ pipeline {
description: 'Decides whether the mocked status-keycard-go library is built.', description: 'Decides whether the mocked status-keycard-go library is built.',
defaultValue: false 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 { options {

View File

@ -41,6 +41,11 @@ pipeline {
description: 'Select app entitlements. Squish requires extra entitlements.', description: 'Select app entitlements. Squish requires extra entitlements.',
choices: ['resources/Entitlements.plist', 'resources/Entitlements_squish.plist'] 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 { options {

View File

@ -33,6 +33,11 @@ pipeline {
description: 'Decides whether the mocked status-keycard-go library is built.', description: 'Decides whether the mocked status-keycard-go library is built.',
defaultValue: false 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 { options {