Skip to content

check CustomStrategy validation at begin #10480

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 17, 2016

Conversation

guangxuli
Copy link
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
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
Contributor Author

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

@bparees
Copy link
Contributor

bparees commented Aug 17, 2016

[merge]

@openshift-bot
Copy link
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
Contributor

Evaluated for origin merge up to 2c67c87

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 2c67c87

@openshift-bot
Copy link
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