Correct nexus url and set new pass for user. Also add new tags to deployment.

This commit is contained in:
2025-03-28 12:51:52 +03:00
parent 9344da6363
commit f4ba112ca9
4 changed files with 14 additions and 7 deletions
+9 -5
View File
@@ -37,12 +37,16 @@ node("docker") {
stage("Build image") {
println "Start building image ${env.registryContainerName}:${env.version}"
if (registryRepoPath)
env.imageName = "${registryRepoPath}/${env.registryContainerName}"
else
env.imageName = "${env.registryContainerName}"
app = docker.build("${env.imageName}:${env.version}", "--no-cache -f ./build/Dockerfile .")
app = docker.build("${env.registryContainerName}:${env.version}", "--no-cache -f ./build/Dockerfile .")
println "Start uploading image ${env.registryContainerName}:${env.version} to Nexus"
docker.withRegistry("https://${registryUrl}", "nexus-jenkins-cred") {
docker.withRegistry("https://${registryUrl}/${registryRepoPath}", "registry-jenkins-cred") {
app.push("${env.version}")
app.push("latest")
}
@@ -68,8 +72,8 @@ node("docker") {
-f ./helm/values.yaml \
${env.appName} ./helm/
"""
sh "kubectl --kubeconfig=auth.config get pods --namespace ${env.namespace}"
sh "kubectl --kubeconfig=auth.config get pods --env.namespace ${env.namespace}"
}
}