WebStudio/Jenkinsfile

25 lines
458 B
Text
Raw Normal View History

2020-03-23 13:15:27 +00:00
pipeline {
agent {
node {
label 'node'
}
}
stages {
stage('Build client') {
steps {
sh 'CI=true npm_config_python=/usr/local/bin/python2.7 yarn --no-progress --non-interactive --skip-integrity-check --frozen-lockfile install'
sh 'yarn build'
}
}
stage('Deploy to dev instance') {
steps {
sshagent(credentials: ['ury']) {
sh 'rsync -av --delete-after build/ deploy@ury:/usr/local/www/webstudio'
}
}
}
}
}