From 9c56ddc553e7e2cc57b1d560252f7a2a735248c6 Mon Sep 17 00:00:00 2001 From: Nana Janashia Date: Fri, 6 Nov 2020 12:26:25 +0000 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8b55f4c..f187254 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,38 +1,26 @@ -def gv - pipeline { - agent any - tools { - maven 'Maven' - } + agent none stages { - stage("init") { + stage('build') { steps { - script { - gv = load "script.groovy" + script { + echo "Building the application..." } } } - stage("build jar") { + stage('test') { steps { script { - gv.buildJar() + echo "Testing the application..." } } } - stage("build image") { + stage('deploy') { steps { script { - gv.buildImage() + echo "Deploying the application..." } } } - stage("deploy") { - steps { - script { - gv.deployApp() - } - } - } - } -} \ No newline at end of file + } +}