From 4291d447f5d598ea55b01711c453bcb62b538714 Mon Sep 17 00:00:00 2001 From: baignashit671 <119288668+baignashit671@users.noreply.github.com> Date: Tue, 25 Feb 2025 14:59:33 +0530 Subject: [PATCH 1/6] Updated Jenkinsfile --- Jenkinsfile | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 84530c2..fc43d29 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,8 +1,18 @@ pipeline { - agent any + tools { + nodejs 'NodeJS-18' // Ensure this is configured in Jenkins Global Tool Config + } + stages { + + stage('Verify Environment') { + steps { + sh 'node -v' + sh 'npm -v' + } + } stage('Install Dependencies') { steps { @@ -16,13 +26,11 @@ pipeline { } } - stage("Deploy application") { + stage("Deploy application") { steps { sh 'echo "deploying application..."' } - } - - } } +} From debfb1e4856e6014d996d5138a2bd33b2cb86fcd Mon Sep 17 00:00:00 2001 From: baignashit671 <119288668+baignashit671@users.noreply.github.com> Date: Tue, 25 Feb 2025 15:30:00 +0530 Subject: [PATCH 2/6] Updated README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5ac99db..4f0d87f 100644 --- a/README.md +++ b/README.md @@ -41,3 +41,4 @@ Using simple "hello world" application from the [nodejs.org](https://nodejs.org/ ``` ## To Deploy on nodejs application server +sample server From 0fa57d6ffb68fa44f2533ae65c071970f626fd50 Mon Sep 17 00:00:00 2001 From: baignashit671 <119288668+baignashit671@users.noreply.github.com> Date: Tue, 25 Feb 2025 15:41:32 +0530 Subject: [PATCH 3/6] Updated README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4f0d87f..e02c7c1 100644 --- a/README.md +++ b/README.md @@ -41,4 +41,4 @@ Using simple "hello world" application from the [nodejs.org](https://nodejs.org/ ``` ## To Deploy on nodejs application server -sample server +sample server1 From 8f7eeb669ef5a4f9ea6c5356e365e9400920ac41 Mon Sep 17 00:00:00 2001 From: baignashit671 <119288668+baignashit671@users.noreply.github.com> Date: Tue, 25 Feb 2025 15:47:54 +0530 Subject: [PATCH 4/6] Updated Jenkinsfile --- Jenkinsfile | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fc43d29..84530c2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,18 +1,8 @@ pipeline { + agent any - tools { - nodejs 'NodeJS-18' // Ensure this is configured in Jenkins Global Tool Config - } - stages { - - stage('Verify Environment') { - steps { - sh 'node -v' - sh 'npm -v' - } - } stage('Install Dependencies') { steps { @@ -26,11 +16,13 @@ pipeline { } } - stage("Deploy application") { + stage("Deploy application") { steps { sh 'echo "deploying application..."' } + } + + } } -} From 892be8ebb85e88ef3be248390ac7e6db5c5404f8 Mon Sep 17 00:00:00 2001 From: baignashit671 <119288668+baignashit671@users.noreply.github.com> Date: Tue, 25 Feb 2025 17:19:03 +0530 Subject: [PATCH 5/6] Updated Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 84530c2..37804c2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,7 +18,7 @@ pipeline { stage("Deploy application") { steps { - sh 'echo "deploying application..."' + sh 'echo "deploying application...."' } } From 0d804889d2423566722e7883b6b9fd3c5585b45c Mon Sep 17 00:00:00 2001 From: baignashit671 <119288668+baignashit671@users.noreply.github.com> Date: Tue, 25 Feb 2025 18:17:42 +0530 Subject: [PATCH 6/6] Updated README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e02c7c1..bbac1b0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Build and Deploy nodejs application on EC2 instance - Freestyle - +test # Pre-requisites 1. A Jenkins server