10
0

Add Jenkinsfile and modify script
All checks were successful
gitea-kspace/openwrt-camera-image/pipeline/head This commit looks good

This commit is contained in:
Madis Mägi 2021-10-27 20:07:49 +03:00
parent 27ba0ca434
commit 682004b784
2 changed files with 34 additions and 0 deletions

29
Jenkinsfile vendored Normal file
View 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
}
}
}
}
}

View File

@ -97,3 +97,8 @@ EOF
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 \
-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/