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 {
agent any
tools {
maven 'Maven'
}
agent none
stages {
stage("init") {
stage('build') {
steps {
script {
gv = load "script.groovy"
script {
echo "Building the application..."
}
}
}
stage("build jar") {
stage('test') {
steps {
script {
gv.buildJar()
echo "Testing the application..."
}
}
}
stage("build image") {
stage('deploy') {
steps {
script {
gv.buildImage()
echo "Deploying the application..."
}
}
}
stage("deploy") {
steps {
script {
gv.deployApp()
}
}
}
}
}
}
}