Skip to content

Commit

Permalink
use repo branch if available
Browse files Browse the repository at this point in the history
  • Loading branch information
cplee committed Oct 31, 2018
1 parent f58c637 commit 7cadfc8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions workflows/pipeline_upsert.go
Expand Up @@ -252,11 +252,7 @@ func (workflow *pipelineWorkflow) pipelineCatalogUpserter(namespace string, pipe

productParams := make(map[string]string)
productParams["ServiceName"] = workflow.serviceName
if pipeline.Source.Branch == "" {
productParams["SourceBranch"] = "master"
} else {
productParams["SourceBranch"] = pipeline.Source.Branch
}
productParams["SourceBranch"] = workflow.codeBranch
productParams["SourceRepo"] = pipeline.Source.Repo
productParams["GitHubToken"] = params["GitHubToken"]

Expand Down

0 comments on commit 7cadfc8

Please sign in to comment.