diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2018-01-29 16:01:28 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2018-01-29 16:01:28 +0300 |
commit | 4831b1cd0b5762ead02c57226c12e4687a3b4464 (patch) | |
tree | 452d5b810d453a9bb4ed71a4cef53e28f763c88a /scripts/ci/pipeline/win-package.groovy | |
parent | 1177d7cad995cdb55d5ea3e6139bfebd01e36552 (diff) |
[packaging] Move GitHubCommitStatusSetter into node
Diffstat (limited to 'scripts/ci/pipeline/win-package.groovy')
-rw-r--r-- | scripts/ci/pipeline/win-package.groovy | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/scripts/ci/pipeline/win-package.groovy b/scripts/ci/pipeline/win-package.groovy index b910d69e2b4..2da75571854 100644 --- a/scripts/ci/pipeline/win-package.groovy +++ b/scripts/ci/pipeline/win-package.groovy @@ -80,35 +80,35 @@ node ("w64") { virtualPath: "${monoBranch}/${env.BUILD_NUMBER}/" ]) } - } - } -} -if (isReleaseJob) { - stage("Signing") { - timeout(time: 30, unit: 'MINUTES') { - // waits until the signing job posts completion signal to this pipeline input - input id: 'FinishedSigning', message: 'Waiting for signing to finish...', submitter: 'monojenkins' - echo "Signing done." + if (isReleaseJob) { + stage("Signing") { + timeout(time: 30, unit: 'MINUTES') { + // waits until the signing job posts completion signal to this pipeline input + input id: 'FinishedSigning', message: 'Waiting for signing to finish...', submitter: 'monojenkins' + echo "Signing done." + } + } + } + else { + echo "Not a release job, skipping signing." + } + + 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}"]]] + ]) } } } -else { - echo "Not a release job, skipping signing." -} - -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}"]]] -]) |