jenkinsci / jenkinsci/gitlab-plugin
gitlabCommitStatus does not work with gitlab 16.0.1
- Dominant language
- Java
- Stars
- 1.4k
- Forks
- 615
- Avg merge
- 4h 32m
- Merged PRs (30d)
- 10
Description
### Jenkins and plugins versions report
Any attempt to update the commit status on Gitlab (version 16.0.1) fails with the error code "Failed to retrieve projectId for project ".
After investigation I found out that it is caused by an api change on the gitlab side. The endpoint "/projects/" no more works properly with project name as value, only project id are accepted instead.
The problem occurs on the version [1.7.14] of gitlab-plugin
### What Operating System are you using (both controller, and any agents involved in the problem)?
Ubuntu 22.04
### Reproduction steps
1. Install gitlab plugin as recommended in the docs
2. create jenkins job that update the build status on the gitlab commit
3. run the job
### Expected Results
The jenkins gitlab plugin is able to pass the build status to the gitlab commit
### Actual Results
Gitlab responds with a 404 error code when attempting to fetch the project data by "name with namespace"
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.