More Reliable Jenkins
This commit is contained in:
parent
905a569c09
commit
a94708a1ae
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -22,6 +22,8 @@ pipeline {
|
|||||||
stage('Publish') {
|
stage('Publish') {
|
||||||
steps {
|
steps {
|
||||||
sh 'apt-get update && apt-get install -y docker.io'
|
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 .'
|
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')]) {
|
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}"'
|
sh 'docker login -u "${DOCKER_HUB_USERNAME}" -p "${DOCKER_HUB_PASSWORD}"'
|
||||||
|
Loading…
Reference in New Issue
Block a user