3.11.6 #1

Merged
jonny merged 9 commits from 3.11.6 into master 2020-07-09 13:45:38 +00:00
Showing only changes of commit 27621fba18 - Show all commits

21
Jenkinsfile vendored
View File

@ -6,12 +6,21 @@ node("docker-node") {
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/alpine/couchpotato"
stage "build"
def app = docker.build "library/x86_64/alpine/couchpotato"
stage "publish"
app.push("${env.BUILD_NUMBER}")
app.push("latest")
stage "publish"
app.push("${env.BUILD_NUMBER}")
app.push("latest")
stage('Deploy on K8s'){
sh "/usr/local/bin/kubectl -n media delete po cp-0 && kubectl -n media delete po cp-kids-0"
}
}
catch (err) {
currentBuild.result = 'FAILURE'
}
}
}