Unverified Commit ede2903d authored by Olivier Ribardière's avatar Olivier Ribardière Committed by GitHub
Browse files

Include Project in RunnersAPI.getJobs* (Issue #552) (#553)



* Include Project in RunnersAPI.getJobs* (Issue #552)

* Fixing withAllowFailure and adding project to job.json

Co-authored-by: default avatarOlivier RIBARDIERE <oribardiere-gitkraken@yahoo.com>
parent 9cbe3311
......@@ -29,6 +29,7 @@ public class Job {
private Boolean manual;
private Boolean allowFailure;
private Float duration;
private Project project;
public Integer getId() {
return id;
......@@ -205,6 +206,14 @@ public class Job {
public void setDuration(Float duration) {
this.duration = duration;
}
public Project getProject() {
return project;
}
public void setProject(Project project) {
this.project = project;
}
public Job withId(Integer id) {
this.id = id;
......@@ -291,10 +300,20 @@ public class Job {
return this;
}
public Job allowFailureManual(Boolean allowFailure) {
public Job withAllowFailure(Boolean allowFailure) {
this.allowFailure = allowFailure;
return this;
}
public Job withDuration(Float duration) {
this.duration = duration;
return this;
}
public Job withProject(Project project) {
this.project = project;
return this;
}
@Override
public String toString() {
......
......@@ -50,4 +50,15 @@
"web_url": "http://gitlab.dev/root",
"website_url": ""
}
,
"project": {
"id": 3,
"name": "Diaspora Project Site",
"description": "Project description",
"name_with_namespace": "Diaspora / Diaspora Project Site",
"path": "diaspora-project-site",
"path_with_namespace": "diaspora/diaspora-project-site",
"created_at": "2013-09-30T13:46:02Z"
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment