Welcome to mirror list, hosted at ThFree Co, Russian Federation.

utils.groovy « pipeline « ci « scripts - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a495bbb08f2f954041ecae6adc29e9daa4f4359e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
def reportGitHubStatus(commitHash, context, backref, statusResult, statusResultMessage) {
    node {
        step([
            $class: 'GitHubCommitStatusSetter',
            commitShaSource: [$class: "ManuallyEnteredShaSource", sha: commitHash],
            contextSource: [$class: 'ManuallyEnteredCommitContextSource', context: context],
            statusBackrefSource: [$class: 'ManuallyEnteredBackrefSource', backref: backref],
            statusResultSource: [$class: 'ConditionalStatusResultSource', results: [[$class: 'AnyBuildResult', state: statusResult, message: statusResultMessage]]]
        ])
    }
}

return this