From 5e649e92266f54bbbe57a7bbbd63a204cf9ff9c4 Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Tue, 26 Nov 2019 12:19:06 -0500 Subject: [PATCH] Replace CleanWs() with commit status --- Jenkinsfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3a3709b..36e66b7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -85,10 +85,9 @@ pipeline { } } } - post { - always { - cleanWs() - } + post { + success { updateGithubCommitStatus(GITHUB_URL, 'Passed build and test', 'SUCCESS') } + failure { updateGithubCommitStatus(GITHUB_URL, 'Failed build and test', 'FAILURE') } } }