-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
I'm able to authenticate on a Jenkins pipeline using the git-changelog-plugin this way :
withCredentials([usernamePassword(credentialsId: atlassianCredentialsId, passwordVariable: 'JIRA_PASSWORD', usernameVariable: 'JIRA_USERNAME')]) {
def templateString = readFile(file: templateFile)
def changelogString = gitChangelog(from: [type: 'COMMIT', value: sinceCommit],
jira: [issuePattern: '([A-Z]+-[0-9]+)', server: 'https://my-site.atlassian.net', username: env.JIRA_USERNAME, password: env.JIRA_PASSWORD],
returnType: 'STRING',
template: templateString)
However I'm not able to authenticate with the same server and credentials using docker command line
docker run --mount src="$(pwd)",target=/home/git-changelog-command-line,type=bind tomasbjerre/git-changelog-command-line:2.2.2 \
--from-revision $1 \
-je \
--jira-pattern "([A-Z]+-[0-9]+)" \
--jira-server "https://my-site.atlassian.net" \
--jira-username "jirausername" \
--jira-password "jirapassword" \
-std \
--template-content "$changelog_template"The resulting changelogs are similar, except I'm not getting the Jira Issue Type, Title and other info using the docker command line.
Any idea of what I might be doing wrong ?
Metadata
Metadata
Assignees
Labels
No labels