Skip to content

Conversation

zbynek
Copy link

@zbynek zbynek commented Sep 14, 2025

Partial fix for https://issues.jenkins.io/browse/JENKINS-76091

Closes #114
Closes #113

Unlike #114 this also updates BOM to latest to resolve some upper bound issues. The latest BOM requires Jenkins 2.479.3 because of

io.jenkins.plugins:json-api:jar:20250517-153.vc8a_a_d87c0ce3 requires Jenkins 2.479.3 or higher
so the baseline is increased here as well.

I picked a more conservative baseline increment because the recently relesed Jackson API plugin breaks compatibility with this plugin and it has 2.479.1 baseline.

Testing done

Automated tests passing.

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • [n/a] Ensure you have provided tests that demonstrate the feature works or the issue is fixed

@zbynek zbynek marked this pull request as ready for review September 18, 2025 07:07
@jmini
Copy link
Contributor

jmini commented Sep 21, 2025

@zbynek as the maintainer of GitLab4J I have been asked in issue gitlab4j/gitlab4j-api#1280 to create a 5.8.1 release that is still on the 5.x.x stream and removes the usage of PropertyNamingStrategy to be compatible with newer Jackson version and still be on Jersey 2.

From my understanding some installations are broken today (see jenkinsci/gitlab-branch-source-plugin#504)

Maybe you can use this 5.8.1 version as a emergency fix until you have found a way forward with Jersey 3.

@jonesbusy jonesbusy mentioned this pull request Sep 21, 2025
6 tasks
@jonesbusy
Copy link
Contributor

Thanks! Not a maintainer, so not my decision

In the meanwhile I've open #122

Copy link
Member

@alecharp alecharp left a comment

Choose a reason for hiding this comment

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

This still requires a release of jersey3-api plugin and jenkinsci/jackson2-api-plugin#312 to be merged.

<dependencies>
<dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>javax-activation-api</artifactId>
Copy link
Member

Choose a reason for hiding this comment

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

This needs to be replaced by jakarta-activation-api

Suggested change
<artifactId>jakarta-activation-api</artifactId>

<artifactId>gitlab4j-api</artifactId>
<version>${revision}</version>
<exclusions>
<!-- Provided by javax-activation-api plugin -->
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<!-- Provided by jakarta-activation-api plugin -->

<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
</exclusion>
<!-- Provided by jersey2-api plugin -->
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<!-- Provided by jersey3-api plugin -->

<groupId>io.jenkins.plugins</groupId>
<artifactId>jersey2-api</artifactId>
<artifactId>jersey3-api</artifactId>
<version>3.1.11-2.v4a_b_db_cf4557b_</version>
Copy link
Member

Choose a reason for hiding this comment

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

I opened jenkins-infra/repository-permissions-updater#4663 so that I can release jersey3-api and then add it in BOM.

Suggested change
<version>3.1.11-2.v4a_b_db_cf4557b_</version>
<!-- TODO until jersey3-api is in BOM -->
<version>3.1.11-2.v4a_b_db_cf4557b_</version>

Comment on lines +141 to +144
<repository>
<id>incrementals</id>
<url>https://repo.jenkins-ci.org/incrementals/</url>
</repository>
Copy link
Member

Choose a reason for hiding this comment

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

That shouldn't be required as there is

-Pconsume-incrementals

@alecharp
Copy link
Member

alecharp commented Oct 6, 2025

@zbynek do you think you can revisit this pull request?

@zbynek
Copy link
Author

zbynek commented Oct 6, 2025

@alecharp thanks for your feedback, I'll look into those suggestions once jersey3-api is released.

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.

4 participants