Reputation: 1
I've been trying to provide some tokens through CasC (BitBucket Plugin) but every time the Jenkins instance restarted then the tokens are not working. As I see that is happening because Jenkins use different salt and the Hash is changing. How i can provide in groovy the token in order to produce the secret ?
Upvotes: 0
Views: 1269
Reputation: 1962
I dont use BitBucket but here is how I do this for Slack
---
credentials:
system:
domainCredentials:
- credentials:
- string:
description: "Slack auth token"
scope: GLOBAL
id: "slack-token"
secret: ${slack-token}
unclassified:
slackNotifier:
teamDomain: "apr-1985-slack-space"
tokenCredentialId: slack-token
This is using the AWS SSM plugin to pull the credential out of the Parameter Store and add them to Jenkins.
Upvotes: 0