From 570d773d312429125a9aee23e9747afb8916c083 Mon Sep 17 00:00:00 2001 From: Rustam Tagaev Date: Wed, 5 Mar 2025 15:54:02 +0300 Subject: [PATCH] [DO-1669] add test env for msg-profiles (!93) Co-authored-by: Rustam Tagaev Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/93 --- pipelines/Cloud/Apps-Backend/msg-profiles.groovy | 3 +++ pipelines/Cloud/Deploy/Backend/msg-profiles-deploy.groovy | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pipelines/Cloud/Apps-Backend/msg-profiles.groovy b/pipelines/Cloud/Apps-Backend/msg-profiles.groovy index f92c26f..ec088d3 100644 --- a/pipelines/Cloud/Apps-Backend/msg-profiles.groovy +++ b/pipelines/Cloud/Apps-Backend/msg-profiles.groovy @@ -69,6 +69,8 @@ slaveTemplates.jnlp { String version = props.tool.poetry.version tag = "${version}-${gitVars.GIT_COMMIT.take(5)}" + currentBuild.description = tag + String imageName = "${env.JENKINS_DOCKER_REGISTRY}/" + "${dockerGroup}/${dockerProject}:${tag}" @@ -78,6 +80,7 @@ slaveTemplates.jnlp { "--build-arg PIP_INDEX_URL=${env.JENKINS_PIP_INDEX_URL} -f Dockerfile ." ) + if (publishBranch != null && publishBranch.contains(branch)) { buildImage.push() } diff --git a/pipelines/Cloud/Deploy/Backend/msg-profiles-deploy.groovy b/pipelines/Cloud/Deploy/Backend/msg-profiles-deploy.groovy index 687811f..93998d4 100644 --- a/pipelines/Cloud/Deploy/Backend/msg-profiles-deploy.groovy +++ b/pipelines/Cloud/Deploy/Backend/msg-profiles-deploy.groovy @@ -11,7 +11,7 @@ String k8sAppName = repositoryName String pageSize = 100 // maximum number of artifacts to return 100 Map envBranch = [ 'DEV': 'develop', - // 'TEST': 'test' + 'TEST': 'test' ] String apiUrl = "https://${JENKINS_DOCKER_REGISTRY}/api/v2.0/projects/${projectName}" + @@ -106,6 +106,7 @@ slaveTemplates.jnlp { --install ${k8sAppName} ${helmRepoPath} \ --wait """ + currentBuild.description = "ENV: ${params.ENV} TAG: ${env.APP_VERSION}" } } }