diff --git a/vars/stage.groovvvy b/vars/stage.groovvvy new file mode 100644 index 0000000..76ac2f5 --- /dev/null +++ b/vars/stage.groovvvy @@ -0,0 +1,15 @@ +def call(String stageName){ + + if ("${stageName}" == "Build") + { + sh "mvn clean package" + } + else if ("${stageName}" == "SonarQube Report") + { + sh "mvn clean sonar:sonar" + } + else if ("${stageName}" == "Upload Into Nexus") + { + sh "mvn clean deploy" + } +}