From 599b65118d1256a27646a9fc8d4effe23b7e1951 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=EC=A4=80=ED=95=98=20=EA=B9=80?= <junhakjh@ajou.ac.kr>
Date: Thu, 21 Jul 2022 06:57:01 +0000
Subject: [PATCH] Update Jenkinsfile

---
 Jenkinsfile | 71 ++++++++++-------------------------------------------
 1 file changed, 13 insertions(+), 58 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 804f0c7..77d96ff 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,81 +1,36 @@
 pipeline {    
-
   agent any    
-
   stages {        
-
     stage('Prepare') {            
-
       agent any
-
       steps {
-
         checkout scm
-
       }
-
       post {
-
         success {
-
           echo 'prepare success'
-
         }
-
         always {
-
           echo 'done prepare'
-
         }
-
         cleanup { 
-
           echo 'after all other post conditions'
-
         }
-
       }
-
     }
-
-    
-
-pipeline {    
-
-  agent any    
-
-  stages {        
-
-    stage('Prepare') {            
-
-      agent any
-
-      steps {
-
-        checkout scm
-
-      }
-
-      post {
-
-        success {
-
-          echo 'prepare success'
-
+    stage('maven build') {
+        steps {
+            sh 'mvn package'
         }
-
-        always {
-
-          echo 'done prepare'
-
-        }
-
-        cleanup { 
-
-          echo 'after all other post conditions'
-
+        post {
+            success {
+                echo 'maven build success'
+            }  
+            failure {
+            echo 'maven build failed'
+            }
         }
-
-      }
-
     }
+  }
+}
+
-- 
GitLab