epsilon_webui/Jenkinsfile

36 lines
688 B
Plaintext
Raw Permalink Normal View History

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