pipeline { agent { node { label 'main' customWorkspace '/var/www/ellpeck' } } stages { stage('Node') { when { branch 'master' } steps { sh '''cd /var/www/ellpeck/node npm install node blog.js node rss.js''' } } } }