socat-dns-docker/Jenkinsfile

31 lines
643 B
Groovy

pipeline {
agent any
triggers {
cron "H 23 * * *"
}
options {
timestamps()
ansiColor("xterm")
disableConcurrentBuilds()
}
stages {
stage('build') {
steps {
sh "docker build -t git.sudo.is/ben/socat-dns:latest ."
}
}
stage('push') {
steps {
sh "docker push git.sudo.is/ben/socat-dns:latest"
}
}
}
post {
cleanup {
cleanWs(deleteDirs: true,
disableDeferredWipeout: true,
notFailBuild: true)
}
}
}