add checkout for docker build
Some checks failed
dreamfall/partybot/pipeline/head There was a failure building this commit
Some checks failed
dreamfall/partybot/pipeline/head There was a failure building this commit
This commit is contained in:
parent
7f51a7c6ef
commit
14fd404872
1 changed files with 3 additions and 1 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue