Update Jenkinsfile
This commit is contained in:
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@@ -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..."
|
||||||
|
|||||||
Reference in New Issue
Block a user