How to set an environment variable in Jenkins DSL using the Credentials Binding plugin? -
i have created credential in jenkins called azure_client_id. have "credentials binding plugin" installed.
if create job manually in ui able select binding environment , select secret text type.
i want replicate in jobs dsl script. have found following snippet very close want do:
job('example-2') { wrappers { credentialsbinding { usernamepassword('password', 'jarsign-keystore') } } } however credential want inject secret text , cannot find function is, e.g. instead of usernamepassword. know should please?
Comments
Post a Comment