Skip to content

Commit

Permalink
bug with default params to pipeline stack
Browse files Browse the repository at this point in the history
  • Loading branch information
cplee committed Feb 1, 2017
1 parent b1d9be2 commit 9893b82
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 19 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ deps:
glide install
go generate $(SRC_FILES)

lint:
lint: fmt
@echo "=== linting ==="
go vet $(SRC_FILES)
glide novendor | xargs -n1 golint -set_exit_status
Expand Down Expand Up @@ -85,7 +85,7 @@ clean:
all: clean deps test build

fmt:
@echo "=== cleaning ==="
@echo "=== formatting ==="
go fmt $(SRC_FILES)


Expand Down
28 changes: 14 additions & 14 deletions templates/assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions workflows/pipeline_upsert.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,18 @@ func (workflow *pipelineWorkflow) pipelineUpserter(tokenProvider func(bool) stri
}
pipelineParams["GitHubUser"] = sourceRepo[0]
pipelineParams["GitHubRepo"] = sourceRepo[1]
pipelineParams["GitHubBranch"] = workflow.pipelineConfig.Source.Branch
pipelineParams["GitHubToken"] = tokenProvider(pipelineStack == nil)

pipelineParams["BuildType"] = workflow.pipelineConfig.Build.Type
pipelineParams["BuildComputeType"] = workflow.pipelineConfig.Build.ComputeType
if workflow.pipelineConfig.Source.Branch != "" {
pipelineParams["GitHubBranch"] = workflow.pipelineConfig.Source.Branch
}

if workflow.pipelineConfig.Build.Type != "" {
pipelineParams["BuildType"] = workflow.pipelineConfig.Build.Type
}
if workflow.pipelineConfig.Build.ComputeType != "" {
pipelineParams["BuildComputeType"] = workflow.pipelineConfig.Build.ComputeType
}

if workflow.pipelineConfig.Build.Image != "" {
pipelineParams["BuildImage"] = workflow.pipelineConfig.Build.Image
Expand Down

0 comments on commit 9893b82

Please sign in to comment.