Some checks failed
		
		
	
	gitea-kspace/openwrt-camera-image/pipeline/head There was a failure building this commit
				
			
		
			
				
	
	
		
			34 lines
		
	
	
		
			877 B
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			877 B
		
	
	
	
		
			Groovy
		
	
	
	
	
	
#!/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) {
 | 
						|
                    script {
 | 
						|
                        sh "mkdir -p bin/"
 | 
						|
                        sh "cp openwrt-imagebuilder-ath79-generic.Linux-x86_64/bin/targets/ath79/generic/*.bin bin/"
 | 
						|
                    }
 | 
						|
                    archiveArtifacts artifacts: "bin/*", allowEmptyArchive: false, fingerprint: false
 | 
						|
                }
 | 
						|
            }
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |