diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..fa7b995d --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,27 @@ +pipeline { + agent any + + tools { + nodejs "nodejs" // Make sure you configured NodeJS under Jenkins -> Global Tool Configuration + } + + stages { + stage('Checkout') { + steps { + git 'https://github.com/acemilyalcin/sample-node-project.git' + } + } + + stage('Install') { + steps { + sh 'npm install' + } + } + + stage('Build') { + steps { + sh 'npm run build' + } + } + } +}