Commit 11ab77bb authored by Tim Olshansky's avatar Tim Olshansky

Merge pull request #75 from Grogdunn/master

support for ssl verification in webhook
parents 3bbbaae1 2341a37b
......@@ -825,7 +825,7 @@ public class GitlabAPI {
return dispatch().to(tailUrl, GitlabProjectHook.class);
}
public GitlabProjectHook addProjectHook(Serializable projectId, String url, boolean pushEvents, boolean issuesEvents, boolean mergeRequestEvents) throws IOException {
public GitlabProjectHook addProjectHook(Serializable projectId, String url, boolean pushEvents, boolean issuesEvents, boolean mergeRequestEvents, boolean sslVerification) throws IOException {
String tailUrl = GitlabProject.URL + "/" + sanitizeProjectId(projectId) + GitlabProjectHook.URL;
return dispatch()
......@@ -833,6 +833,7 @@ public class GitlabAPI {
.with("push_events", pushEvents ? "true" : "false")
.with("issues_events", issuesEvents ? "true" : "false")
.with("merge_requests_events", mergeRequestEvents ? "true" : "false")
.with("enable_ssl_verification", sslVerification ? "true" : "false")
.to(tailUrl, GitlabProjectHook.class);
}
......
......@@ -24,6 +24,9 @@ public class GitlabProjectHook {
@JsonProperty("created_at")
private Date createdAt;
@JsonProperty("enable_ssl_verification")
private boolean sslVerificationEnabled;
public String getId() {
return id;
}
......@@ -79,4 +82,13 @@ public class GitlabProjectHook {
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public boolean isSslVerificationEnabled() {
return sslVerificationEnabled;
}
public void setSslVerificationEnabled(boolean sslVerificationEnabled) {
this.sslVerificationEnabled = sslVerificationEnabled;
}
}
Markdown is supported
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