epsilon_webui/Jenkinsfile

23 lines
445 B
Plaintext
Raw Normal View History

2022-01-20 04:53:16 +00:00
pipeline {
agent any
stages {
stage ("build") {
steps {
nodejs("NodeJS (17.4.0)") {
sh "npm install"
2022-01-20 04:53:16 +00:00
sh "npm run build"
}
}
}
stage ("deploy") {
when {
branch '**/master'
}
steps {
sshagent(['63d79efc-7b2b-43d6-87ad-90edebf74b1b']) {
sh "scp -r dist/** www-data@sys.reslate.xyz:/var/www/ent.sys.reslate.xyz"
}
}
}
2022-01-20 04:53:16 +00:00
}
}