Add new file

This commit is contained in:
Nana Janashia
2021-01-01 17:07:34 +00:00
parent ee8acd6d8c
commit 680723e88d

40
Jenkinsfile-simple-pipeline/Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,40 @@
#!/usr/bin/env groovy
def gv
pipeline {
agent any
tools {
maven 'Maven'
}
stages {
stage("init") {
steps {
script {
gv = load "script.groovy"
}
}
}
stage("build jar") {
steps {
script {
gv.buildJar()
}
}
}
stage("build image") {
steps {
script {
gv.buildImage()
}
}
}
stage("deploy") {
steps {
script {
gv.deployApp()
}
}
}
}
}