epsilon_webui/Jenkinsfile

36 lines
639 B
Plaintext
Raw Normal View History

2022-01-20 04:53:16 +00:00
pipeline {
agent any
stages {
stage ("install") {
steps {
2022-05-11 22:36:39 +00:00
nodejs("System") {
sh "npm install"
}
}
}
2022-05-11 22:46:51 +00:00
stage ("test") {
steps {
nodejs("System") {
sh "npm run test"
}
}
}
2022-01-20 04:53:16 +00:00
stage ("build") {
steps {
2022-05-11 22:36:39 +00:00
nodejs("System") {
2022-01-20 04:53:16 +00:00
sh "npm run build"
}
}
}
stage ("deploy") {
when {
branch '**/master'
}
steps {
2022-05-12 02:59:02 +00:00
sshagent(['13e00839-0608-4e91-8b9e-cce3818425f3']) {
sh "scp -r dist/** www-data@sys.reslate.xyz:/var/www/ent.sys.reslate.xyz"
}
}
}
2022-01-20 04:53:16 +00:00
}
}