x86_64-suse-pocketmine/Jenkinsfile
Jonathan Ervine 6c77c6677a modified: Jenkinsfile
modified:   php.ini
Removed k8s deploy from Jenkinsfile - fixed typo in php.ini
2020-03-20 14:33:41 +08:00

26 lines
736 B
Groovy

node("docker-node") {
docker.withRegistry('https://harbor.ervine.dev', 'jenkins-to-harbor') {
git branch: "3.11.3", url: "ssh://git@git.ervine.org:2222/jonny/x86_64-suse-pocketmine", credentialsId: 'jenkins-to-git'
sh "git rev-parse HEAD > .git/commit-id"
def commit_id = readFile('.git/commit-id').trim()
println commit_id
try {
stage "build"
def app = docker.build "library/x86_64/suse/pocketmine"
stage "publish"
app.push("${env.BUILD_NUMBER}")
app.push("latest")
app.push("3.11.6")
}
}
catch (err) {
currentBuild.result = 'FAILURE'
}
}
}