mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-03-27 21:49:15 +02:00
(feat) Add System Trust Token Integration to JaaS (#5257)
* add token as a pipeline env var, comment and conditional check for env var
This commit is contained in:
parent
fad12860df
commit
8895891860
@ -35,6 +35,13 @@ void call(Map parameters = [:], String stepName, String metadataFile, List crede
|
||||
withEnv([
|
||||
"PIPER_parametersJSON=${groovy.json.JsonOutput.toJson(stepParameters)}",
|
||||
"PIPER_correlationID=${env.BUILD_URL}",
|
||||
/*
|
||||
Additional logic "?: ''" is necessary to ensure the environment
|
||||
variable is set to an empty string if the value is null
|
||||
Without this, the environment variable would be set to the string "null",
|
||||
causing checks for an empty token in the Go application to fail.
|
||||
*/
|
||||
"PIPER_systemTrustToken=${env.PIPER_systemTrustToken ?: ''}",
|
||||
//ToDo: check if parameters make it into docker image on JaaS
|
||||
]) {
|
||||
String defaultConfigArgs = getCustomDefaultConfigsArg()
|
||||
|
@ -29,6 +29,13 @@ void call(Map parameters = [:]) {
|
||||
withEnv([
|
||||
"PIPER_parametersJSON=${groovy.json.JsonOutput.toJson(stepParameters)}",
|
||||
"PIPER_correlationID=${env.BUILD_URL}",
|
||||
/*
|
||||
Additional logic "?: ''" is necessary to ensure the environment
|
||||
variable is set to an empty string if the value is null
|
||||
Without this, the environment variable would be set to the string "null",
|
||||
causing checks for an empty token in the Go application to fail.
|
||||
*/
|
||||
"PIPER_systemTrustToken=${env.PIPER_systemTrustToken ?: ''}",
|
||||
]) {
|
||||
String customDefaultConfig = piperExecuteBin.getCustomDefaultConfigsArg()
|
||||
String customConfigArg = piperExecuteBin.getCustomConfigArg(script)
|
||||
|
Loading…
x
Reference in New Issue
Block a user