diff --git a/Jenkinsfile b/Jenkinsfile index 59fc20e3..09fb5680 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,6 +15,7 @@ pipeline{ script: 'date "+%Y-%m-%d-%H-%M-%S"' )}""" + GIT_REPO_NAME = GIT_URL.split('/')[-1].split('.git')[0] } @@ -28,7 +29,7 @@ pipeline{ causeString: 'Triggered on $ref', - token: 'coal', + token: GIT_REPO_NAME, tokenCredentialId: '', printContributedVariables: true,