add Jenkinsfile
This commit is contained in:
parent
3316b32ab7
commit
75eb3c3f70
1 changed files with 24 additions and 0 deletions
24
Jenkinsfile
vendored
Normal file
24
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue