Update Jenkinsfile

This commit is contained in:
Nana Janashia
2020-11-11 16:45:14 +00:00
parent 9969d8b2cf
commit a4a55e133b

11
Jenkinsfile vendored
View File

@@ -5,16 +5,10 @@ pipeline {
steps { steps {
script { script {
echo "Testing the application..." echo "Testing the application..."
echo "Executing pipeline for branch $BRANCH_NAME"
} }
} }
} }
stage('build') { stage('build') {
when {
expression {
BRANCH_NAME == 'master'
}
}
steps { steps {
script { script {
echo "Building the application..." echo "Building the application..."
@@ -22,11 +16,6 @@ pipeline {
} }
} }
stage('deploy') { stage('deploy') {
when {
expression {
BRANCH_NAME == 'master'
}
}
steps { steps {
script { script {
echo "Deploying the application..." echo "Deploying the application..."