luci: go.chromium.org/luci/led/job/jobcreate Index | Files

package jobcreate

import "go.chromium.org/luci/led/job/jobcreate"

Index

Package Files

bbagent.go create.go gen.go raw.go util.go

func FromNewTaskRequest Uses

func FromNewTaskRequest(ctx context.Context, r *swarming.SwarmingRpcsNewTaskRequest, name, swarmingHost string, ks job.KitchenSupport) (ret *job.Definition, err error)

FromNewTaskRequest generates a new job.Definition by parsing the given SwarmingRpcsNewTaskRequest.

If the task's first slice looks like either a bbagent or kitchen-based Buildbucket task, the returned Definition will have the `buildbucket` field populated, otherwise the `swarming` field will be populated.

Package jobcreate imports 12 packages (graph) and is imported by 2 packages. Updated 2020-08-05. Refresh now. Tools for package owners.