Closed nemui closed 4 years ago
fixed!
Releasing this as 2.22. Did not have much time to test it.
Nice!
Providing credentials id for basic auth will probably not work, I'm usually using withCredentials wrapper. If anyone misses this feature - it can easily be added.
This should work:
withCredentials([string(credentialsId: 'mycredentialsid', variable: 'tokenVariable')]) {
def changelogContext = gitChangelog returnType: 'CONTEXT',
from: [type: 'REF', value: 'git-changelog-1.50'],
to: [type: 'REF', value: 'master'],
jira: [issuePattern: 'JENKINS-([0-9]+)\\b', basicAuthString: tokenVariable, server: '...']
}
For sure - this is exactly how I am using it. Looking at the source code, I got the impression that username/password for Jira support Jenkins credentials in a more advance way?
Ah right! I see what you mean.
Yes, but I don't mind. I assume most people use pipeline anyway and I don't see any point in doing it that way when using pipelines.
@nemui did you notice the failure?