2015-09-30 01:21:17 +00:00
|
|
|
package model
|
|
|
|
|
2016-03-31 06:24:47 +00:00
|
|
|
// swagger:model job
|
2015-06-23 03:45:08 +00:00
|
|
|
type Job struct {
|
2015-09-30 01:21:17 +00:00
|
|
|
ID int64 `json:"id" meddler:"job_id,pk"`
|
|
|
|
BuildID int64 `json:"-" meddler:"job_build_id"`
|
|
|
|
NodeID int64 `json:"-" meddler:"job_node_id"`
|
|
|
|
Number int `json:"number" meddler:"job_number"`
|
2016-04-22 01:05:54 +00:00
|
|
|
Error string `json:"error" meddler:"-"`
|
2015-09-30 01:21:17 +00:00
|
|
|
Status string `json:"status" meddler:"job_status"`
|
|
|
|
ExitCode int `json:"exit_code" meddler:"job_exit_code"`
|
2015-10-01 21:35:25 +00:00
|
|
|
Enqueued int64 `json:"enqueued_at" meddler:"job_enqueued"`
|
2015-09-30 01:21:17 +00:00
|
|
|
Started int64 `json:"started_at" meddler:"job_started"`
|
|
|
|
Finished int64 `json:"finished_at" meddler:"job_finished"`
|
|
|
|
|
|
|
|
Environment map[string]string `json:"environment" meddler:"job_environment,json"`
|
|
|
|
}
|