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
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -97,3 +97,8 @@ EOF
 | 
				
			|||||||
make image PROFILE=glinet_gl-ar150 FILES=overlay/ PACKAGES="usbutils curl htop nano mjpg-streamer kmod-video-uvc \
 | 
					make image PROFILE=glinet_gl-ar150 FILES=overlay/ PACKAGES="usbutils curl htop nano mjpg-streamer kmod-video-uvc \
 | 
				
			||||||
    v4l-utils tcpdump -odhcp6c -odhcpd -dnsmasq -pppd -luci-proto-ppp -kmod-ppp -ppp -ppp-mod-pppoe \
 | 
					    v4l-utils tcpdump -odhcp6c -odhcpd -dnsmasq -pppd -luci-proto-ppp -kmod-ppp -ppp -ppp-mod-pppoe \
 | 
				
			||||||
    -kmod-ath -kmod-ath9k-common -kmod-ath9k -kmod-ip6tables -ip6tables -luci-proto-ipv6 -kmod-iptunnel6 -kmod-ipsec6 -luci"
 | 
					    -kmod-ath -kmod-ath9k-common -kmod-ath9k -kmod-ip6tables -ip6tables -luci-proto-ipv6 -kmod-iptunnel6 -kmod-ipsec6 -luci"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Copy binaries to fixed location
 | 
				
			||||||
 | 
					cd -
 | 
				
			||||||
 | 
					mkdir -p bin/
 | 
				
			||||||
 | 
					cp $BASENAME/bin/targets/ath79/generic/*.bin bin/
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user