From 10b63667b56664981975ec4076211a205d449eff Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Sun, 27 Sep 2020 13:44:38 +0000 Subject: [PATCH] jenkins: publish github status always first need a result first, before we (potentially fail) to publish tests --- tests/gadget-zero/Jenkinsfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/gadget-zero/Jenkinsfile b/tests/gadget-zero/Jenkinsfile index b308b953..29a63b9a 100644 --- a/tests/gadget-zero/Jenkinsfile +++ b/tests/gadget-zero/Jenkinsfile @@ -72,14 +72,13 @@ pipeline { } post { always { - junit 'tests/gadget-zero/tests/*/TEST-*.xml' - step([ - $class: "GitHubCommitStatusSetter", + step([$class: "GitHubCommitStatusSetter", commitShaSource: [$class: "ManuallyEnteredShaSource", sha: "$pr_from_sha"], - reposSource: [$class: "ManuallyEnteredRepositorySource", url: "https://github.com/libopencm3/libopencm3"], + reposSource: [$class: "ManuallyEnteredRepositorySource", url: "https://github.com/libopencm3/libopencm3"], contextSource: [$class: "DefaultCommitContextSource"], statusResultSource: [ $class: "DefaultStatusResultSource"] ]); + junit 'tests/gadget-zero/tests/*/TEST-*.xml' } } }