Skip to content

docker command line jira authentication issue #18

@ryanammoury

Description

@ryanammoury

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions