Update Jenkinsfile
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -5,16 +5,10 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
echo "Building the application..."
|
echo "Building the application..."
|
||||||
echo "Branch $BRANCH_NAME"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('test') {
|
stage('test') {
|
||||||
when {
|
|
||||||
expression {
|
|
||||||
BRANCH_NAME == 'master'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
echo "Testing the application..."
|
echo "Testing the application..."
|
||||||
|
|||||||
Reference in New Issue
Block a user