From 4fb7bb6c6f0648cf1f7e70c255b1b47105a1d530 Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Thu, 11 Apr 2019 13:45:34 -0400 Subject: [PATCH] Syntax and cleaning --- Jenkinsfile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 876862c..e552916 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -48,20 +48,21 @@ pipeline { //sh "aws s3 cp ${env.SERVICE}-${getVersion('-d')}.tar.gz s3://rbn-ops-pkg-us-east-1/${env.SERVICE}/${env.SERVICE}-${getVersion('-d')}.tar.gz" } - } - post{ + post + { // Update Git with status of push stage. success { - updateGithubCommitStatus(GITHUB_URL, 'Passed push stage', 'SUCCESS', 'Push') + updateGithubCommitStatus(GITHUB_URL, 'Passed push stage', 'SUCCESS', 'Push') } failure { - updateGithubCommitStatus(GITHUB_URL, 'Failed push stage', 'FAILURE', 'Push') + updateGithubCommitStatus(GITHUB_URL, 'Failed push stage', 'FAILURE', 'Push') } } - } - post { - always { - removeDockerImages() } - } + post { + always { + removeDockerImages() + cleanWs() + } + } }