Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
155 changes: 69 additions & 86 deletions src/main/java/org/gitlab/api/GitlabAPI.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @author Vitezslav Zak
*/
public class GitlabBuildVariable {
public final static String URL = "/variables/";
public final static String URL = "/variables";

public GitlabBuildVariable() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

import com.fasterxml.jackson.annotation.JsonProperty;

public class GitlabBuild {
public class GitlabJob {

public final static String URL = "/builds";
public final static String URL = "/jobs";

private GitlabCommit commit;
private Float coverage;
Expand Down
24 changes: 12 additions & 12 deletions src/main/java/org/gitlab/api/models/GitlabProject.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ public class GitlabProject {
@JsonProperty("wiki_enabled")
private boolean wikiEnabled;

@JsonProperty("builds_enabled")
private boolean buildsEnabled;
@JsonProperty("jobs_enabled")
private boolean jobsEnabled;

@JsonProperty("shared_runners_enabled")
private boolean sharedRunnersEnabled;

@JsonProperty("public_builds")
private boolean publicBuilds;
@JsonProperty("public_jobs")
private boolean publicJobs;

@JsonProperty("runners_token")
private String runnersToken;
Expand Down Expand Up @@ -210,12 +210,12 @@ public void setWikiEnabled(boolean wikiEnabled) {
this.wikiEnabled = wikiEnabled;
}

public boolean isBuildsEnabled() {
return buildsEnabled;
public boolean isJobsEnabled() {
return jobsEnabled;
}

public void setBuildsEnabled(boolean buildsEnabled) {
this.buildsEnabled = buildsEnabled;
public void setJobsEnabled(boolean jobsEnabled) {
this.jobsEnabled = jobsEnabled;
}

public boolean isSharedRunnersEnabled() {
Expand All @@ -226,12 +226,12 @@ public void setSharedRunnersEnabled(boolean sharedRunnersEnabled) {
this.sharedRunnersEnabled = sharedRunnersEnabled;
}

public boolean hasPublicBuilds() {
return publicBuilds;
public boolean hasPublicJobs() {
return publicJobs;
}

public void setPublicBuilds(boolean publicBuilds) {
this.publicBuilds = publicBuilds;
public void setPublicJobs(boolean publicJobs) {
this.publicJobs = publicJobs;
}

public String getRunnersToken() {
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/gitlab/api/models/GitlabSSHKey.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

public class GitlabSSHKey {
public static String KEYS_URL = "/keys";
public static String DEPLOY_KEYS_URL = "/deploy_keys";

private Integer _id;
private String _title;
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/gitlab/api/GitlabAPITest.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void setup() throws IOException {

@Test
public void testAllProjects() throws IOException {
api.getAllProjects();
api.getProjects();
}

@Test
Expand Down