Update Jenkinsfile
This commit is contained in:
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@@ -9,21 +9,14 @@ pipeline {
|
|||||||
stage('test') {
|
stage('test') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
echo "Testing the application..."
|
|
||||||
// echo "Executing pipeline for branch $BRANCH_NAME"
|
|
||||||
buildJar()
|
buildJar()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('build') {
|
stage('build') {
|
||||||
when {
|
|
||||||
expression {
|
|
||||||
BRANCH_NAME == 'master'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
echo "Building the application..."
|
buildDockerImage 'nanajanashia/demo-app:jma-2.0'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user