diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2018-01-29 14:42:45 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2018-01-29 14:42:45 +0300 |
commit | 1177d7cad995cdb55d5ea3e6139bfebd01e36552 (patch) | |
tree | eb2cf11a23019bb29516a5b4b607e933e6ef67d2 | |
parent | 0acf7ff606e37d13fd278a172c10aed5a7824ae7 (diff) |
[packaging] Add GitHub status for packaging result
PKG-mono for the OSX .pkg and MSI-mono_{x86|x64} for the Windows .msi
-rw-r--r-- | scripts/ci/pipeline/osx-package.groovy | 7 | ||||
-rw-r--r-- | scripts/ci/pipeline/win-package.groovy | 14 |
2 files changed, 21 insertions, 0 deletions
diff --git a/scripts/ci/pipeline/osx-package.groovy b/scripts/ci/pipeline/osx-package.groovy index f150c0e23f5..6e20a477cb2 100644 --- a/scripts/ci/pipeline/osx-package.groovy +++ b/scripts/ci/pipeline/osx-package.groovy @@ -85,6 +85,13 @@ else { } currentBuild.description = "<hr/><h2>DOWNLOAD: <a href=\"https://xamjenkinsartifact.azureedge.net/${jobName}/${monoBranch}/${env.BUILD_NUMBER}/${packageFileName}\">${packageFileName}</a></h2><hr/>" +step([ + $class: 'GitHubCommitStatusSetter', + commitShaSource: [$class: "ManuallyEnteredShaSource", sha: commitHash], + contextSource: [$class: 'ManuallyEnteredCommitContextSource', context: 'PKG-mono'], + statusBackrefSource: [$class: 'ManuallyEnteredBackrefSource', backref: "https://xamjenkinsartifact.azureedge.net/${jobName}/${monoBranch}/${env.BUILD_NUMBER}/${packageFileName}"], + statusResultSource: [$class: 'ConditionalStatusResultSource', results: [[$class: 'AnyBuildResult', state: 'SUCCESS', message: "${packageFileName}"]]] +]) if (!isPr) { // trigger the Windows build diff --git a/scripts/ci/pipeline/win-package.groovy b/scripts/ci/pipeline/win-package.groovy index be6988919c4..b910d69e2b4 100644 --- a/scripts/ci/pipeline/win-package.groovy +++ b/scripts/ci/pipeline/win-package.groovy @@ -98,3 +98,17 @@ else { } currentBuild.description = "<hr/><h2>DOWNLOAD: <a href=\"https://xamjenkinsartifact.azureedge.net/${jobName}/${monoBranch}/${env.BUILD_NUMBER}/${packageFileNameX86}\">${packageFileNameX86}</a> -- <a href=\"https://xamjenkinsartifact.azureedge.net/${jobName}/${monoBranch}/${env.BUILD_NUMBER}/${packageFileNameX64}\">${packageFileNameX64}</a></h2><hr/>" +step([ + $class: 'GitHubCommitStatusSetter', + commitShaSource: [$class: "ManuallyEnteredShaSource", sha: commitHash], + contextSource: [$class: 'ManuallyEnteredCommitContextSource', context: 'MSI-mono_x86'], + statusBackrefSource: [$class: 'ManuallyEnteredBackrefSource', backref: "https://xamjenkinsartifact.azureedge.net/${jobName}/${monoBranch}/${env.BUILD_NUMBER}/${packageFileNameX86}"], + statusResultSource: [$class: 'ConditionalStatusResultSource', results: [[$class: 'AnyBuildResult', state: 'SUCCESS', message: "${packageFileNameX86}"]]] +]) +step([ + $class: 'GitHubCommitStatusSetter', + commitShaSource: [$class: "ManuallyEnteredShaSource", sha: commitHash], + contextSource: [$class: 'ManuallyEnteredCommitContextSource', context: 'MSI-mono_x64'], + statusBackrefSource: [$class: 'ManuallyEnteredBackrefSource', backref: "https://xamjenkinsartifact.azureedge.net/${jobName}/${monoBranch}/${env.BUILD_NUMBER}/${packageFileNameX64}"], + statusResultSource: [$class: 'ConditionalStatusResultSource', results: [[$class: 'AnyBuildResult', state: 'SUCCESS', message: "${packageFileNameX64}"]]] +]) |