BAEL-3622:- Running stages in parallel with Jenkins workflow / pipeline (#13580)

This commit is contained in:
Kapil Khandelwal 2023-03-06 08:49:44 +05:30 committed by GitHub
parent c73c8a6432
commit 37ad9d4301
1 changed files with 34 additions and 0 deletions

View File

@ -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
}
}
}
}