From 5a59ebf0f4c510eae82b2fbabaf6048876d6bf98 Mon Sep 17 00:00:00 2001 From: Omkar Shinde <33689953+shindeomkar123@users.noreply.github.com> Date: Sun, 2 Nov 2025 13:52:09 +0530 Subject: [PATCH 1/5] Add initial Jenkins pipeline configuration --- Jenkinsfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..a785975ab --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,13 @@ +pipeline { + + agent any + + stages { + stage("build"){ + steps{ + + } + } + } + +} From 970c0a2dee1d1a16320e50091146260d0e1c9e13 Mon Sep 17 00:00:00 2001 From: Omkar Shinde <33689953+shindeomkar123@users.noreply.github.com> Date: Sun, 2 Nov 2025 13:54:28 +0530 Subject: [PATCH 2/5] Add test and deploy stages to Jenkinsfile --- Jenkinsfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index a785975ab..686dbe20e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,6 +6,16 @@ pipeline { stage("build"){ steps{ + } + } + stage("test"){ + steps{ + + } + } + stage("deploy"){ + steps{ + } } } From cd4a22134ecda27c575c3635189fd67cd205ff99 Mon Sep 17 00:00:00 2001 From: Omkar Shinde <33689953+shindeomkar123@users.noreply.github.com> Date: Sun, 2 Nov 2025 13:55:42 +0530 Subject: [PATCH 3/5] Add echo statements for build, test, and deploy stages --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 686dbe20e..80556793a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,17 +5,17 @@ pipeline { stages { stage("build"){ steps{ - + echo 'building application' } } stage("test"){ steps{ - + echo 'testing application' } } stage("deploy"){ steps{ - + echo 'deploying application' } } } From e9af76d6439908be01e9a69f7ed6605ce7b2436f Mon Sep 17 00:00:00 2001 From: Omkar Shinde <33689953+shindeomkar123@users.noreply.github.com> Date: Sun, 2 Nov 2025 16:18:46 +0530 Subject: [PATCH 4/5] Add conditional test in Jenkinsfile Add a conditional test and echo its result during the test stage. --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 80556793a..82365260d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,6 +11,8 @@ pipeline { stage("test"){ steps{ echo 'testing application' + def test = 2+2>3 ?'cool':'not cool' + echo test } } stage("deploy"){ From e457d1b6b251ed1ba117687f98c67d0d8e188846 Mon Sep 17 00:00:00 2001 From: Omkar Shinde <33689953+shindeomkar123@users.noreply.github.com> Date: Sun, 2 Nov 2025 16:22:52 +0530 Subject: [PATCH 5/5] Refactor test stage to use script block --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 82365260d..64c624e99 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,8 +11,10 @@ pipeline { stage("test"){ steps{ echo 'testing application' - def test = 2+2>3 ?'cool':'not cool' - echo test + script { + def test = 2+2>3 ?'cool':'not cool' + echo test + } } } stage("deploy"){