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

Guard against no matches for other custom regexs. #224

Open
kmbisset89 opened this issue Apr 8, 2022 · 0 comments
Open

Guard against no matches for other custom regexs. #224

kmbisset89 opened this issue Apr 8, 2022 · 0 comments

Comments

@kmbisset89
Copy link

kmbisset89 commented Apr 8, 2022

in NetflixOSSStrategies would it be possible to add this logic?

String shortenedBranch = "" try { shortenedBranch = (state.currentBranch.name =~ nebulaReleaseExtension.shortenedBranchPattern)[0][1] } catch (Exception ignored) { // no match found so adding no information }

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

No branches or pull requests

1 participant