From ee655709179921afc14b3d8e1260382b7ed07fcd Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Apr 10 2018 14:24:05 +0000 Subject: use params.BRANCH, which is the variable where we actually store the base branch of the PR --- diff --git a/.cico.pipeline b/.cico.pipeline index 7071c65..21e6419 100644 --- a/.cico.pipeline +++ b/.cico.pipeline @@ -36,8 +36,9 @@ node('pagure') { } stage('Clone Test Suite') { - if (env.BRANCH_NAME){ - onmyduffynode "git clone -b \"${env.BRANCH_NAME}\" --single-branch --depth 1 https://pagure.io/pagure.git" + 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" }