Update Jenkinsfile

This commit is contained in:
Nana Janashia
2020-11-06 12:47:14 +00:00
parent 1fa470771d
commit 61821c6ef7

23
Jenkinsfile vendored
View File

@@ -1,21 +1,32 @@
pipeline {
agent none
stages {
stage('test') {
steps {
script {
echo "Testing the application..."
echo "Executing pipeline for branch $BRANCH_NAME"
}
}
}
stage('build') {
when {
expression {
BRANCH_NAME == 'master'
}
}
steps {
script {
echo "Building the application..."
}
}
}
stage('test') {
steps {
script {
echo "Testing the application..."
stage('deploy') {
when {
expression {
BRANCH_NAME == 'master'
}
}
}
stage('deploy') {
steps {
script {
echo "Deploying the application..."