From 9105b97ff3b2c68dc2d49b7e9480610e2c073d71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=98=81=ED=9B=88?= <dudgns2947@ajou.ac.kr> Date: Thu, 21 Jul 2022 06:55:59 +0000 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 103 ++++++++++++++-------------------------------------- 1 file changed, 28 insertions(+), 75 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1f2d94b..1f8af05 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,81 +1,34 @@ pipeline { - - agent any - - stages { - - stage('Prepare') { - - agent any - - steps { - - checkout scm - - } - - post { - - success { - - echo 'prepare success' - + 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' + } } - - 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' - + post { + success{ + echo 'maven build success' + } } - - cleanup { - - echo 'after all other post conditions' - + failure { + echo 'maven build failed' } - - } - - } \ No newline at end of file + } +} -- GitLab