pipeline { agent { node { label 'agent1' } } tools { // Install the NodeJS version configured as "nodejs8170" and add it to the path. nodejs "nodejs8170" } stages { stage('Checkout') { steps { // Get some code from a GitHub repository git 'https://git.agile611.com/Agile611/the-example-app-nodejs.git' } } stage('Install') { steps { // Install NPM Dependencies sh 'npm install' } } stage('Run') { steps { // Run server on port 3000 sh 'npm run start:dev' } } } }