-
-
Notifications
You must be signed in to change notification settings - Fork 90
Feat/Support for local plugin proxy #277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 17 commits
16e2452
94cd34b
eef318e
bd50cf8
2bce0d1
9ffa565
b10ce61
b06ef6f
ed32801
7af49d5
ae547e4
09bac61
9b4b793
a09c19e
be436e6
fc028d1
7f5db72
2b87fb5
b728aba
4dd5245
29db0dd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,7 @@ | |
| import java.util.List; | ||
| import javax.annotation.Nonnull; | ||
| import hudson.Extension; | ||
| import hudson.ProxyConfiguration; | ||
| import hudson.Util; | ||
| import hudson.model.AbstractDescribableImpl; | ||
| import hudson.model.Descriptor; | ||
|
|
@@ -183,6 +184,11 @@ public static class DescriptorImpl extends Descriptor<Webhook> { | |
| private String globalUrl; | ||
| private String globalName; | ||
|
|
||
| private String ip; | ||
| private String port; | ||
| private String username; | ||
| private String password; | ||
|
|
||
| public DescriptorImpl() { | ||
| load(); | ||
| } | ||
|
|
@@ -193,6 +199,43 @@ public String getDisplayName() { | |
| return "Webhook"; | ||
| } | ||
|
|
||
| public String getIp() { | ||
| return Util.fixNull(ip); | ||
| } | ||
|
|
||
| @DataBoundSetter | ||
| public void setIp(String ip) { | ||
|
||
| this.ip = Util.fixNull(ip); | ||
| } | ||
|
|
||
| public String getUsername() { | ||
| return Util.fixNull(username); | ||
| } | ||
|
|
||
| @DataBoundSetter | ||
| public void setUsername(String username) { | ||
| this.username = Util.fixNull(username); | ||
| } | ||
|
|
||
| public String getPassword() { | ||
| return Util.fixNull(password); | ||
| } | ||
|
|
||
| @DataBoundSetter | ||
| public void setPassword(String password) { | ||
| this.password = Util.fixNull(password); | ||
| } | ||
|
|
||
| @Nonnull | ||
| public String getPort() { | ||
|
||
| return Util.fixNull(port); | ||
| } | ||
|
|
||
| @DataBoundSetter | ||
| public void setPort(String port) { | ||
| this.port = Util.fixNull(port); | ||
| } | ||
|
|
||
| public int getDefaultTimeout() { | ||
| return Webhook.DEFAULT_TIMEOUT; | ||
| } | ||
|
|
@@ -201,7 +244,7 @@ public FormValidation doCheckUrl(@QueryParameter String value) { | |
| return FormUtils.formValidateUrl(value); | ||
| } | ||
|
|
||
| public FormValidation doCheckGlobalUrl(@QueryParameter String value) { | ||
| public FormValidation doCheckGlobalUrl(@QueryParameter String value) { | ||
| if(StringUtils.isNotBlank(value)) { | ||
| return FormUtils.formValidateUrl(value); | ||
| } else { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ | |
| This section defines for which build statuses the notification is sent. | ||
| </f:description> | ||
|
|
||
| <f:entry title="Notify Build Start" field="startNotification"> | ||
| <f:entry title="Notify Build Start" field="startNotification" > | ||
|
||
| <f:checkbox/> | ||
| </f:entry> | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,5 +7,25 @@ | |
| <f:entry title="Name" field="globalName"> | ||
| <f:textbox/> | ||
| </f:entry> | ||
| <f:advanced> | ||
| <f:section title="Proxy Config"> | ||
|
||
| <f:description> | ||
| This section defines the Office365Connector proxy settings that will apply to all webhook notifications. This | ||
| proxy configuration will be prioritized over the Jenkins global proxy config | ||
rockleez marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| </f:description> | ||
| <f:entry title="IP" field="ip"> | ||
| <f:textbox/> | ||
| </f:entry> | ||
| <f:entry title="Port" field="port"> | ||
| <f:textbox/> | ||
| </f:entry> | ||
| <f:entry title="Username" field="username"> | ||
| <f:textbox/> | ||
| </f:entry> | ||
| <f:entry title="Password" field="password"> | ||
| <f:password/> | ||
| </f:entry> | ||
| </f:section> | ||
| </f:advanced> | ||
| </f:section> | ||
| </j:jelly> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| <div align="help">The IP address of the proxy server</div> | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| <div align="help">This field works in conjunction with the ip field to specify the HTTP proxy port.</div> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| <div align="help">This field works in conjunction with the proxy server field to specify the username used to authenticate with the proxy.</div> |
Uh oh!
There was an error while loading. Please reload this page.