modified: Jenkinsfile

Added v3 tag
This commit is contained in:
Jonathan Ervine 2020-03-31 14:54:56 +08:00
parent 338a29a682
commit ee11dd0ffb

3
Jenkinsfile vendored
View File

@ -1,7 +1,7 @@
node("docker-node") { node("docker-node") {
docker.withRegistry('https://harbor.ervine.dev', 'jenkins-to-harbor') { docker.withRegistry('https://harbor.ervine.dev', 'jenkins-to-harbor') {
git branch: "3.11.3", url: "ssh://git@git.ervine.org:2222/jonny/x86_64-alpine-sonarr", credentialsId: 'jenkins-to-git' git branch: "v3-dev", url: "ssh://git@git.ervine.org:2222/jonny/x86_64-alpine-sonarr", credentialsId: 'jenkins-to-git'
sh "git rev-parse HEAD > .git/commit-id" sh "git rev-parse HEAD > .git/commit-id"
def commit_id = readFile('.git/commit-id').trim() def commit_id = readFile('.git/commit-id').trim()
@ -13,6 +13,7 @@ node("docker-node") {
stage "publish" stage "publish"
app.push("v3.0.3.748") app.push("v3.0.3.748")
app.push("v3")
stage('Deploy on K8s'){ stage('Deploy on K8s'){
sh "/usr/local/bin/kubectl -n media delete po sonarr3-0" sh "/usr/local/bin/kubectl -n media delete po sonarr3-0"