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
45
Jenkinsfile
vendored
45
Jenkinsfile
vendored
|
@ -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}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue