31 lines
566 B
Groovy
31 lines
566 B
Groovy
pipeline {
|
|
agent any
|
|
triggers {
|
|
cron "@monthly"
|
|
}
|
|
options {
|
|
timestamps()
|
|
ansiColor("xterm")
|
|
disableConcurrentBuilds()
|
|
}
|
|
stages {
|
|
stage('build') {
|
|
steps {
|
|
sh "./build.sh"
|
|
}
|
|
}
|
|
stage('push') {
|
|
steps {
|
|
sh "./push.sh"
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
cleanup {
|
|
cleanWs(deleteDirs: true,
|
|
disableDeferredWipeout: true,
|
|
notFailBuild: true)
|
|
}
|
|
}
|
|
}
|