29 lines
555 B
Plaintext
29 lines
555 B
Plaintext
pipeline {
|
|
agent {
|
|
node {
|
|
label 'master'
|
|
}
|
|
}
|
|
|
|
stages {
|
|
stage('Package') {
|
|
tools {
|
|
nodejs 'nodejs-10'
|
|
}
|
|
steps {
|
|
sh 'npm install'
|
|
sh 'npm run test'
|
|
}
|
|
}
|
|
stage('Publish') {
|
|
steps {
|
|
sh 'mkdir -p /usr/local/joylink/jlclient'
|
|
sh 'rm -rf /usr/local/joylink/jlclient/*'
|
|
sh 'cp -rf ./dist/* /usr/local/joylink/jlclient'
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
}
|