call library functions in jenkinsfile

This commit is contained in:
Nana Janashia
2020-11-08 15:58:31 +01:00
parent d7839d4033
commit 6a5572a5f7
2 changed files with 10 additions and 25 deletions

17
Jenkinsfile vendored
View File

@@ -1,7 +1,10 @@
#!/usr/bin/env groovy
@Library('jenkins-shared-library')
def gv
pipeline {
agent any
agent none
tools {
maven 'Maven'
}
@@ -15,16 +18,12 @@ pipeline {
}
stage("build jar") {
steps {
script {
gv.buildJar()
}
buildJar()
}
}
stage("build image") {
steps {
script {
gv.buildImage()
}
buildImage()
}
}
stage("deploy") {
@@ -34,5 +33,5 @@ pipeline {
}
}
}
}
}
}
}