try second registry
This commit is contained in:
parent
783b0e48f1
commit
b8a06831c5
1 changed files with 9 additions and 0 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -17,6 +17,15 @@ pipeline {
|
||||||
customImage.push(version.split(/\./)[0,1].join('.'))
|
customImage.push(version.split(/\./)[0,1].join('.'))
|
||||||
customImage.push(version.split(/\./)[0])
|
customImage.push(version.split(/\./)[0])
|
||||||
customImage.push("latest")
|
customImage.push("latest")
|
||||||
|
|
||||||
|
registry_credentials = "3deeee3d-6fce-4430-98dd-9b4db56f43f7"
|
||||||
|
withDockerRegistry([ credentialsId: registry_credentials ]) {
|
||||||
|
def official_image = repo+'/'+project+':'+version.split(/\./)[0,1].join('.')
|
||||||
|
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + official_image
|
||||||
|
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + official_image.split(/\:/)[0]
|
||||||
|
sh "docker push " + official_image
|
||||||
|
sh "docker push " + official_image.split(/\:/)[0]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue