jenkins: publish github status always first

need a result first, before we (potentially fail) to publish tests
This commit is contained in:
Karl Palsson 2020-09-27 13:44:38 +00:00
parent b8461da137
commit 10b63667b5

View File

@ -72,14 +72,13 @@ pipeline {
} }
post { post {
always { always {
junit 'tests/gadget-zero/tests/*/TEST-*.xml' step([$class: "GitHubCommitStatusSetter",
step([
$class: "GitHubCommitStatusSetter",
commitShaSource: [$class: "ManuallyEnteredShaSource", sha: "$pr_from_sha"], 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"], contextSource: [$class: "DefaultCommitContextSource"],
statusResultSource: [ $class: "DefaultStatusResultSource"] statusResultSource: [ $class: "DefaultStatusResultSource"]
]); ]);
junit 'tests/gadget-zero/tests/*/TEST-*.xml'
} }
} }
} }