Add Jenkinsfile
	
		
			
	
		
	
	
		
	
		
			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:
		
							
								
								
									
										22
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
				
			|||||||
 | 
					#!/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"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user