Closed kmala closed 8 years ago
Why doesn't the existing deploy script, which runs make build docker-build ...
already work? It seems like something else is wrong here.
@arschles I can't remember why the divergence with _scripts/deploy.sh
occurred (perhaps each deploy.sh was different between components.)
Also, while that script does get run by Travis on merges to master, it doesn't for PRs (Travis won't push images from forked repo due to https://docs.travis-ci.com/user/pull-requests#Security-Restrictions-when-testing-Pull-Requests).
@vdice So if the goal here is to get new builder images for PRs, I'd rather not make the fix in the Makefile
, because adding build
as a dependency of docker-build
will change the standard dev workflow. Can we make Jenkins just run make build docker-build
?
@arschles I see. Yes, we could do that; we'd just have to ensure all component repos tracked by Jenkins (https://github.com/deis/jenkins-jobs/blob/master/common.groovy#L1-L15) have a build
task (would be surprising if they didn't but just a double-check)
@arschles I see other places https://github.com/deis/router/blob/master/Makefile#L49 and https://github.com/deis/registry/blob/master/Makefile#L41 where we build a binary doing the same.So which method do you think is the better one...so that all the components can be on the same plate
I'd also be ok with adding a new build target, possibly called docker-build-complete
...
@kmala Good point. However, since we don't seem to have a standard across all repos, I strongly prefer that we don't change this repo until we do settle on a standard.
Summary of Changes
make docker-build call build Jenkis use a common script to build an image out of the PR and run e2e tests https://github.com/deis/jenkins-jobs/blob/master/jobs/component_jobs.groovy#L101-L113
Issue(s) that this PR Closes
fixes #285
Testing Instructions
Please provide a detailed list for how to test the changes in this PR.
Pull Request Hygiene TODOs