Skip to content

Commit

Permalink
removed leading slash from APP_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredBurck committed Apr 6, 2018
1 parent 5633d41 commit 4b392c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basic-spring-boot/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ node('master') {
env.TOKEN = readFile('/var/run/secrets/kubernetes.io/serviceaccount/token').trim()
env.OC_CMD = "oc --token=${env.TOKEN} --server=${ocpApiServer} --certificate-authority=/run/secrets/kubernetes.io/serviceaccount/ca.crt --namespace=${env.NAMESPACE}"

env.APP_NAME = "${env.JOB_NAME}".replaceAll(/-?pipeline-?/, '').replaceAll(/-?${env.NAMESPACE}-?/, '')
env.APP_NAME = "${env.JOB_NAME}".replaceAll(/-?pipeline-?/, '').replaceAll(/-?${env.NAMESPACE}-?/, '').replaceAll("/", '')
def projectBase = "${env.NAMESPACE}".replaceAll(/-build/, '')
env.STAGE1 = "${projectBase}-dev"
env.STAGE2 = "${projectBase}-stage"
Expand Down

0 comments on commit 4b392c0

Please sign in to comment.