star-gold bage
This commit is contained in:
parent
80768ed617
commit
a95d65df28
3
build/prod/Jenkinsfile
vendored
3
build/prod/Jenkinsfile
vendored
@ -1,3 +1,4 @@
|
||||
stage ('production build') {
|
||||
sh 'npm run build:prod'
|
||||
sh 'npm run build:prod';
|
||||
sh 'ls dist';
|
||||
}
|
||||
|
8
predeploy/Jenkinsfile
vendored
8
predeploy/Jenkinsfile
vendored
@ -6,11 +6,17 @@ stage ('predeploy') {
|
||||
|
||||
if (tag) {
|
||||
echo 'found tag ' + tag
|
||||
addBadge(
|
||||
icon: 'star-gold.png',
|
||||
text: "Release ${tag}")
|
||||
def tagNoV = tag.substring(1)
|
||||
sh "cd ${TARGET_FOLDER}; echo '${tagNoV}' > ${DEPLOY_VERSION_VAR}"
|
||||
sh "cd ${TARGET_FOLDER}; echo '${tagNoV}' > ${DEPLOY_VERSION_VAR}";
|
||||
// sh "cd ${TARGET_FOLDER} ; echo 'mkdir ${tagNoV}; mv ./${branchName}/* ./${tagNoV}; rm -r -d ./${branchName}; rm ${DEPLOY_VERSION_VAR}' > ${DEPLOY_VERSION_VAR}"
|
||||
} else {
|
||||
echo 'tag not found'
|
||||
addBadge(
|
||||
icon: 'info.gif',
|
||||
text: "Сборка в master")
|
||||
sh "cd ${TARGET_FOLDER}; echo '${branchName}' > ${DEPLOY_VERSION_VAR}"
|
||||
// sh "cd ${TARGET_FOLDER} ; echo 'rm ${DEPLOY_VERSION_VAR}' > ${DEPLOY_VERSION_VAR}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user