mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Ensure the upstream branch is defined
This commit is contained in:
Vendored
+2
-1
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user