Matthew Von-Maszewski
06/26/2025, 2:59 PMremote: error: See <https://gh.io/lfs> for more information.
remote: error: File gradle/wrapper/gradle-8.11-bin.zip is 130.57 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - <https://git-lfs.github.com>.
Thomas Broyer
06/26/2025, 3:10 PMgradle
command (instead of ./gradlew
) inside a gradle:8.11-jdk21
container will use the Gradle from the Docker image: the "cache" is your Docker image cache.
(I also add steps to the pipelines that run gradle wrapper
and check whether that modifies the gradlew
and gradle/wrapper/
of the project, to make sure things are in sync between the CI pipeline and the wrapper that the developers rely on)Matthew Von-Maszewski
06/26/2025, 3:12 PMThomas Broyer
06/26/2025, 3:16 PM// Keep in sync with the Gradle wrapper
def gradleImageVersion = '8.14.2-jdk21'
// ...
stage('Validate Gradle Wrapper') {
steps {
gradleInsideDocker(imageVersion: gradleImageVersion) {
sh 'gradle wrapper'
}
verifyUnmodified('gradle/wrapper/gradle-wrapper.properties') {
setGerritReview unsuccessfulMessage: 'Version of Gradle differs between Jenkinsfiles and the Gradle wrapper'
}
}
post {
unsuccessful {
sh 'git restore -- gradlew* gradle/wrapper/'
}
}
}
stage('Build') {
steps {
gradleInsideDocker(imageVersion: gradleImageVersion) {
sh 'gradle build'
}
}
}