From 44116ae965548f2381848edcc53ac628520127f1 Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Apr 12 2018 13:30:32 +0000 Subject: We were trying to have jenkins checkout the proper PR branch but the ci script already does this. The CI script just needs a copy of itself from master, and it will do the right thing. Merges https://pagure.io/pagure/pull-request/3154 --- diff --git a/.cico.pipeline b/.cico.pipeline index 21e6419..3645904 100644 --- a/.cico.pipeline +++ b/.cico.pipeline @@ -27,6 +27,7 @@ node('pagure') { ).trim().tokenize(' ') env.DUFFY_NODE=duffy_rtn[0] env.SSID=duffy_rtn[1] + env.BRANCH=params.BRANCH } try { @@ -36,12 +37,7 @@ node('pagure') { } stage('Clone Test Suite') { - if (params.BRANCH){ - println "Checking out branch: ${params.BRANCH}" - onmyduffynode "git clone -b \"${params.BRANCH}\" --single-branch --depth 1 https://pagure.io/pagure.git" - } else { - onmyduffynode "git clone --single-branch --depth 1 https://pagure.io/pagure.git" - } + onmyduffynode "git clone --single-branch --depth 1 https://pagure.io/pagure.git" } stage('Run Test Suite') {