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

Optional plugins missing from update center should not fail installation #296

Merged
merged 2 commits into from
Mar 3, 2021

Conversation

yabberyabber
Copy link
Contributor

@yabberyabber yabberyabber commented Mar 2, 2021

When resolving plugin, we will eagerly check the update center
for plugin metadata, even when that plugin is optional. When the
plugin is missing from update center, we end up failing the
installation.

This does not make sense for optional plugins. These plugins are
likely never going to be installed, so it isn't a problem that
we are missing some metadata. Instead of failing the build, we
just print a warning.

If another plugin does depend on this missing plugin in a
non-optional way, we will fail the installation at that point.

Fixes #294

When resolving plugin, we will eagerly check the update center
for plugin metadata, even when that plugin is optional. When the
plugin is missing from update center, we end up failing the
installation.

This doe snot make sense for optional plugins. These plugins are
likely never going to be installed, so it isn't a big deal that
we are missing some metadata. Instead of failing the build, we
just print a warning.

If another plugin does depend on this missing plugin in a
non-optional way, we will fail the installation at that point.
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
@yabberyabber
Copy link
Contributor Author

@timja I think this build error is a transient error. How can I retrigger?

@timja
Copy link
Member

timja commented Mar 2, 2021

@timja I think this build error is a transient error. How can I retrigger?

You can close your PR wait a few seconds and open it is the easiest if you don't have write access,

I've re-triggered for you though

@timja
Copy link
Member

timja commented Mar 2, 2021

it failed a few times, i've deleted that agent =/

@timja timja added the bug Something isn't working label Mar 3, 2021
@timja timja changed the title Optional plugins missing from update center should not fail installation -- fixes #294 Optional plugins missing from update center should not fail installation Mar 3, 2021
@timja timja merged commit d8d77f9 into jenkinsci:master Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optional dependencies should not fail an installation when unfindable
2 participants