On Thu, Apr 4, 2019 at 6:52 AM Daniel Beck <
m...@beckweb.net> wrote:
> Create a GlobalConfiguration
Easiest to start with
https://github.com/jenkinsci/archetypes#usage
even if you throw away the toy plugin afterwards.
I am not sure what kind of “credentials” you are referring to here. To
validate a token you would I guess want Jenkins to store some sort of
public key, or simply a token hash (you could use
`org.mindrot.jbcrypt.BCrypt`). If you do want to protect a public
key/hash a bit more, save it as a `Secret` rather than a `String`.
When we talk about “credentials” we usually refer specifically to
https://github.com/jenkinsci/credentials-plugin/blob/master/docs/README.adoc
which should not be necessary if Jenkins itself is not retaining
anything especially secret. An `IdCredentials.id` would imply that you
expect a secret value to potentially be used in multiple places or
even loaded from Vault or a Kubernetes `Secret`, which seems unlikely
in this case.