aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/xanzy/go-gitlab/jobs.go
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-07-14 15:53:31 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-07-23 17:18:04 +0200
commit1c23c736e9b2ad85fb69330f62dd9da9ceeba823 (patch)
treed56171b38bb760d86ab3bc06799f78dbe1a09758 /vendor/github.com/xanzy/go-gitlab/jobs.go
parent612264a00f352a12620bab3c72cd0b11b304f5e2 (diff)
downloadgit-bug-1c23c736e9b2ad85fb69330f62dd9da9ceeba823.tar.gz
vendor: update github.com/xanzy/go-gitlab to version 0.19.0
Diffstat (limited to 'vendor/github.com/xanzy/go-gitlab/jobs.go')
-rw-r--r--vendor/github.com/xanzy/go-gitlab/jobs.go45
1 files changed, 27 insertions, 18 deletions
diff --git a/vendor/github.com/xanzy/go-gitlab/jobs.go b/vendor/github.com/xanzy/go-gitlab/jobs.go
index daced463..f0c1e2c4 100644
--- a/vendor/github.com/xanzy/go-gitlab/jobs.go
+++ b/vendor/github.com/xanzy/go-gitlab/jobs.go
@@ -35,23 +35,33 @@ type JobsService struct {
//
// GitLab API docs: https://docs.gitlab.com/ce/api/jobs.html
type Job struct {
- Commit *Commit `json:"commit"`
- CreatedAt *time.Time `json:"created_at"`
- Coverage float64 `json:"coverage"`
- ArtifactsFile struct {
- Filename string `json:"filename"`
- Size int `json:"size"`
- } `json:"artifacts_file"`
- FinishedAt *time.Time `json:"finished_at"`
- ID int `json:"id"`
- Name string `json:"name"`
- Pipeline struct {
+ Commit *Commit `json:"commit"`
+ Coverage float64 `json:"coverage"`
+ AllowFailure bool `json:"allow_failure"`
+ CreatedAt *time.Time `json:"created_at"`
+ StartedAt *time.Time `json:"started_at"`
+ FinishedAt *time.Time `json:"finished_at"`
+ Duration float64 `json:"duration"`
+ ArtifactsExpireAt *time.Time `json:"artifacts_expire_at"`
+ ID int `json:"id"`
+ Name string `json:"name"`
+ Pipeline struct {
ID int `json:"id"`
Ref string `json:"ref"`
Sha string `json:"sha"`
Status string `json:"status"`
} `json:"pipeline"`
- Ref string `json:"ref"`
+ Ref string `json:"ref"`
+ Artifacts []struct {
+ FileType string `json:"file_type"`
+ Filename string `json:"filename"`
+ Size int `json:"size"`
+ FileFormat string `json:"file_format"`
+ } `json:"artifacts"`
+ ArtifactsFile struct {
+ Filename string `json:"filename"`
+ Size int `json:"size"`
+ } `json:"artifacts_file"`
Runner struct {
ID int `json:"id"`
Description string `json:"description"`
@@ -59,12 +69,11 @@ type Job struct {
IsShared bool `json:"is_shared"`
Name string `json:"name"`
} `json:"runner"`
- Stage string `json:"stage"`
- StartedAt *time.Time `json:"started_at"`
- Status string `json:"status"`
- Tag bool `json:"tag"`
- User *User `json:"user"`
- WebURL string `json:"web_url"`
+ Stage string `json:"stage"`
+ Status string `json:"status"`
+ Tag bool `json:"tag"`
+ WebURL string `json:"web_url"`
+ User *User `json:"user"`
}
// ListJobsOptions are options for two list apis