From 9df86c5a658254110d4f66099a3fc069d237c3b0 Mon Sep 17 00:00:00 2001
From: dudgns2947 <dudgns2947@gmail.com>
Date: Thu, 21 Jul 2022 15:49:44 +0900
Subject: [PATCH] pipeline test

---
 Jenkinsfile | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 Jenkinsfile

diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..0dd09c2
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,34 @@
+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'
+            }
+        }
+    }
+    stage('maven build'){
+        steps {
+            sh  'mvn package'
+        }
+        post {
+            success{
+                echo 'maven build success'
+            }
+        }
+        failure {
+            echo 'maven build failed'
+        }
+    }
+}
\ No newline at end of file
-- 
GitLab