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

Fix load error #7

Closed
wants to merge 2 commits into from
Closed

Fix load error #7

wants to merge 2 commits into from

Conversation

Konboi
Copy link
Contributor

@Konboi Konboi commented Oct 28, 2024

Context

While I was implementing this plugin, a plugin loading error occurred.

image

First, I tried to update v2.361.4 because Pipeline API required it

https://gyazo.konboi.com/e588d921ce117e8781b7763e22b5efca.png

However, the error still occurred. So, I updated to v2.387.3.

image
image
image

Unfortunately, error wasn't resolved

image
image

Finally, I updated to the Jenkins version to v2.401.3 and loading error was resolved.

Ask

  • Could you try to reproduce this issue on your local environment? If you cannot reproduce this issue, I'll fix my local env.
  • Honestly, I'm not sure these version combinations and what should we choose the Jenkins version. Could you review around that carefully?

@Konboi Konboi requested a review from kohsuke October 28, 2024 03:05
<source>1.8</source>
<target>1.8</target>
<source>11</source>
<target>11</target>
Copy link
Contributor Author

@Konboi Konboi Oct 28, 2024

Choose a reason for hiding this comment

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

Can we use Java v11?

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Base automatically changed from for-development to main October 28, 2024 22:48
@@ -16,8 +16,8 @@
<revision>1.0</revision>
<changelist>-SNAPSHOT</changelist>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
<jenkins.version>2.222.4</jenkins.version>
Copy link
Contributor

Choose a reason for hiding this comment

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

We intentionally depend on older version of Jenkins in order to maintain compatible with a wide range of Jenkins. There's nothing in this plugin that requires new version of Jenkins, so it's important to stick to the current base Jenkins version.

@kohsuke
Copy link
Contributor

kohsuke commented Oct 28, 2024

Jenkins store everything in a directory, called "$JENKINS_HOME", including all the plugins installed. When you are developing a plugin like this, $JENKINS_HOME is ./work.

When I start Jenkins clean with empty home, I do not get any errors, which suggests you probably have accidentally updated some plugin versions. Without the logs showing the plugin loading failure, it's hard to precisely pin down why, but probably there's no point.

I suggest you start by rm -rf ./work/plugins which just wipes the plugins, forcing the plugin dev environment to start with its default set of compatible plugins. I believe that should fix the problem.

@kohsuke kohsuke closed this Oct 28, 2024
@Konboi
Copy link
Contributor Author

Konboi commented Oct 28, 2024

thank you, I'll try to do rm -rf ./work/plugins.

@Konboi
Copy link
Contributor Author

Konboi commented Oct 28, 2024

Thank you, the original error was resolved!

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.

2 participants