add checkout for docker build
Some checks failed
dreamfall/partybot/pipeline/head There was a failure building this commit

This commit is contained in:
Morgan McMillian 2022-11-29 19:44:16 -08:00
parent 7f51a7c6ef
commit 14fd404872

4
Jenkinsfile vendored
View file

@ -10,8 +10,10 @@ pipeline {
stage('Build docker image') { stage('Build docker image') {
agent { label 'docker-build' } agent { label 'docker-build' }
steps { steps {
cleanWs()
checkout scm
script { script {
docker.withRegistry('https://git.dreamfall.space', '0e145583-73da-44fa-8117-b8d5352025df') { docker.withRegistry('https://git.dreamfall.space', 'jenkins-gitea-id') {
def customImage = docker.build('partybot:${env.BUILD_ID}') def customImage = docker.build('partybot:${env.BUILD_ID}')
customImage.push() customImage.push()