Skip to content

gitlabCommitStatus does not work with gitlab 16.0.1Β #1498

@rlagoue

Description

@rlagoue

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugFor changelog: Minor bug. Will be listed after features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions