RegistrySourceTrigger.DefinitionStages.RepositoryBranchAndAuth Interface

public static interface RegistrySourceTrigger.DefinitionStages.RepositoryBranchAndAuth

The stage of the container registry source trigger definition allowing to specify the branch of the repository and authentication credentials if needed to interact with the source control repository.

Method Summary

Modifier and Type Method and Description
abstract SourceTriggerAttachable withRepositoryAuthentication(TokenType tokenType, String token)

The function that allows the user to input the type of the token used for authentication and the token itself to authenticate to the source control repository.

abstract SourceTriggerAttachable withRepositoryAuthentication(TokenType tokenType, String token, String refreshToken, String scope, int expiresIn)

The function that allows the user to input the type of the token used for authentication and the token itself to authenticate to the source control repository.

abstract SourceTriggerAttachable withRepositoryBranch(String branch)

The function that specifies the branch of the respository to use.

Method Details

withRepositoryAuthentication

public abstract RegistrySourceTrigger.DefinitionStages.SourceTriggerAttachable withRepositoryAuthentication(TokenType tokenType, String token)

The function that allows the user to input the type of the token used for authentication and the token itself to authenticate to the source control repository.

Parameters:

tokenType - the type of the token used to authenticate to the source control repository.
token - the token used to authenticate to the source control repository.

Returns:

the next stage of the container registry source trigger definition.

withRepositoryAuthentication

public abstract RegistrySourceTrigger.DefinitionStages.SourceTriggerAttachable withRepositoryAuthentication(TokenType tokenType, String token, String refreshToken, String scope, int expiresIn)

The function that allows the user to input the type of the token used for authentication and the token itself to authenticate to the source control repository.

Parameters:

tokenType - the type of the token used to authenticate to the source control repository.
token - the token used to authenticate to the source control repository.
refreshToken - the token that is used to refresh the access token.
scope - the scope of the access token.
expiresIn - time in seconds that the token remains valid.

Returns:

the next stage of the container registry source trigger definition.

withRepositoryBranch

public abstract RegistrySourceTrigger.DefinitionStages.SourceTriggerAttachable withRepositoryBranch(String branch)

The function that specifies the branch of the respository to use.

Parameters:

branch - the repository branch.

Returns:

the next stage of the container registry source trigger definition.

Applies to