Update Jenkinsfile

This commit is contained in:
Nana Janashia
2020-11-06 12:26:25 +00:00
parent 056eca7cf6
commit 9c56ddc553

32
Jenkinsfile vendored
View File

@@ -1,38 +1,26 @@
def gv
pipeline { pipeline {
agent any agent none
tools {
maven 'Maven'
}
stages { stages {
stage("init") { stage('build') {
steps { steps {
script { script {
gv = load "script.groovy" echo "Building the application..."
} }
} }
} }
stage("build jar") { stage('test') {
steps { steps {
script { script {
gv.buildJar() echo "Testing the application..."
} }
} }
} }
stage("build image") { stage('deploy') {
steps { steps {
script { script {
gv.buildImage() echo "Deploying the application..."
} }
} }
} }
stage("deploy") { }
steps { }
script {
gv.deployApp()
}
}
}
}
}