-
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
An incremental build of the plugin is available from
Download link:
Plugin Installation Manager input format: (documentation)