2021-10-27 16:18:18 +00:00
|
|
|
#!/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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-10-27 16:22:01 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-10-27 16:18:18 +00:00
|
|
|
}
|
|
|
|
}
|