jenkins-scripts/build/dev/Jenkinsfile

18 lines
492 B
Plaintext
Raw Normal View History

2020-03-04 19:41:58 +03:00
stage ('build') {
2021-02-23 22:29:18 +03:00
script {
def tag = sh(returnStdout: true, script: "git tag --contains").trim()
def branchName = sh(returnStdout: true, script: "git rev-parse --abbrev-ref HEAD").trim()
if (tag) {
echo 'found tag ' + tag
def tagNoV = tag.substring(1)
sh "VERSION=${tagNoV} npm run build";
} else {
echo 'tag not found'
sh "VERSION=master npm run build"
}
sh 'ls dist';
2020-09-26 14:28:11 +03:00
}
2020-03-02 22:35:26 +03:00
}