3.11.6 #1

Merged
jonny merged 5 commits from 3.11.6 into master 2020-07-20 07:35:43 +00:00
Showing only changes of commit c12a5472ea - Show all commits

20
Jenkinsfile vendored
View File

@ -7,11 +7,21 @@ node("docker-node") {
def commit_id = readFile('.git/commit-id').trim() def commit_id = readFile('.git/commit-id').trim()
println commit_id println commit_id
stage "build" try {
def app = docker.build "library/x86_64/alpine/transmission" stage "build"
def app = docker.build "library/x86_64/alpine/transmission"
stage "publish"
app.push("${env.BUILD_NUMBER}")
app.push("latest")
stage('Deploy on K8s'){
sh "/usr/local/bin/kubectl -n media delete po transmission-0"
}
}
catch (err) {
currentBuild.result = 'FAILURE'
}
stage "publish"
app.push("${env.BUILD_NUMBER}")
app.push("latest")
} }
} }