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