This repository has been archived on 2024-09-12. You can view files and clone it, but cannot push or open issues or pull requests.
official-website/Jenkinsfile-test

30 lines
623 B
Plaintext
Raw Normal View History

2020-09-28 17:15:09 +08:00
pipeline {
agent {
node {
label 'master'
}
}
stages {
stage('Package') {
tools {
nodejs 'nodejs-10'
}
steps {
2020-09-28 18:29:38 +08:00
sh 'npm update'
2020-09-28 17:15:09 +08:00
sh 'npm install'
2020-09-28 17:18:25 +08:00
sh 'npm run build'
2020-09-28 17:15:09 +08:00
}
}
stage('Publish') {
steps {
sh 'mkdir -p /usr/local/joylink/official-website'
sh 'rm -rf /usr/local/joylink/official-website/*'
sh 'cp -rf ./dist/* /usr/local/joylink/official-website/'
2020-09-28 17:15:09 +08:00
}
}
}
}