From 4831b1cd0b5762ead02c57226c12e4687a3b4464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Mon, 29 Jan 2018 14:01:28 +0100 Subject: [packaging] Move GitHubCommitStatusSetter into node --- scripts/ci/pipeline/win-package.groovy | 56 +++++++++++++++++----------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'scripts/ci/pipeline/win-package.groovy') 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 = "

DOWNLOAD: ${packageFileNameX86} -- ${packageFileNameX64}


" + 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 = "

DOWNLOAD: ${packageFileNameX86} -- ${packageFileNameX64}


" -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}"]]] -]) -- cgit v1.2.3