pipeline {
agent {
node {
label 'master'
}
stages {
stage('Package') {
tools {
nodejs 'nodejs-10'
steps {
sh 'npm install'
sh 'npm run test'
stage('Publish') {
sh 'cp -rf ./dist/* /usr/local/joylink/jl-nclient'