epsilon_webui/Jenkinsfile

36 lines
639 B
Groovy

pipeline {
agent any
stages {
stage ("install") {
steps {
nodejs("System") {
sh "npm install"
}
}
}
stage ("test") {
steps {
nodejs("System") {
sh "npm run test"
}
}
}
stage ("build") {
steps {
nodejs("System") {
sh "npm run build"
}
}
}
stage ("deploy") {
when {
branch '**/master'
}
steps {
sshagent(['13e00839-0608-4e91-8b9e-cce3818425f3']) {
sh "scp -r dist/** www-data@sys.reslate.xyz:/srv/www/ent.sys.reslate.xyz"
}
}
}
}
}