@ -81,10 +81,14 @@ def pcStage(String stageName, Closure body) { 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					    checkout scm     checkout scm  
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					    def dockerArgs = '--user=root  -v /tmp/comma_download_cache:/tmp/comma_download_cache -v /tmp/scons_cache:/tmp/scons_cache';     def dockerArgs = '--user=batman  -v /tmp/comma_download_cache:/tmp/comma_download_cache -v /tmp/scons_cache:/tmp/scons_cache';  
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					    docker.build("openpilot-base:build-${env.GIT_COMMIT}", "-f Dockerfile.openpilot_base .").inside(dockerArgs) {     docker.build("openpilot-base:build-${env.GIT_COMMIT}", "-f Dockerfile.openpilot_base .").inside(dockerArgs) {  
			
		
	
		
		
			
				
					
					      timeout(time: 20, unit: 'MINUTES') {       timeout(time: 20, unit: 'MINUTES') {  
			
		
	
		
		
			
				
					
					        try {         try {  
			
		
	
		
		
			
				
					
					          // TODO: remove these after all jenkins jobs are running as batman (merged with master)  
			
		
	
		
		
			
				
					
					          sh "sudo chown -R batman:batman /tmp/scons_cache"  
			
		
	
		
		
			
				
					
					          sh "sudo chown -R batman:batman /tmp/comma_download_cache"  
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					          sh "git config --global --add safe.directory '*'"           sh "git config --global --add safe.directory '*'"  
			
		
	
		
		
			
				
					
					          sh "git submodule update --init --recursive"           sh "git submodule update --init --recursive"  
			
		
	
		
		
			
				
					
					          sh "git lfs pull"           sh "git lfs pull"