Ensure the upstream branch is defined

This commit is contained in:
Vic Iglesias
2016-08-17 16:44:25 -07:00
parent 922499d5f8
commit 3e618732d1
Vendored
+2 -1
View File
@@ -12,7 +12,8 @@ node {
sh './linux-amd64/helm init'
// Get list of changed applications
def applications = sh(script: "git diff --name-only ${branch} | grep / | awk -F/ '{print \$1}' | uniq", returnStdout: true).trim().split()
def upstreamBranch = "origin/master"
def applications = sh(script: "git diff --name-only ${upstreamBranch} | grep / | awk -F/ '{print \$1}' | uniq", returnStdout: true).trim().split()
for (int i = 0; i < applications.size(); i++) {
def application = applications[i]