Those directives are taken from the source code (e.g.,
https://github.com/jenkinsci/credentials-binding-plugin/blob/master/src/main/java/org/jenkinsci/plugins/credentialsbinding/impl/StringBinding.java#L65).
I don't think people will change those as they are used by many people and
it would be a breaking change.

On Wed, Dec 18, 2019 at 5:45 AM Chris Kilding <
[email protected]> wrote:

> Hello,
>
> The Jenkinsfile withCredentials directive has a number of binding type
> names (like `string`, `usernamePassword`, `certificate`). Are the type
> names are stable enough to reuse from other systems? Specifically, I might
> need to use them as type identifiers within credentials providers, to
> handle edge cases. If the binding type names are indeed stable, i.e. they
> will not change for the conceivable future, then they would be better than
> the obvious alternatives (like Java class names).
>
> Example of the directive:
>
> > withCredentials(string(credentialsId: 'mytoken', variable: 'TOKEN')) {
> >      // ...
> > }
>
> Regards,
>
> Chris
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/75b1396d-9719-4c53-b16a-b2acdf68bf89%40www.fastmail.com
> .
>


-- 
Website: http://earl-of-code.com

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAPiUgVdtoqLdKTr5%3D%3Dmk28-3SfvTTY%2BcMDV-2eu33WWTmL98yw%40mail.gmail.com.

Reply via email to