fix setting env vars from tf output - trim()
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -24,19 +24,19 @@ pipeline {
|
|||||||
env.DOCKER_REPO_URL = sh(
|
env.DOCKER_REPO_URL = sh(
|
||||||
script: "terraform output repo_url",
|
script: "terraform output repo_url",
|
||||||
returnStdout: true
|
returnStdout: true
|
||||||
)
|
).trim()
|
||||||
env.K8S_CLUSTER_URL = sh(
|
env.K8S_CLUSTER_URL = sh(
|
||||||
script: "terraform output cluster_url",
|
script: "terraform output cluster_url",
|
||||||
returnStdout: true
|
returnStdout: true
|
||||||
)
|
).trim()
|
||||||
env.REPO_USER = sh(
|
env.REPO_USER = sh(
|
||||||
script: "terraform output ecr_user_name",
|
script: "terraform output ecr_user_name",
|
||||||
returnStdout: true
|
returnStdout: true
|
||||||
)
|
).trim()
|
||||||
env.REPO_PWD = sh(
|
env.REPO_PWD = sh(
|
||||||
script: "terraform output ecr_user_password",
|
script: "terraform output ecr_user_password",
|
||||||
returnStdout: true
|
returnStdout: true
|
||||||
)
|
).trim()
|
||||||
env.KUBECONFIG="./kubeconfig.yaml"
|
env.KUBECONFIG="./kubeconfig.yaml"
|
||||||
sh "kubectl get node"
|
sh "kubectl get node"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user