pipeline { agent any tools { nodejs "nodejs-default" } stages { stage('Build') { steps { sh 'npm install' sh 'npm run build' } } stage('Deploy') { steps { sh '''#!/bin/sh /usr/bin/rsync ./public /var/www/public/html/drums ''' } } } }