-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
apache:migrationRelated to Apache MigrationRelated to Apache Migration
Description
After the move to ASF Jenkins, the existing Jenkinsfile suffer from a few issues:
- Groovy sandbox issues for shared library withSettingsXmlId method.
The method from [1] has an issue with groovy function getAt not being allowed due to script security. This is a workaround to unblock while the limitation still lasts.
The goal is to wrap each MavenCommandrun
method invocation withconfigFileProvider
wrapper, expose the file path using a variableMAVEN_SETTINGS_FILE
and invoke the run command withwithSettingsXmlFile(MAVEN_SETTINGS_FILE)
only in the closure. - CleanWs with deferred cleanup in early stages break workspace - symptom is seeing loads of getcwd problems in logs.
The goal is to usecleanWs(disableDeferredWipeout: true)
to do the clean synchronously. - Cleaning docker images and containers while we build in docker container and rely on passing of docker.sock from host - this would result in excessive cleanup of all cached images and containers, and would actually attempt at cleaning the build container itself.
The goal is to remove such operations, one case is to useutil.cleanNode()
instead ofutil.cleanNode('docker')
Metadata
Metadata
Assignees
Labels
apache:migrationRelated to Apache MigrationRelated to Apache Migration
Type
Projects
Status
🎯 Done