From 02fb44e4c163fb11908da3b69959f61ae9bc445d Mon Sep 17 00:00:00 2001 From: jaybrai <144754151+jaybrai@users.noreply.github.com> Date: Fri, 25 Oct 2024 21:39:38 -0600 Subject: [PATCH] Create stage.groovvvy --- vars/stage.groovvvy | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 vars/stage.groovvvy 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" + } +}