30 lines
666 B
Plaintext
30 lines
666 B
Plaintext
|
#!/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
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|