Align with the updated syntax. Updating to latest version / syntax is needed for solving
@Library('github.com/redhat-ipaas/ipaas-pipeline-library@master')
def mavenVersion='3.3.9'
-mavenNode(mavenImage: "maven:${mavenVersion}", serviceAccount: 'jenkins') {
+slave {
+ withOpenshift {
+ withMaven(mavenImage: "maven:${mavenVersion}", serviceAccount: "jenkins") {
+ inside {
checkout scm
stage 'Build'
@@ -9,3 +12,6 @@ mavenNode(mavenImage: "maven:${mavenVersion}", serviceAccount: 'jenkins') {
sh "mvn clean install"
}
}
+ }
+ }
+}
