File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
buildscripts/scripts/utils Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -150,17 +150,25 @@ void clean_caches() {
150150
151151boolean download_hot_cache (Map args ) {
152152 try {
153- sh("""
154- mkdir -p ${ args.download_dest}
155- cp ${ env.PERSISTENT_K8S_VOLUME_PATH} /${ args.file_pattern} {${ hashfile_extension} ,} ${ args.download_dest}
156- """ );
153+ // average runtime of this part is up to 60sec when transfering a 11GB linter archive
154+ timeout(time : 120 , unit : ' SECONDS' ) {
155+ sh("""
156+ mkdir -p ${ args.download_dest}
157+ cp ${ env.PERSISTENT_K8S_VOLUME_PATH} /${ args.file_pattern} {${ hashfile_extension} ,} ${ args.download_dest}
158+ """ );
159+ }
160+ } catch (Exception exc) {
161+ println (" hot cache: Warning - ran into exception while copying artifact from network volume: ${ exc} " );
162+ return true ;
163+ }
157164
165+ try {
158166 if (! is_hash_verified(" ${ args.download_dest} /${ args.file_pattern} " )) {
159167 raise(" The sha256sum of the downloaded file does not match the expectation" );
160168 }
161169 }
162170 catch (Exception exc) {
163- print (" hot cache: ran into exception while running download_hot_cache() for ${ args.file_pattern} : ${ exc} " );
171+ print (" hot cache: ran into exception while verifying artifact integrity of ${ args.file_pattern} : ${ exc} " );
164172 return true ;
165173 }
166174
You can’t perform that action at this time.
0 commit comments