mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	jenkins: require successful git fetch before running tests
				
					
				
			This commit is contained in:
		
							parent
							
								
									2cf6110860
								
							
						
					
					
						commit
						35ff37b1e2
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -65,7 +65,7 @@ cd $WORKSPACE
 | 
			
		|||
# this can be handled in the jenkins job, or here:
 | 
			
		||||
if [ -e fdroiddata ]; then
 | 
			
		||||
    cd fdroiddata
 | 
			
		||||
    git remote update -p
 | 
			
		||||
    while ! git fetch origin --tags --prune; do sleep 10; done
 | 
			
		||||
    git checkout master
 | 
			
		||||
    git reset --hard origin/master
 | 
			
		||||
    # keep all the cloned source repos
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -68,7 +68,7 @@ fi
 | 
			
		|||
# this can be handled in the jenkins job, or here:
 | 
			
		||||
if [ -e fdroiddata ]; then
 | 
			
		||||
    cd fdroiddata
 | 
			
		||||
    while ! git fetch; do sleep 1; done
 | 
			
		||||
    while ! git fetch origin --tags --prune; do sleep 10; done
 | 
			
		||||
    git remote update -p
 | 
			
		||||
    git checkout master
 | 
			
		||||
    git reset --hard origin/master
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue