-
Notifications
You must be signed in to change notification settings - Fork 53
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
Update hooks to make more plugins works properly with PCT (GitHub, Pipeline: REST API, Jenkins Design Language) #185
Conversation
c15cfe9
to
aaa8a30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BlueOcean
filter is too aggressive IMO. it will match all components with BO in the group ID, Could we limit it to a JDL case only?
@@ -45,8 +46,9 @@ | |||
private String connectionUrl; | |||
private List<String> warningMessages = new ArrayList<String>(); | |||
|
|||
public PomData(String artifactId, @CheckForNull String packaging, String connectionUrl, @CheckForNull MavenCoordinates parent){ | |||
public PomData(String artifactId, @CheckForNull String packaging, String connectionUrl, @CheckForNull MavenCoordinates parent, String groupId){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retain binary compatibility?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's used outside? But worth to verify that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is only used in this repo, so I guess it is fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can live with that
aaa8a30
to
8561f4e
Compare
return isPSVPlugin(info); | ||
} | ||
|
||
public static boolean isPSVPlugin(Map<String, Object> moreInfo) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my opinion a longer name wouldn't hurt (you need to look at the code to understand which plugin it is).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed @varyvol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed!
@@ -45,8 +46,9 @@ | |||
private String connectionUrl; | |||
private List<String> warningMessages = new ArrayList<String>(); | |||
|
|||
public PomData(String artifactId, @CheckForNull String packaging, String connectionUrl, @CheckForNull MavenCoordinates parent){ | |||
public PomData(String artifactId, @CheckForNull String packaging, String connectionUrl, @CheckForNull MavenCoordinates parent, String groupId){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's used outside? But worth to verify that.
8561f4e
to
3a1e55b
Compare
I believe that is already solved, now checks also the artifactId, here we can be less or more agressive, in one case we may run the hook for a wrong plugin, in another we may not run the hook for a needed plugin... Now we are in the second position which I believe is better and we will not break previously working plugins so approving it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My blocker comment was addressed
This PR is about making plugins working with the PCT that needs hooks, special tags and so on.
Fixes included:
jenkins-design-language
module in blueoceangithub
pluginpipeline-rest-api