From 05737ec4a9d9341b3d6e200a55b5ea80708debd2 Mon Sep 17 00:00:00 2001 From: dudgns2947 <dudgns2947@gmail.com> Date: Thu, 21 Jul 2022 15:51:28 +0900 Subject: [PATCH] repipeline --- Jenkinsfile | 103 ++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 75 insertions(+), 28 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0dd09c2..1f2d94b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,34 +1,81 @@ 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' - } + + 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' + + + +pipeline { + + agent any + + stages { + + stage('Prepare') { + + agent any + + steps { + + checkout scm + + } + + post { + + success { + + echo 'prepare success' + } - post { - success{ - echo 'maven build success' - } + + always { + + echo 'done prepare' + } - failure { - echo 'maven build failed' + + cleanup { + + echo 'after all other post conditions' + } - } -} \ No newline at end of file + + } + + } \ No newline at end of file -- GitLab