From df60043d148efbe8384f855e232acc7ae509ea29 Mon Sep 17 00:00:00 2001 From: sachin841 <64036203+sachin841@users.noreply.github.com> Date: Mon, 10 Nov 2025 18:00:35 +0530 Subject: [PATCH] Add Jenkins pipeline for Node.js project --- Jenkinsfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Jenkinsfile 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' + } + } + } +}