Skip to content

Artifactory plugin is incompatible with Jersey 3 changes in latest jenkins versions #961

@jakegt1

Description

@jakegt1

Describe the bug
Jenkins has required all plugins to adopt jersey3, using jersey3-api plugin. Having anything using jersey2-api causes errors such as:

java.lang.ClassCastException: Cannot cast org.glassfish.jersey.inject.hk2.Hk2InjectionManagerFactory to org.glassfish.jersey.internal.inject.InjectionManagerFactory

To Reproduce
Install artifactory plugin and some other jersey3 compatible plugin, e.g Gitlab plugin. Find intermittent errors in the gitlab plugin.

Expected behavior
No intermittent errors.

Screenshots

Versions

  • Jenkins Artifactory plugin version: 4.0.8
  • Jenkins operating system: Linux
  • Artifactory Version: 7.11.0

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions