From d17173dd9999d35723c34afcc2491e9f6757598f Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Mar 14 2018 14:57:28 +0000 Subject: fix envvar in the clone step but PR don't have a BRANCH_NAME so user master Merges https://pagure.io/pagure/pull-request/3066 --- diff --git a/.cico.pipeline b/.cico.pipeline index 5c35bd9..ae00242 100644 --- a/.cico.pipeline +++ b/.cico.pipeline @@ -36,7 +36,11 @@ node('pagure') { } stage('Clone Test Suite') { - onmyduffynode "git clone -b \"${env.BRANCH_NAME}\" --single-branch --depth 1 https://pagure.io/pagure.git" + if (env.BRANCH_NAME){ + onmyduffynode "git clone -b \"${env.BRANCH_NAME}\" --single-branch --depth 1 https://pagure.io/pagure.git" + } else { + onmyduffynode "git clone --single-branch --depth 1 https://pagure.io/pagure.git" + } } stage('Run Test Suite') {