diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..323f06d --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,33 @@ +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' + } + } + } +} \ No newline at end of file