mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	jenkins-build-makebuildserver: retry git fetch until it works
				
					
				
			It seems that gitlab gives 500 errors a bit too frequently, so keep retrying the `git pull` until it works so that there isn't a error email sent out over failed pulls.
This commit is contained in:
		
							parent
							
								
									780b0e9502
								
							
						
					
					
						commit
						84dc415837
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -54,6 +54,7 @@ echo "apt_package_cache = True" >> $WORKSPACE/makebuildserver.config.py
 | 
			
		|||
# this can be handled in the jenkins job, or here:
 | 
			
		||||
if [ -e fdroiddata ]; then
 | 
			
		||||
    cd fdroiddata
 | 
			
		||||
    while ! git fetch; do sleep 1; done
 | 
			
		||||
    git remote update -p
 | 
			
		||||
    git checkout master
 | 
			
		||||
    git reset --hard origin/master
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue