Class FileBinding

    • Constructor Detail

      • FileBinding

        @DataBoundConstructor
        public FileBinding​(String variable,
                           String credentialsId)
    • Method Detail

      • type

        protected Class<org.jenkinsci.plugins.plaincredentials.FileCredentials> type()
        Description copied from class: MultiBinding
        Type token.
        Specified by:
        type in class MultiBinding<org.jenkinsci.plugins.plaincredentials.FileCredentials>
      • write

        protected final FilePath write​(org.jenkinsci.plugins.plaincredentials.FileCredentials credentials,
                                       FilePath dir)
                                throws IOException,
                                       InterruptedException
        Description copied from class: AbstractOnDiskBinding
        Writes credentials under a given temporary directory, and returns their path (will be bound to the variable).
        Specified by:
        write in class AbstractOnDiskBinding<org.jenkinsci.plugins.plaincredentials.FileCredentials>
        Parameters:
        credentials - the credentials to bind
        dir - a temporary directory where credentials should be written. You can assume it has already been created, with secure permissions.
        Returns:
        the path to the on-disk credentials, to be bound to the variable
        Throws:
        IOException
        InterruptedException