Update Jenkinsfile
This commit is contained in:
25
Jenkinsfile
vendored
25
Jenkinsfile
vendored
@@ -1,21 +1,32 @@
|
||||
pipeline {
|
||||
agent none
|
||||
stages {
|
||||
stage('build') {
|
||||
steps {
|
||||
script {
|
||||
echo "Building the application..."
|
||||
}
|
||||
}
|
||||
}
|
||||
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('deploy') {
|
||||
when {
|
||||
expression {
|
||||
BRANCH_NAME == 'master'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
echo "Deploying the application..."
|
||||
|
||||
Reference in New Issue
Block a user