Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing git client dependency #410

Closed
rishiv5 opened this issue Apr 11, 2024 · 2 comments · Fixed by #413
Closed

Missing git client dependency #410

rishiv5 opened this issue Apr 11, 2024 · 2 comments · Fixed by #413
Assignees
Labels
kind/bug Bug related issue
Milestone

Comments

@rishiv5
Copy link

rishiv5 commented Apr 11, 2024

Describe the bug
Jenkins startup shows the following error when loading datadog plugin:

WARNING h.ExtensionFinder$GuiceFinder$SezpozModule#configure: Failed to load org.datadog.jenkins.plugins.datadog.listeners.DatadogSCMListener
java.lang.ClassNotFoundException: org.jenkinsci.plugins.gitclient.GitClient
...
Caused: java.lang.NoClassDefFoundError: org/jenkinsci/plugins/gitclient/GitClient

Looking into it further, I noticed that the datadog plugin imports the git-client plugin here but does not explicitly define a dependency in the pom.xml. Digging further into the dependency chain, it seems that the datadog plugin relied on an implicit dependency to git-client plugin through the pipeline-model-definition plugin. However, in their latest update, pipeline-model-definition no longer includes git-client as a dependency.

Proposal: Explicitly add git-client as a dependency of datadog plugin to ensure that git-client is loaded correctly during startup.

severity/normal

To Reproduce
Check Jenkins spin up logs or plugin list when installing the latest versions of datadog and pipeline-model-definition.

Expected behavior
Jenkins should contain the git-client plugin (via dependency resolution) if datadog plugin is installed.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment and Versions (please complete the following information):
Jenkins LTS 2.440.x
Pipeline: Declarative plugin (pipeline-model-definition) version after merge of jenkinsci/pipeline-model-definition-plugin#706

@nikita-tkachenko-datadog
Copy link
Collaborator

The fix has been released in the plugin v6.0.3. Please try updating and let me know if the issue persists. Thank you!

@rishiv5
Copy link
Author

rishiv5 commented Apr 12, 2024

Seems to be resolved!

@rishiv5 rishiv5 closed this as completed Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Bug related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants