rt-sim-training-client/Jenkinsfile-test

30 lines
584 B
Plaintext
Raw Normal View History

2019-07-02 16:29:52 +08:00
pipeline {
agent {
node {
label 'master'
}
}
2020-09-28 17:54:54 +08:00
2019-07-02 16:29:52 +08:00
stages {
stage('Package') {
tools {
nodejs 'nodejs-10'
}
steps {
2020-09-28 17:57:53 +08:00
sh 'npm update'
2019-07-02 16:29:52 +08:00
sh 'npm install'
sh 'npm run test'
}
}
stage('Publish') {
steps {
2020-09-28 17:54:54 +08:00
sh 'mkdir -p /usr/local/joylink/jlclient'
sh 'rm -rf /usr/local/joylink/jlclient/*'
sh 'cp -rf ./dist/* /usr/local/joylink/jlclient'
2019-07-02 16:29:52 +08:00
}
}
}
}