1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

reverted jenkinsfile

This commit is contained in:
Fedor Katurov 2020-04-14 12:49:05 +07:00
parent 91e05932e8
commit 7a67cd09e9

45
Jenkinsfile vendored
View file

@ -1,5 +1,3 @@
def failed = false
pipeline {
agent any
@ -29,11 +27,11 @@ pipeline {
}
}
// stage('copy env') {
// steps {
// sh "cp -a ${ENV}/. ${WORKSPACE}"
// }
// }
stage('copy env') {
steps {
sh "cp -a ${ENV}/. ${WORKSPACE}"
}
}
// stage('LS') {
// steps {
@ -43,25 +41,18 @@ pipeline {
// }
// }
// stage('Build') {
// steps {
// sh 'npm install'
// sh 'npm run build'
// }
// }
// stage('deploy') {
// when {
// // branch 'develop'
// expression {
// !failed
// }
// }
// steps{
// sh "rm -rf ${WWW}"
// sh "mv ${WORKSPACE}/dist ${WWW}"
// }
// }
stage('Build') {
steps {
sh 'npm install'
sh 'npm run build'
}
}
stage('deploy') {
steps{
sh "rm -rf ${WWW}"
sh "mv ${WORKSPACE}/dist ${WWW}"
}
}
}
}