hotfix/DO-0/some_refactoring - remove unused vars (!104)
Co-authored-by: Rustam Tagaev <rustam.tagaev@avroid.tech> Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/104 Reviewed-by: Aleksandr Vodyanov <aleksandr.vodyanov@avroid.team> Reviewed-by: Denis Patrakeev <denis.patrakeev@avroid.team>
This commit is contained in:
@@ -5,17 +5,13 @@ import tech.avroid.scm.Git
|
||||
import tech.avroid.jenkins.Notifications
|
||||
import tech.avroid.jenkins.Jenkins
|
||||
|
||||
String projectName = 'cloud' // Replace with your Harbor project name
|
||||
String repositoryName = 'msg-profiles' // Replace with your Harbor repository name
|
||||
String repositoryName = 'msg-profiles'
|
||||
String k8sAppName = repositoryName
|
||||
String pageSize = 100 // maximum number of artifacts to return 100
|
||||
Map envBranch = [
|
||||
'DEV': 'develop',
|
||||
'TEST': 'test'
|
||||
]
|
||||
|
||||
String apiUrl = "https://${JENKINS_DOCKER_REGISTRY}/api/v2.0/projects/${projectName}" +
|
||||
"/repositories/${repositoryName}/artifacts"
|
||||
properties([
|
||||
buildDiscarder(logRotator(artifactNumToKeepStr: '10',
|
||||
numToKeepStr: '10')),
|
||||
@@ -73,14 +69,12 @@ return imageVersions
|
||||
])
|
||||
|
||||
])
|
||||
String repoPath = 'Apps-Backend/msg-profiles.git'
|
||||
String branch = envBranch.find { it.key == params.ENV }?.value
|
||||
String repoPath = "Apps-Backend/${repositoryName}.git"
|
||||
String branch = envBranch.find { it.key == params.ENV }?.value
|
||||
String valuesPath = ".helm/values.${params.ENV.toLowerCase()}.yaml"
|
||||
String namespace = "tavro-cloud-${params.ENV.toLowerCase()}"
|
||||
|
||||
|
||||
String helmChart = 'msg-profiles'
|
||||
String helmRepoPath = "avroid/${helmChart}"
|
||||
String helmRepoPath = "avroid/${repositoryName}"
|
||||
String helmRepo = "${env.JENKINS_NEXUS_URL}/repository/devops-helm-release"
|
||||
println(branch)
|
||||
Git git = new Git(this, env.JENKINS_GIT_CREDENTIALS_SSH)
|
||||
|
||||
Reference in New Issue
Block a user