Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(buildDockerAndPublishImage): correct git credential config to tag on Windows #395

Merged

Conversation

lemeurherve
Copy link
Member

@lemeurherve lemeurherve commented May 31, 2022

By setting Git Credential Manager store to plaintext and by disabling its interactive prompt, we avoid the following error when trying to push git tag on Windows:

fatal: Unable to persist credentials with the 'wincredman' credential store.

Additionally:

  • Concurrent builds are now disabled on primary branch to avoid tag conflicts between successive builds.
    Alas, this won't be enough in case we're activating semver for images built in parallel like in https://github.com/jenkins-infra/docker-inbound-agents/blob/main/Jenkinsfile_k8s, and additional PR to include the image name in the tag is needed & incoming
  • The next version is shown even on PR
  • The default gitCredential to use is set to the Github App github-app-infra

Related: jenkins-infra/helpdesk#2873

@lemeurherve lemeurherve changed the title fix: credential.helper again fix(buildDockerAndPublishImage): correct git credential config to be abble to tag on Windows May 31, 2022
@lemeurherve lemeurherve marked this pull request as ready for review May 31, 2022 11:23
@lemeurherve lemeurherve requested a review from a team as a code owner May 31, 2022 11:23
@lemeurherve lemeurherve changed the title fix(buildDockerAndPublishImage): correct git credential config to be abble to tag on Windows fix(buildDockerAndPublishImage): correct git credential config to tag on Windows May 31, 2022
lemeurherve pushed a commit to lemeurherve/pipeline-library that referenced this pull request May 31, 2022
lemeurherve pushed a commit to lemeurherve/pipeline-library that referenced this pull request May 31, 2022
Copy link
Contributor

@dduportal dduportal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@lemeurherve lemeurherve merged commit 6a8958a into jenkins-infra:master May 31, 2022
@lemeurherve lemeurherve deleted the fix-credential-helper-helpdesk-2873 branch May 31, 2022 15:44
lemeurherve pushed a commit to lemeurherve/pipeline-library that referenced this pull request May 31, 2022
dduportal added a commit that referenced this pull request May 31, 2022
Close #396
Follow-up of #395

Co-authored-by: Damien Duportal <damien.duportal@gmail.com>
lemeurherve added a commit to lemeurherve/pipeline-library that referenced this pull request Jun 1, 2022
lemeurherve added a commit to lemeurherve/pipeline-library that referenced this pull request Jun 1, 2022
Close jenkins-infra#396
Follow-up of jenkins-infra#395

Co-authored-by: Damien Duportal <damien.duportal@gmail.com>
smerle33 pushed a commit to smerle33/pipeline-library that referenced this pull request Jan 16, 2024
smerle33 pushed a commit to smerle33/pipeline-library that referenced this pull request Jan 16, 2024
Close jenkins-infra#396
Follow-up of jenkins-infra#395

Co-authored-by: Damien Duportal <damien.duportal@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants