From 296485b5d8ff4d57950df9d0501e2cc2b00fbb49 Mon Sep 17 00:00:00 2001 From: Kapil Khandelwal Date: Mon, 6 Mar 2023 08:49:44 +0530 Subject: [PATCH] BAEL-3622:- Running stages in parallel with Jenkins workflow / pipeline (#13580) --- .../parallel-stage-job/pipeline-parallel-job | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 jenkins-modules/jenkins-jobs/parallel-stage-job/pipeline-parallel-job diff --git a/jenkins-modules/jenkins-jobs/parallel-stage-job/pipeline-parallel-job b/jenkins-modules/jenkins-jobs/parallel-stage-job/pipeline-parallel-job new file mode 100644 index 0000000000..c44d61d099 --- /dev/null +++ b/jenkins-modules/jenkins-jobs/parallel-stage-job/pipeline-parallel-job @@ -0,0 +1,34 @@ +pipeline { + agent any + stages { + stage('Build') { + steps { + sh 'echo "Building the application"' + // Add commands to build application + } + } + stage('Test') { + parallel { + stage('Unit Tests') { + steps { + sh 'sleep 5s' + sh 'echo "Running unit tests"' + // Add commands to run unit tests + } + } + stage('Integration Tests') { + steps { + sh 'echo "Running integration tests"' + // Add commands to run integration tests + } + } + } + } + stage('Deploy') { + steps { + sh 'echo "Deploying the application"' + // Add commands to deploy application + } + } + } +}