From 6e91ddcd6aa03ae047cfe9858a1fea2cebc30586 Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Feb 11 2021 02:58:21 +0000 Subject: do a sparse checkout so we only get the Dockerfile and not the huge tarballs from the other branches --- diff --git a/container-build/stream8/Jenkinsfile b/container-build/stream8/Jenkinsfile index 26d0cf4..6fe866c 100644 --- a/container-build/stream8/Jenkinsfile +++ b/container-build/stream8/Jenkinsfile @@ -13,6 +13,11 @@ for (arch in arches) { userRemoteConfigs: [[ url: 'https://github.com/CentOS/sig-cloud-instance-images' ]], + extensions: [ + [$class: 'SparseCheckoutPaths', sparseCheckoutPaths:[[$class:'SparseCheckoutPath', path:'docker/']]], + [$class: 'CleanBeforeCheckout'], + [$class: 'CloneOption', depth: 1, noTags: false, reference: '', shallow: true, timeout: 10] + ], branches: [[ name: '*/CentOS-8-Stream']], ], )