[DO-1669] add test env for msg-profiles (!93)
Co-authored-by: Rustam Tagaev <rustam.tagaev@avroid.tech> Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/93
This commit is contained in:
@@ -69,6 +69,8 @@ slaveTemplates.jnlp {
|
|||||||
|
|
||||||
String version = props.tool.poetry.version
|
String version = props.tool.poetry.version
|
||||||
tag = "${version}-${gitVars.GIT_COMMIT.take(5)}"
|
tag = "${version}-${gitVars.GIT_COMMIT.take(5)}"
|
||||||
|
currentBuild.description = tag
|
||||||
|
|
||||||
String imageName = "${env.JENKINS_DOCKER_REGISTRY}/" +
|
String imageName = "${env.JENKINS_DOCKER_REGISTRY}/" +
|
||||||
"${dockerGroup}/${dockerProject}:${tag}"
|
"${dockerGroup}/${dockerProject}:${tag}"
|
||||||
|
|
||||||
@@ -78,6 +80,7 @@ slaveTemplates.jnlp {
|
|||||||
"--build-arg PIP_INDEX_URL=${env.JENKINS_PIP_INDEX_URL} -f Dockerfile ."
|
"--build-arg PIP_INDEX_URL=${env.JENKINS_PIP_INDEX_URL} -f Dockerfile ."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
if (publishBranch != null && publishBranch.contains(branch)) {
|
if (publishBranch != null && publishBranch.contains(branch)) {
|
||||||
buildImage.push()
|
buildImage.push()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ String k8sAppName = repositoryName
|
|||||||
String pageSize = 100 // maximum number of artifacts to return 100
|
String pageSize = 100 // maximum number of artifacts to return 100
|
||||||
Map envBranch = [
|
Map envBranch = [
|
||||||
'DEV': 'develop',
|
'DEV': 'develop',
|
||||||
// 'TEST': 'test'
|
'TEST': 'test'
|
||||||
]
|
]
|
||||||
|
|
||||||
String apiUrl = "https://${JENKINS_DOCKER_REGISTRY}/api/v2.0/projects/${projectName}" +
|
String apiUrl = "https://${JENKINS_DOCKER_REGISTRY}/api/v2.0/projects/${projectName}" +
|
||||||
@@ -106,6 +106,7 @@ slaveTemplates.jnlp {
|
|||||||
--install ${k8sAppName} ${helmRepoPath} \
|
--install ${k8sAppName} ${helmRepoPath} \
|
||||||
--wait
|
--wait
|
||||||
"""
|
"""
|
||||||
|
currentBuild.description = "ENV: ${params.ENV} TAG: ${env.APP_VERSION}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user