-
Notifications
You must be signed in to change notification settings - Fork 7
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
Remove Jenkins test harness from hpi file #18
Remove Jenkins test harness from hpi file #18
Conversation
jenkinsci/jenkins#8714 included in Jenkins 2.434 and later will refuse to load a plugin that includes the Jenkins test harness. The Jenkins test harness causes unexpected failures when it is included in a Jenkins plugin. Refer to the following issue reports for examples: * https://issues.jenkins.io/browse/JENKINS-65650 * https://issues.jenkins.io/browse/JENKINS-66060 * https://issues.jenkins.io/browse/JENKINS-72353 The additional benefit of the change is that it makes the plugin hpi file over 80% smaller. Before this change, the plugin hpi file had the following contents: 1136 META-INF/MANIFEST.MF 73 META-INF/maven/org.jenkins-ci.plugins/applitools-eyes/pom.properties 3153 META-INF/maven/org.jenkins-ci.plugins/applitools-eyes/pom.xml 34814 WEB-INF/lib/applitools-eyes.jar 353793 WEB-INF/lib/commons-codec-1.15.jar 588337 WEB-INF/lib/commons-collections-3.2.2.jar 327135 WEB-INF/lib/commons-io-2.11.0.jar 434678 WEB-INF/lib/commons-lang3-3.4.jar 380196 WEB-INF/lib/cssparser-0.9.16.jar 767140 WEB-INF/lib/httpclient-4.5.6.jar 326356 WEB-INF/lib/httpcore-4.4.10.jar 4079701 WEB-INF/lib/jenkins-test-harness-htmlunit-2.18-1.jar 108240 WEB-INF/lib/jetty-io-9.2.12.v20150709.jar 357855 WEB-INF/lib/jetty-util-9.2.12.v20150709.jar 125315 WEB-INF/lib/nekohtml-1.9.22.jar 15808 WEB-INF/lib/sac-1.3.jar 276420 WEB-INF/lib/serializer-2.7.2.jar 43776 WEB-INF/lib/websocket-api-9.2.12.v20150709.jar 36264 WEB-INF/lib/websocket-client-9.2.12.v20150709.jar 179845 WEB-INF/lib/websocket-common-9.2.12.v20150709.jar 3154938 WEB-INF/lib/xalan-2.7.2.jar 1367760 WEB-INF/lib/xercesImpl-2.11.0.jar 220536 WEB-INF/lib/xml-apis-1.4.01.jar 10963 WEB-INF/licenses.xml After this change, the plugin hpi file has the following contents: 1136 META-INF/MANIFEST.MF 73 META-INF/maven/org.jenkins-ci.plugins/applitools-eyes/pom.properties 2951 META-INF/maven/org.jenkins-ci.plugins/applitools-eyes/pom.xml 34479 WEB-INF/lib/applitools-eyes.jar 353793 WEB-INF/lib/commons-codec-1.15.jar 767140 WEB-INF/lib/httpclient-4.5.6.jar 326356 WEB-INF/lib/httpcore-4.4.10.jar 1814 WEB-INF/licenses.xml
@itaibh, @IdosApplitools, @danielputerman, and @nikita-andreev this plugin will no longer load into Jenkins versions 2.434 and later. It needs a new release with the changes in this pull request. |
@MarkEWaite thank you, but I now get this when trying to load it locally on Jenkins 2.439:
|
@MarkEWaite Ok, my bad. I had to delete the |
I don't see the problem that you see. Here are the steps that I took to try to duplicate the problem that you are seeing:
There is one surprise in that process for me. The applitools-eyes plugin version in the Jenkins plugin manager is shown as 1.14.1 even though there is a newer release of the plugin available from the Jenkins update center. I assume that means you released 1.15.0 and 1.15.1 but something went wrong and you were unable to push the release tags or the release commits to the repository. I'll submit a pull request to help you avoid that problem for future releases. |
That's great news. Thanks. Further improvements are included in: |
Remove Jenkins test harness HTMLUnit from the plugin hpi file
jenkinsci/jenkins#8714 included in Jenkins 2.434 and later will refuse to load a plugin that includes the Jenkins test harness.
The Jenkins test harness causes unexpected failures when it is included in a Jenkins plugin. Refer to the following issue reports for examples:
The additional benefit of the change is that it makes the plugin hpi file over 80% smaller.
Before this change, the plugin hpi file had the following contents:
After this change, the plugin hpi file has the following contents:
Testing done
Confirmed that compilation, test, and packaging of the plugin behaves as expected.
Submitter checklist