Class GitUsernamePasswordBinding

  • All Implemented Interfaces:
    ExtensionPoint, Describable<org.jenkinsci.plugins.credentialsbinding.MultiBinding<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>>, GitCredentialBindings

    public class GitUsernamePasswordBinding
    extends org.jenkinsci.plugins.credentialsbinding.MultiBinding<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
    implements GitCredentialBindings
    • Constructor Detail

      • GitUsernamePasswordBinding

        @DataBoundConstructor
        public GitUsernamePasswordBinding​(String gitToolName,
                                          String credentialsId)
    • Method Detail

      • getGitToolName

        public String getGitToolName()
      • type

        protected Class<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials> type()
        Specified by:
        type in class org.jenkinsci.plugins.credentialsbinding.MultiBinding<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
      • variables

        public Set<String> variables​(@NonNull
                                     Run<?,​?> build)
        Overrides:
        variables in class org.jenkinsci.plugins.credentialsbinding.MultiBinding<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
      • setCredentialPairBindings

        public void setCredentialPairBindings​(@NonNull
                                              com.cloudbees.plugins.credentials.common.StandardCredentials credentials,
                                              Map<String,​String> secretValues,
                                              Map<String,​String> publicValues)
        Description copied from interface: GitCredentialBindings
        Sets secret or public pair value(s)
        Specified by:
        setCredentialPairBindings in interface GitCredentialBindings
        Parameters:
        credentials - The credentials StandardCredentials. Cannot be null
        secretValues - The valuesMap to be hidden in build logs
        publicValues - The valuesMap to be visible in build logs