-
Notifications
You must be signed in to change notification settings - Fork 619
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functionality to configure multiple GitLab instances
- Loading branch information
1 parent
d9961be
commit 5c49504
Showing
14 changed files
with
427 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/main/java/com/dabsquared/gitlabjenkins/connection/GitLabConnection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.dabsquared.gitlabjenkins.connection; | ||
|
||
import org.kohsuke.stapler.DataBoundConstructor; | ||
|
||
/** | ||
* @author Robin Müller | ||
*/ | ||
public class GitLabConnection { | ||
|
||
private final String name; | ||
private final String url; | ||
private final String apiToken; | ||
private final boolean ignoreCertificateErrors; | ||
|
||
@DataBoundConstructor | ||
public GitLabConnection(String name, String url, String apiToken, boolean ignoreCertificateErrors) { | ||
this.name = name; | ||
this.url = url; | ||
this.apiToken = apiToken; | ||
this.ignoreCertificateErrors = ignoreCertificateErrors; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
public String getApiToken() { | ||
return apiToken; | ||
} | ||
|
||
public boolean isIgnoreCertificateErrors() { | ||
return ignoreCertificateErrors; | ||
} | ||
} |
Oops, something went wrong.