modified: Dockerfile

modified:   Jenkinsfile
Added k8s auto-deploy to jenkinsfile
This commit is contained in:
Jonathan Ervine
2020-04-06 15:19:31 +08:00
parent 53dc85fb29
commit 55c9fca389
2 changed files with 5 additions and 4 deletions
Vendored
+4 -4
View File
@@ -14,10 +14,10 @@ node("docker-node") {
stage "publish"
app.push("${env.BUILD_NUMBER}")
app.push("latest")
}
catch (err) {
currentBuild.result = 'FAILURE'
stage('Deploy on K8s'){
sh "/usr/local/bin/kubectl -n media delete po watcher-0"
}
}
}
}