11
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:
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
}
}
}
}
}