fix: fixed agent docker installation
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Gitea/docker-base-images/jdk14-alpine/pipeline/head There was a failure building this commit
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Gitea/docker-base-images/jdk14-alpine/pipeline/head There was a failure building this commit
				
			This commit is contained in:
		
							parent
							
								
									4fe1957af6
								
							
						
					
					
						commit
						9aaaca58d1
					
				
							
								
								
									
										6
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							@ -11,16 +11,16 @@ pipeline {
 | 
				
			|||||||
        docker {
 | 
					        docker {
 | 
				
			||||||
            image 'alpine:3.17.3'
 | 
					            image 'alpine:3.17.3'
 | 
				
			||||||
            // Mount docker socket for docker-in-docker
 | 
					            // Mount docker socket for docker-in-docker
 | 
				
			||||||
            args '-v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker'
 | 
					            args '-v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/local/bin/docker'
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    stages {
 | 
					    stages {
 | 
				
			||||||
        stage('prepare') {
 | 
					        stage('prepare') {
 | 
				
			||||||
            steps {
 | 
					            steps {
 | 
				
			||||||
                sh 'echo ${PATH}'
 | 
					                sh 'echo ${PATH}'
 | 
				
			||||||
                sh 'ls -la /usr/bin | grep docker'
 | 
					                sh 'ls -la /usr/local/bin | grep docker'
 | 
				
			||||||
                sh "which docker"
 | 
					                sh "which docker"
 | 
				
			||||||
                sh 'chmod +x /usr/bin/docker'
 | 
					                sh 'chmod +x /usr/local/bin/docker'
 | 
				
			||||||
                sh """
 | 
					                sh """
 | 
				
			||||||
                    apk update && \
 | 
					                    apk update && \
 | 
				
			||||||
                    apk add --no-cache git
 | 
					                    apk add --no-cache git
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user