automated plugin release#404
Conversation
| @QueryParameter String zone, | ||
| @QueryParameter long cleanfreq | ||
| ) { | ||
| public ListBoxModel doFillNameItems( |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check Warning
| @Restricted(DoNotUse.class) | ||
| @RequirePOST | ||
| public FormValidation doCheckName(@QueryParameter String value, | ||
| public FormValidation doCheckName( |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check Warning
| @OsAuthDescriptor.InjectOsAuth | ||
| @RequirePOST | ||
| public ListBoxModel doFillNameItems(@QueryParameter String name, @QueryParameter String endPointUrl, @QueryParameter boolean ignoreSsl, @QueryParameter String credentialsId, @QueryParameter String zone, @QueryParameter long cleanfreq) { | ||
| public ListBoxModel doFillNameItems( |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check Warning
| @Restricted(DoNotUse.class) | ||
| @RequirePOST | ||
| public FormValidation doCheckName(@QueryParameter String value, | ||
| public FormValidation doCheckName( |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check Warning
d5c315c to
998019a
Compare
mawinter69
left a comment
There was a problem hiding this comment.
looks good now from dependency side
69ec461 to
4953ddb
Compare
There was a problem hiding this comment.
the plugin still packs the jackson libraries. So you need to add exclusion to the 2 openstack4j dependencies:
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.databind</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>*</artifactId>
</exclusion>
and add a dependency to the jackson-api plugin
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>jackson2-api</artifactId>
</dependency>
| <dependency> | ||
| <groupId>org.jenkins-ci.plugins</groupId> | ||
| <artifactId>cloud-stats</artifactId> | ||
| <version>377.vd8a_6c953e98e</version> |
There was a problem hiding this comment.
version can be removed as it is in the bom
| <dependency> | ||
| <groupId>org.jenkins-ci.plugins</groupId> | ||
| <artifactId>config-file-provider</artifactId> | ||
| <version>3.7.1</version> |
There was a problem hiding this comment.
version can be removed as it is in the bom
| <dependency> | ||
| <groupId>io.jenkins</groupId> | ||
| <artifactId>configuration-as-code</artifactId> | ||
| <version>1967.va_968e15fd05b_</version> |
There was a problem hiding this comment.
version can be removed as it is in the bom
| <dependency> | ||
| <groupId>io.jenkins.configuration-as-code</groupId> | ||
| <artifactId>test-harness</artifactId> | ||
| <version>1967.va_968e15fd05b_</version> |
There was a problem hiding this comment.
version can be removed as it is in the bom.
| <!-- </dependency>--> | ||
| </dependencies> | ||
| <!-- Test Dependencies --> | ||
| <dependency> |
There was a problem hiding this comment.
hamcrest is provided by the parent pom. But removing this leads to test errors. So something to follow up on
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.mockito</groupId> |
There was a problem hiding this comment.
That is a quite old mockito version. So something to follow up on.
| <dependency> | ||
| <groupId>org.codehaus.plexus</groupId> | ||
| <artifactId>plexus-classworlds</artifactId> | ||
| <version>2.4.2</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.codehaus.plexus</groupId> | ||
| <artifactId>plexus-utils</artifactId> | ||
| <version>3.5.1</version> | ||
| </dependency> |
There was a problem hiding this comment.
Are the dependencies to plexus needed?
Tests are successful without them.
| </dependency> | ||
| <!-- Hardcoding upper-bound versions of dependencies --> | ||
| <dependency> | ||
| <groupId>org.jenkins-ci</groupId> |
There was a problem hiding this comment.
This dependency is not needed I think.
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.jenkins-ci</groupId> |
There was a problem hiding this comment.
This dependency is not needed I think.
|
With all the deps removed the hpi is down from 7 MiB to 2 MiB |
mawinter69
left a comment
There was a problem hiding this comment.
Please add an explicit dependency to
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>jackson2-api</artifactId>
</dependency>
Currently it will only work because dependent plugins depend on it as well.
mawinter69
left a comment
There was a problem hiding this comment.
Looks good from dependency perspective. Everything that is available as an api plugin is no longer packed in the hpi.
I can't really judge the other changes as I can't try out the plugin against a real openstack installation.
Thanks a lot. I am testing the #389 fix against a devstack instance. |
fc50d66 to
4a4c77f
Compare
4a4c77f to
9ce7a9d
Compare
9ce7a9d to
8da67a9
Compare
Align repository with
Testing done
Submitter checklist