pipeline { agent { node { label 'ClubDit' } } stages { stage('test') { steps { sh 'echo pwd' } } stage('install dependencies') { steps { nvm( version : '14.18.3' ){ sh 'npm install' } } } stage('build') { steps { nvm( version : '14.18.3' ){ sh 'npm run build' } } } stage('sync') { steps { sh 'rsync -a --delete ./build /var/www/html/psicoadmin' } } } post { always { slackSend channel: '#sysproy2', color: currentBuild.currentResult == 'SUCCESS' ? 'good' : 'danger', message: "*${currentBuild.currentResult}:* Job ${env.JOB_NAME} build ${env.BUILD_NUMBER} More info at: ${env.BUILD_URL}" } } }