Skip to content

check CustomStrategy validation at begin#10480

Merged
openshift-bot merged 1 commit intoopenshift:masterfrom
guangxuli:openshift_build_learn
Aug 17, 2016
Merged

check CustomStrategy validation at begin#10480
openshift-bot merged 1 commit intoopenshift:masterfrom
guangxuli:openshift_build_learn

Conversation

@guangxuli
Copy link
Copy Markdown
Contributor

@guangxuli guangxuli commented Aug 17, 2016

if we are't sure whether build.Spec.Strategy.CustomStrategy is nil in

if strategy == nil || len(strategy.From.Name) == 0 { return nil, errors.New("CustomBuildStrategy cannot be executed without image") }

we should check pointer build.Spec.Strategy.CustomStrategy at begin.

@bparees
Copy link
Copy Markdown
Contributor

bparees commented Aug 17, 2016

need gofmt

@guangxuli guangxuli force-pushed the openshift_build_learn branch 2 times, most recently from e22848c to 2c67c87 Compare August 17, 2016 15:25
test

gofmt again

gofmt again
@guangxuli
Copy link
Copy Markdown
Contributor Author

@bparees sorry, I made a mistake. I run gofmt again. PTAL, thanks! CI go 1.6 run success.

@bparees
Copy link
Copy Markdown
Contributor

bparees commented Aug 17, 2016

[merge]

@openshift-bot
Copy link
Copy Markdown
Contributor

openshift-bot commented Aug 17, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/8053/) (Image: devenv-rhel7_4857)

@openshift-bot
Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 2c67c87

@openshift-bot
Copy link
Copy Markdown
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot
Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 2c67c87

@openshift-bot
Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/8053/)

@openshift-bot openshift-bot merged commit fb4b369 into openshift:master Aug 17, 2016
@guangxuli guangxuli deleted the openshift_build_learn branch August 19, 2016 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants