updated Jenkinsfile
nclazz/api-cli/pipeline/head This commit looks good Details

master
Niclas Thobaben 2021-07-07 16:40:12 +02:00
parent bdf68fa7bf
commit 53a173af76
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -14,7 +14,7 @@ pipeline {
NPM_REGISTRY : $env.NPM_REGISTRY
NPM_MAIL : $env.NPM_MAIL
BRANCH_NAME : $BRANCH_NAME
TAG_NAME : $TAG_NAME
TAG_NAME : $env.TAG_NAME
"""
sh 'npm install'
sh('git remote set-url origin \$(echo $GIT_URL | sed -e "s^//^//$GIT_CREDENTIALS@^")')
@ -24,7 +24,7 @@ pipeline {
when {
allOf {
expression { BRANCH_NAME == 'master' }
expression { !(TAG_NAME =~ /v*/) }
expression { !(env.TAG_NAME =~ /v*/) }
}
}
steps {