jenkinsci / jenkinsci/git-plugin

[JENKINS-73700] Jenkins Credential updated but git doesn't use it

Open
#3,853 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component:git-client-plugin component:git-plugin component:gitlab-api-plugin component:gitlab-plugin imported-jira-issue priority:critical resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

GitLab starting from 16.0 version does not have non-expiry access token. The original non-expiry token had become expired after one year. We recently updated the access token stored in the Jenkins Credential before the expiry. However, the updated access token was not correctly used.

The credential ci-bot is used but the log showing the actual credential being used is not ci-bot.

i.e. 

expected credential -> ci-bot:password1
actual credential used -> user1:password2


Originally reported by waynelwh, imported from: Jenkins Credential updated but git doesn't use it
  • status: Open
  • priority: Critical
  • component(s): git-client-plugin, git-plugin, gitlab-api-plugin, gitlab-plugin
  • label(s): plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 4
  • imported: 2025-12-02
Raw content of original issue

GitLab starting from 16.0 version does not have non-expiry access token. The original non-expiry token had become expired after one year. We recently updated the access token stored in the Jenkins Credential before the expiry. However, the updated access token was not correctly used.

The credential ci-bot is used but the log showing the actual credential being used is not ci-bot.

i.e. 

expected credential -> ci-bot:password1 actual credential used -> user1:password2

  • environment: Jenkins 2.452.2, GitLab Branch Source 704.vc7f1202d7e14, GitLab API 530-91.v1f9a_fda_d654f, Git 5.2.2, Git client plugin 5.0.0, Git Parameter Plug-In 0.9.19, Git server Plugin 126.v0d945d8d2b_39, Windows
1 attachment

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing credential selection with the listed Jenkins, GitLab Branch Source, GitLab API, Git, and git-client plugin versions on Windows. Inspect credential handling across the git-plugin and git-client-plugin components, then verify that updating ci-bot causes the expected credential to be used instead of user1.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, java
Domain
authentication, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.