Add Jenkinsfile and modify script
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				gitea-kspace/openwrt-camera-image/pipeline/head This commit looks good
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	gitea-kspace/openwrt-camera-image/pipeline/head This commit looks good
				
			This commit is contained in:
		
							
								
								
									
										29
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
			
		||||
#!/usr/bin/groovy
 | 
			
		||||
directory = "openwrt-camera-image"
 | 
			
		||||
pipeline {
 | 
			
		||||
    agent any
 | 
			
		||||
    stages {
 | 
			
		||||
        stage("Setup") {
 | 
			
		||||
            steps {
 | 
			
		||||
                dir(directory) {
 | 
			
		||||
                    deleteDir()
 | 
			
		||||
                    checkout scm
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        stage("Build") {
 | 
			
		||||
            steps {
 | 
			
		||||
                dir(directory) {
 | 
			
		||||
                    sh "sh script.sh"
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        stage("Deliver") {
 | 
			
		||||
            steps {
 | 
			
		||||
                dir(directory) {
 | 
			
		||||
                    archiveArtifacts artifacts: "bin/*", allowEmptyArchive: false, fingerprint: false
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user