From 1dc0e981d1cae21ef9df929f06e5a7d542c427af Mon Sep 17 00:00:00 2001 From: faraabs1984 Date: Thu, 25 Nov 2021 11:58:22 +0500 Subject: [PATCH 1/7] "added Jenkinfile" --- Jenkinsfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..7b22fe13 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,28 @@ + + pipeline { + agent any + + stages { + stage('1-Build') { + steps { + echo "Start of Stage Build" + echo "Building......." + echo "End of Stage Build" + } + } + stage('2-Test') { + steps { + echo "Start of Stage Test" + echo "Testing......." + echo "End of Stage Build" + } + } + stage('3-Deploy') { + steps { + echo "Start of Stage Deploy" + echo "Deploying......." + echo "End of Stage Build" + } + } + } + } From 64e6db5acbc031be5d939d4688764daa44096968 Mon Sep 17 00:00:00 2001 From: faraabs1984 Date: Thu, 25 Nov 2021 13:05:22 +0500 Subject: [PATCH 2/7] Added Jenkinsfile --- Jenkinsfile | 56 ++++++++++++++++++++++++++--------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7b22fe13..a8fd19b6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,28 +1,28 @@ - - pipeline { - agent any - - stages { - stage('1-Build') { - steps { - echo "Start of Stage Build" - echo "Building......." - echo "End of Stage Build" - } - } - stage('2-Test') { - steps { - echo "Start of Stage Test" - echo "Testing......." - echo "End of Stage Build" - } - } - stage('3-Deploy') { - steps { - echo "Start of Stage Deploy" - echo "Deploying......." - echo "End of Stage Build" - } - } - } - } + + pipeline { + agent any + + stages { + stage('1-Build') { + steps { + echo "Start of Stage Build" + echo "Building......." + echo "End of Stage Build" + } + } + stage('2-Test') { + steps { + echo "Start of Stage Test" + echo "Testing......." + echo "End of Stage Build" + } + } + stage('3-Deploy') { + steps { + echo "Start of Stage Deploy" + echo "Deploying......." + echo "End of Stage Build" + } + } + } + } From cf8d73d76072352d5ea6de845b6957f9ba2783e2 Mon Sep 17 00:00:00 2001 From: faraabs1984 Date: Thu, 25 Nov 2021 13:33:46 +0500 Subject: [PATCH 3/7] Version-2 --- Jenkinsfile | 41 +++++++++++++++++------------------------ 1 file changed, 17 insertions(+), 24 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a8fd19b6..0270a42b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,28 +1,21 @@ - pipeline { - agent any +pipeline { + agent any + stages { + stage ('Build') { + steps { + echo 'Running build automation' + sh ' ./gradle build --no-daemon' + archive artifacts: 'dist/trainSchedule' + } + } + stage ('2-Test') { + steps { + echo "Starting test automation" + echo 'Running test automation' + echo 'Ending test automation' - stages { - stage('1-Build') { - steps { - echo "Start of Stage Build" - echo "Building......." - echo "End of Stage Build" - } - } - stage('2-Test') { - steps { - echo "Start of Stage Test" - echo "Testing......." - echo "End of Stage Build" - } - } - stage('3-Deploy') { - steps { - echo "Start of Stage Deploy" - echo "Deploying......." - echo "End of Stage Build" - } - } + } } + } } From bf5d4d52df99d9cacb97a787c6f57fb930f4b0d4 Mon Sep 17 00:00:00 2001 From: faraabs1984 Date: Thu, 25 Nov 2021 13:55:22 +0500 Subject: [PATCH 4/7] Version-3 --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 0270a42b..4d298567 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,5 +17,8 @@ pipeline { } } + stage('3-Deplo') { + + } } } From 11c6e25339fa14fc362a72fc17a37ae8db60cd43 Mon Sep 17 00:00:00 2001 From: faraabs1984 Date: Thu, 25 Nov 2021 13:57:58 +0500 Subject: [PATCH 5/7] Version-4 --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4d298567..6bf05629 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,7 +18,7 @@ pipeline { } } stage('3-Deplo') { - + steps {} } } } From 877ac72366670b5af852b54861e70068bd8136d6 Mon Sep 17 00:00:00 2001 From: faraabs1984 Date: Thu, 25 Nov 2021 14:00:30 +0500 Subject: [PATCH 6/7] Version-4 --- Jenkinsfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6bf05629..d9017233 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,7 +18,12 @@ pipeline { } } stage('3-Deplo') { - steps {} + steps { + echo "Starting deployment automation" + echo 'Running deployment automation' + echo 'Ending deployment automation' + + } } } } From 6080dbba66f6c5651b597651e3f3c97f0a7d858e Mon Sep 17 00:00:00 2001 From: faraabs1984 Date: Thu, 25 Nov 2021 14:06:10 +0500 Subject: [PATCH 7/7] Version-1 --- Jenkinsfile | 41 ++++++++++++----------------------------- 1 file changed, 12 insertions(+), 29 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d9017233..10153e38 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,29 +1,12 @@ - -pipeline { - agent any - stages { - stage ('Build') { - steps { - echo 'Running build automation' - sh ' ./gradle build --no-daemon' - archive artifacts: 'dist/trainSchedule' - } - } - stage ('2-Test') { - steps { - echo "Starting test automation" - echo 'Running test automation' - echo 'Ending test automation' - - } - } - stage('3-Deplo') { - steps { - echo "Starting deployment automation" - echo 'Running deployment automation' - echo 'Ending deployment automation' - - } - } - } - } +pipeline{ + agent any + stages { + stage ('Build') { + steps { + echo 'Running build automation' + sh './gradlew build --no-daemon' + archiveArtifacts artifacts: 'dist/trainSchedule.zip' + } + } + } +}