epsilon_webui/Jenkinsfile

36 lines
660 B
Groovy

pipeline {
agent any
stages {
stage ("install") {
steps {
nodejs("System NodeJS") {
sh "npm install"
}
}
}
stage ("test") {
steps {
nodejs("System NodeJS") {
sh "npm run test"
}
}
}
stage ("build") {
steps {
nodejs("System NodeJS") {
sh "npm run build"
}
}
}
stage ("deploy") {
when {
branch '**/master'
}
steps {
sshagent(['34337c34-a538-42c4-8caf-66161bbc8044']) {
sh "scp -r dist/** www-data@sys.reslate.xyz:/srv/www/ent.sys.reslate.xyz"
}
}
}
}
}