-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Jenkins 2.589
Compress artifacts 109.v98a_db_d3cb_72c
Other plugins as noted in attached plugins.txt file
The compress artifacts plugin 109.v98a_db_d3cb_72c and earlier fails and reports a stack trace when run with Jenkins 2.489 and later. The stack trace includes:
2024-12-10 20:46:04.938+0000 [id=77] WARNING h.i.i.InstallUncaughtExceptionHandler#handleException: Caught unhandled exception with ID 76708d5b-5ac8-4994-898c-6293b87aba43 org.apache.commons.jelly.JellyTagException: jar:file:/home/mwaite/bugs/JENKINS-xxxxx/war/WEB-INF/lib/jenkins-core-2.489.jar!/hudson/model/Job/index.jelly:62:39: <st:include> org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream Caused by: java.lang.NoClassDefFoundError: org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream Caused by: java.lang.ClassNotFoundException: org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream
The commons compress library was removed from Jenkins 2.489. The compress artifacts plugin needs to be updated to use the commons compress API plugin instead of directly relying on the commons compress library
Showing the issue
Steps to show the issue:
- Create a plugins.txt
file that lists the precise plugins installed and uncomment the broken version of compress-artifacts and comment the incremental version
- Create a jenkins.model.ArtifactManagerConfiguration.xml
file that enables compression of all archived artifacts
- Create a run-jenkins.sh
shell script that downloads Jenkins 2.489 and downloads the plugins defined in plugins.txt
- Run the run-jenkins.sh
shell script and complete the setup wizard by creating a new user and installing no additional plugins
- Create a Pipeline job
pipeline { agent any stages { stage('Archive-datefile') { steps { sh "(echo $BUILD_ID; date) >> datefile" archiveArtifacts artifacts: 'datefile' } } } }
- Run the Pipeline job. It will fail with a stack trace when using compress-artifacts 109.x. It will pass when using compress-artifacts incremental 111.x
[JENKINS-74977] 2.489 fails to compress artifacts with a stack trace
Assignee | Original: Oliver Gondža [ olivergondza ] | New: Mark Waite [ markewaite ] |
Remote Link | New: This issue links to "PR-30 - Use commons compress API plugin instead of commons-compress library (PR-30) (Web Link)" [ 30314 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Comment |
[ A workaround is also available. If the Jenkins 2.489 controller has two additional plugins installed, the artifact compression works as expected with the currently released compress-artifacts plugin. Install:
* [commons-compress-api 1.26.1-2|https://updates.jenkins.io/download/plugins/commons-compress-api/1.26.1-2/commons-compress-api.hpi] * [commons-lang-3 3.17.0-84.vb_b_938040b_078|https://updates.jenkins.io/download/plugins/commons-lang3-api/3.17.0-84.vb_b_938040b_078/commons-lang3-api.hpi] ] |
Attachment | New: plugins.txt [ 63700 ] |
Attachment | New: jenkins.model.ArtifactManagerConfiguration.xml [ 63701 ] | |
Attachment | New: run-jenkins.sh [ 63702 ] |
Description |
Original:
The compress artifacts plugin 109.v98a_db_d3cb_72c and earlier fails and reports a stack trace when run with Jenkins 2.489 and later. The stack trace includes:
{code} 2024-12-10 20:46:04.938+0000 [id=77] WARNING h.i.i.InstallUncaughtExceptionHandler#handleException: Caught unhandled exception with ID 76708d5b-5ac8-4994-898c-6293b87aba43 org.apache.commons.jelly.JellyTagException: jar:file:/home/mwaite/bugs/JENKINS-xxxxx/war/WEB-INF/lib/jenkins-core-2.489.jar!/hudson/model/Job/index.jelly:62:39: <st:include> org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream Caused by: java.lang.NoClassDefFoundError: org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream Caused by: java.lang.ClassNotFoundException: org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream {code} The commons compress library was removed from Jenkins 2.489. The compress artifacts plugin needs to be updated to use the commons compress API plugin instead of directly relying on the commons compress library |
New:
The compress artifacts plugin 109.v98a_db_d3cb_72c and earlier fails and reports a stack trace when run with Jenkins 2.489 and later. The stack trace includes:
{code} 2024-12-10 20:46:04.938+0000 [id=77] WARNING h.i.i.InstallUncaughtExceptionHandler#handleException: Caught unhandled exception with ID 76708d5b-5ac8-4994-898c-6293b87aba43 org.apache.commons.jelly.JellyTagException: jar:file:/home/mwaite/bugs/JENKINS-xxxxx/war/WEB-INF/lib/jenkins-core-2.489.jar!/hudson/model/Job/index.jelly:62:39: <st:include> org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream Caused by: java.lang.NoClassDefFoundError: org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream Caused by: java.lang.ClassNotFoundException: org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream {code} The commons compress library was removed from Jenkins 2.489. The compress artifacts plugin needs to be updated to use the commons compress API plugin instead of directly relying on the commons compress library h3. Showing the issue Steps to show the issue: # Create a [^plugins.txt] |
An incremental build of the plugin is available from
Download link:
Plugin Installation Manager input format: (documentation)