star-gold bage

This commit is contained in:
Primakov Alexandr Alexandrovich 2020-09-23 23:00:31 +03:00
parent 80768ed617
commit a95d65df28
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,4 @@
stage ('production build') { stage ('production build') {
sh 'npm run build:prod' sh 'npm run build:prod';
sh 'ls dist';
} }

View File

@ -6,11 +6,17 @@ stage ('predeploy') {
if (tag) { if (tag) {
echo 'found tag ' + tag echo 'found tag ' + tag
addBadge(
icon: 'star-gold.png',
text: "Release ${tag}")
def tagNoV = tag.substring(1) 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}" // sh "cd ${TARGET_FOLDER} ; echo 'mkdir ${tagNoV}; mv ./${branchName}/* ./${tagNoV}; rm -r -d ./${branchName}; rm ${DEPLOY_VERSION_VAR}' > ${DEPLOY_VERSION_VAR}"
} else { } else {
echo 'tag not found' echo 'tag not found'
addBadge(
icon: 'info.gif',
text: "Сборка в master")
sh "cd ${TARGET_FOLDER}; echo '${branchName}' > ${DEPLOY_VERSION_VAR}" sh "cd ${TARGET_FOLDER}; echo '${branchName}' > ${DEPLOY_VERSION_VAR}"
// sh "cd ${TARGET_FOLDER} ; echo 'rm ${DEPLOY_VERSION_VAR}' > ${DEPLOY_VERSION_VAR}" // sh "cd ${TARGET_FOLDER} ; echo 'rm ${DEPLOY_VERSION_VAR}' > ${DEPLOY_VERSION_VAR}"
} }