From 21cf4de84f625b001a76762ab4d60917171ec06a Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Fri, 28 Dec 2018 17:03:48 +0000 Subject: [PATCH] [Jenkinsfile] Run arc patch when triggered by Differential. --- Jenkinsfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index d9656b85d..31fd87128 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,6 +11,9 @@ builders['Build swift Linux'] = { try { stage('Linux Checkout') { checkout scm + if (params.REVISION_ID != null) { + sh "/opt/arc/arcanist/bin/arc patch D${params.REVISION_ID}" + } } stage('Linux Build') { @@ -60,6 +63,9 @@ builders['Build swift MacOS'] = { try { stage('MacOS Checkout') { checkout scm + if (params.REVISION_ID != null) { + sh "~/arc/arcanist/bin/arc patch D${params.REVISION_ID}" + } } stage('MacOS Build') { @@ -103,6 +109,9 @@ builders['Build swift Win32'] = { try { stage('Win32 Checkout') { checkout scm + if (params.REVISION_ID != null) { + bat "arc patch D${params.REVISION_ID}" + } } stage('Win32 Build') { @@ -143,6 +152,9 @@ builders['Build swift Win64'] = { try { stage('Win64 Checkout') { checkout scm + if (params.REVISION_ID != null) { + bat "arc patch D${params.REVISION_ID}" + } } stage('Win64 Build') {