[DO-1357] fix deploy pipeline from tavro-cloud (!63)
Co-authored-by: Ilya Zaharenkov <ilya.zaharenkov@avroid.tech> Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/63
This commit is contained in:
@@ -10,29 +10,6 @@ String repositoryName = 'cloud-messenger-core-api' // Replace with your Harbor r
|
|||||||
String pageSize = 100 // maximum number of artifacts to return 100
|
String pageSize = 100 // maximum number of artifacts to return 100
|
||||||
String apiUrl = "https://${JENKINS_DOCKER_REGISTRY}/api/v2.0/projects/${projectName}" +
|
String apiUrl = "https://${JENKINS_DOCKER_REGISTRY}/api/v2.0/projects/${projectName}" +
|
||||||
"/repositories/${repositoryName}/artifacts"
|
"/repositories/${repositoryName}/artifacts"
|
||||||
Map queryParams = [
|
|
||||||
'with_tag' : 'true',
|
|
||||||
'with_label' : 'false',
|
|
||||||
'with_scan_overview' : 'false',
|
|
||||||
'with_signature' : 'false',
|
|
||||||
'with_immutable_status' : 'false',
|
|
||||||
'sort' : '-push_time',
|
|
||||||
'page_size' : pageSize.toString(),
|
|
||||||
'page' : '1'
|
|
||||||
]
|
|
||||||
|
|
||||||
String queryString = queryParams.collect { k, v -> "${k}=${v}" }.join('&')
|
|
||||||
String requestUrl = "${apiUrl}?${queryString}"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
withCredentials([usernamePassword(credentialsId: "${JENKINS_HARBOR_CREDENTIALS}",
|
|
||||||
usernameVariable: 'HARBOR_USER', passwordVariable: 'HARBOR_PASSWORD')]) {
|
|
||||||
harborLogin = HARBOR_USER.replaceAll('\\$', '\\\\\\$')
|
|
||||||
harborPassword = HARBOR_PASSWORD
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
properties([
|
properties([
|
||||||
buildDiscarder(logRotator(artifactDaysToKeepStr: '',
|
buildDiscarder(logRotator(artifactDaysToKeepStr: '',
|
||||||
artifactNumToKeepStr: '10',
|
artifactNumToKeepStr: '10',
|
||||||
@@ -97,7 +74,7 @@ return imageVersions
|
|||||||
String repoPath = 'Apps-Backend/cloud-messenger-core-api.git'
|
String repoPath = 'Apps-Backend/cloud-messenger-core-api.git'
|
||||||
String branch = 'develop'
|
String branch = 'develop'
|
||||||
String valuesPath = ".helm/values.${params.ENV.toLowerCase()}.yaml"
|
String valuesPath = ".helm/values.${params.ENV.toLowerCase()}.yaml"
|
||||||
String namespace = "cloud-messenger-${params.ENV.toLowerCase()}"
|
String namespace = "tavro-cloud-${params.ENV.toLowerCase()}"
|
||||||
|
|
||||||
|
|
||||||
String helmChart = 'helm-cloud-messenger-core-api'
|
String helmChart = 'helm-cloud-messenger-core-api'
|
||||||
|
|||||||
Reference in New Issue
Block a user