worker: do not get the distro from the host

Add a `Distro` field to both `Job` structures and send that to the
worker.
This commit is contained in:
Lars Karlitski 2019-12-15 13:50:03 +01:00 committed by Tom Gundersen
parent dff8cb56be
commit 5bce59b979
5 changed files with 20 additions and 13 deletions

View file

@ -58,6 +58,7 @@ type Compose struct {
// A Job contains the information about a compose a worker needs to process it.
type Job struct {
ComposeID uuid.UUID
Distro string
Pipeline *pipeline.Pipeline
Targets []*target.Target
OutputType string
@ -451,6 +452,7 @@ func (s *Store) PushCompose(composeID uuid.UUID, bp *blueprint.Blueprint, checks
})
s.pendingJobs <- Job{
ComposeID: composeID,
Distro: s.distro.Name(),
Pipeline: pipeline,
Targets: targets,
OutputType: composeType,