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:
parent
91e05932e8
commit
7a67cd09e9
1 changed files with 17 additions and 26 deletions
43
Jenkinsfile
vendored
43
Jenkinsfile
vendored
|
@ -1,5 +1,3 @@
|
||||||
def failed = false
|
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
|
@ -29,11 +27,11 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// stage('copy env') {
|
stage('copy env') {
|
||||||
// steps {
|
steps {
|
||||||
// sh "cp -a ${ENV}/. ${WORKSPACE}"
|
sh "cp -a ${ENV}/. ${WORKSPACE}"
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
// stage('LS') {
|
// stage('LS') {
|
||||||
// steps {
|
// steps {
|
||||||
|
@ -43,25 +41,18 @@ pipeline {
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// stage('Build') {
|
stage('Build') {
|
||||||
// steps {
|
steps {
|
||||||
// sh 'npm install'
|
sh 'npm install'
|
||||||
// sh 'npm run build'
|
sh 'npm run build'
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
// stage('deploy') {
|
stage('deploy') {
|
||||||
// when {
|
steps{
|
||||||
// // branch 'develop'
|
sh "rm -rf ${WWW}"
|
||||||
// expression {
|
sh "mv ${WORKSPACE}/dist ${WWW}"
|
||||||
// !failed
|
}
|
||||||
// }
|
}
|
||||||
// }
|
|
||||||
|
|
||||||
// steps{
|
|
||||||
// sh "rm -rf ${WWW}"
|
|
||||||
// sh "mv ${WORKSPACE}/dist ${WWW}"
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue