From a94708a1ae2d1954a6dd424044882231f4417b7f Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Sat, 25 Jun 2022 23:40:24 -0400 Subject: [PATCH] More Reliable Jenkins --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index c4f9ade69..79e319a1d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,6 +22,8 @@ pipeline { stage('Publish') { steps { sh 'apt-get update && apt-get install -y docker.io' + sh 'rm -rf ./out/server-amd64' + sh './scripts/build.sh server amd64' sh 'docker build --no-cache --tag thebrokenrail/minecraft-pi-reborn-server .' withCredentials([usernamePassword(credentialsId: 'docker_hub_login', usernameVariable: 'DOCKER_HUB_USERNAME', passwordVariable: 'DOCKER_HUB_PASSWORD')]) { sh 'docker login -u "${DOCKER_HUB_USERNAME}" -p "${DOCKER_HUB_PASSWORD}"'