Class GiteaServer
- All Implemented Interfaces:
Describable<GiteaServer>
Represents a Gitea Server instance.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGiteaServer(String displayName, String serverUrl, boolean manageHooks, String credentialsId) Deprecated.GiteaServer(String displayName, String serverUrl, boolean manageHooks, String credentialsId, String aliasUrl) Constructor -
Method Summary
Modifier and TypeMethodDescriptioncom.cloudbees.plugins.credentials.common.StandardCredentialsLooks up theStandardCredentialsto use for auto-management of hooks.Returns thegetServerUrl()that the Gitea server believes it has when publishing webhook events ornullif this is a normal environment and Gitea is accessed through one true URL and has been configured with that URL.final StringReturns theIdCredentials.getId()of the credentials to use for auto-management of hooks.final booleanReturnstrueif and only if Jenkins is supposed to auto-manage hooks for this end-point.
-
Constructor Details
-
GiteaServer
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public GiteaServer(@CheckForNull String displayName, @NonNull String serverUrl, boolean manageHooks, @CheckForNull String credentialsId) Deprecated.Constructor- Parameters:
displayName- Optional name to use to describe the end-point.serverUrl- The URL of this Gitea ServermanageHooks-trueif and only if Jenkins is supposed to auto-manage hooks for this end-point.credentialsId- TheIdCredentials.getId()of the credentials to use for auto-management of hooks.
-
GiteaServer
@DataBoundConstructor public GiteaServer(@CheckForNull String displayName, @NonNull String serverUrl, boolean manageHooks, @CheckForNull String credentialsId, @CheckForNull String aliasUrl) Constructor- Parameters:
displayName- Optional name to use to describe the end-point.serverUrl- The URL of this Gitea ServermanageHooks-trueif and only if Jenkins is supposed to auto-manage hooks for this end-point.credentialsId- TheIdCredentials.getId()of the credentials to use for auto-management of hooks.aliasUrl- The URL this Gitea Server thinks it is at.- Since:
- 1.0.5
-
-
Method Details
-
getDisplayName
-
getServerUrl
-
isManageHooks
public final boolean isManageHooks()Returnstrueif and only if Jenkins is supposed to auto-manage hooks for this end-point.- Returns:
trueif and only if Jenkins is supposed to auto-manage hooks for this end-point.
-
getCredentialsId
Returns theIdCredentials.getId()of the credentials to use for auto-management of hooks.- Returns:
- the
IdCredentials.getId()of the credentials to use for auto-management of hooks.
-
getAliasUrl
Returns thegetServerUrl()that the Gitea server believes it has when publishing webhook events ornullif this is a normal environment and Gitea is accessed through one true URL and has been configured with that URL.- Returns:
- the
getServerUrl()that the Gitea server believes it has when publishing webhook events ornull - Since:
- 1.0.5
-
credentials
@CheckForNull public com.cloudbees.plugins.credentials.common.StandardCredentials credentials()Looks up theStandardCredentialsto use for auto-management of hooks.- Returns:
- the credentials or
null.
-
getDescriptor
-
GiteaServer(String, String, boolean, String, String)