-
Notifications
You must be signed in to change notification settings - Fork 15
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
Recipe to update SCM url #538
Comments
Heyy @jonesbusy,Can I work on this issue? |
Sure nobody started it. On most jenkins repository we don't assign issues. So feel free to work on any on it. |
See #549 (comment) if the goal is not clear |
I suggest to take a look at the current code, tests and understand how plugin modernizer is working and calling the maven rewrite plugin via Maven Invoker This recipe need most likely java code to manage the logic of scm tags. I don't think it can be achieved with declarative recipe only Please take a look at already implemented recipes and visitors to understand how it's working. |
Hello sir, I've added this recipe in the recipes.yml file in plugins-modernizer-core in META-INF/rewrite folder : type: specs.openrewrite.org/v1beta/recipe
I've also created both UpdateScmUrl.java file(in recipes folder) and UpdateScmUrlVisitor.java file(in visitors folder) based on the existing files. What am i missing? Thank you. |
Perhaps this PR could help you https://github.com/jenkins-infra/plugin-modernizer-tool/pull/512/files#diff-31bafcc7a416e95c87a0df2a03a0a0267695c6740aa29122502a216fb0518135 I suggest to follow to test driven development approach Write the tests first. What the pom should is before and after applying the recipe. Run it via maven or your IDE. Also I don't know where you found |
Ok sir, Understood.
Sorry sir, It was ChangeTagValue. |
Hello sir, I would like some clarity on this
That's how the other recipes were also implemented so i was wondering if it's the same here. |
Yes that's how you can define a top level recipe for plugin modernizer but is not mandatory if the recipe is not exposed directly by plugin modernizer (and used only in a list of |
The recipe is throwing an error. Check logs before for more details. Feel free to open a PR if you think it deserve a review |
Fixed by #560 |
What feature do you want to see added?
An OpenRewrite recipe to ensure scm tags are set correctly for plugin.
See https://www.jenkins.io/doc/developer/tutorial-improve/update-scm-url/ for the context
Test should be provided
Upstream changes
No response
Are you interested in contributing this feature?
No response
The text was updated successfully, but these errors were encountered: