using the docker image pipeline #1

Merged
ben merged 4 commits from dev into master 2021-02-09 16:27:20 +00:00
1 changed files with 2 additions and 23 deletions

25
Jenkinsfile vendored
View File

@ -1,24 +1,3 @@
pipeline {
agent any
triggers {
cron('H 17 * * *')
}
options {
timestamps()
ansiColor("xterm")
disableConcurrentBuilds()
}
stages {
stage('build') {
steps {
sh 'docker build -t benediktkr/jenkins:lts .'
}
}
@Library('shared-jenkins-pipelines') _
stage('push') {
steps {
sh 'docker push benediktkr/jenkins:lts'
}
}
}
}
dockerimg tag: 'lts', cron: 'H 17 * * *'