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

Receive plugins' versions with underscores. #699

Merged
merged 3 commits into from
Jan 27, 2022

Conversation

valenca
Copy link

@valenca valenca commented Jan 17, 2022

New jenkins plugin versions have underscores in them (example: https://plugins.jenkins.io/credentials/). The operator refuses configuration for such plug-ins as they do not match the existing regex.

Changes

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide for more details.

Reviewer Notes

If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS.

Release Notes

Describe any user facing changes here, or delete this block.

Examples of user facing changes:
- API changes
- Bug fixes
- Any changes in behavior

New jenkins plugin versions have underscores in them (example: https://plugins.jenkins.io/credentials/). The operator refuses configuration for such plug-ins as they do not match the existing regex.
@lemeurherve
Copy link
Member

lemeurherve commented Jan 19, 2022

May I suggest to add an additional version value with _ in https://github.com/jenkinsci/kubernetes-operator/blob/0f507409ccf3d5b01d9cdb8cb576c51648972baf/pkg/plugins/plugin_test.go like "1074.v60e6c29b_b_44b_"?

Adds a new test to check that versions with underscores are valid.
@valenca
Copy link
Author

valenca commented Jan 20, 2022

@lemeurherve Thanks for the suggestiong. Added exactly that example.

Copy link

@Sig00rd Sig00rd left a comment

Choose a reason for hiding this comment

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

pkg/plugins/plugin.go Outdated Show resolved Hide resolved
Make two related regexps more evidently similar to each other and re-order the symbols so that the - is not interpreted.
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.

None yet

3 participants