[DO-1503] rename project cloud-messenger-core-api (!65)
Co-authored-by: Rustam Tagaev <rustam.tagaev@avroid.tech> Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/65
This commit is contained in:
@@ -13,10 +13,10 @@ properties([
|
||||
|
||||
Git git = new Git(this, env.JENKINS_GIT_CREDENTIALS_SSH)
|
||||
|
||||
String repoPath = 'Apps-Backend/cloud-messenger-core-api.git'
|
||||
String repoPath = 'Apps-Backend/msg-messenger-core-api.git'
|
||||
String publishBranch = 'develop'
|
||||
String dockerGroup = 'cloud'
|
||||
String dockerProject = 'cloud-messenger-core-api'
|
||||
String dockerProject = 'msg-messenger-core-api'
|
||||
String projectSettingFile = 'pyproject.toml'
|
||||
Map gitVars = [:]
|
||||
String tag = ''
|
||||
@@ -84,7 +84,7 @@ slaveTemplates.jnlp {
|
||||
}
|
||||
stage('deploy application'){
|
||||
if (git.getBranch() == publishBranch){
|
||||
build job: 'Cloud/Deploy/cloud-messenger-core-api-deploy',
|
||||
build job: 'Cloud/Deploy/msg-messenger-core-api-deploy',
|
||||
parameters: [
|
||||
string(name: 'ENV', value: 'DEV'),
|
||||
string(name: 'APP_VERSION', value: tag)
|
||||
@@ -6,7 +6,7 @@ import tech.avroid.jenkins.Notifications
|
||||
import tech.avroid.jenkins.Jenkins
|
||||
|
||||
String projectName = 'cloud' // Replace with your Harbor project name
|
||||
String repositoryName = 'cloud-messenger-core-api' // Replace with your Harbor repository name
|
||||
String repositoryName = 'msg-messenger-core-api' // Replace with your Harbor repository name
|
||||
String pageSize = 100 // maximum number of artifacts to return 100
|
||||
String apiUrl = "https://${JENKINS_DOCKER_REGISTRY}/api/v2.0/projects/${projectName}" +
|
||||
"/repositories/${repositoryName}/artifacts"
|
||||
@@ -48,7 +48,7 @@ def createGetHttpClient(String url, String jenkinsCreds) {
|
||||
return httpClient
|
||||
}
|
||||
|
||||
String harborApiUrl = "https://${JENKINS_DOCKER_REGISTRY}/api/v2.0/projects/cloud/repositories/cloud-messenger-core-api/" +
|
||||
String harborApiUrl = "https://${JENKINS_DOCKER_REGISTRY}/api/v2.0/projects/cloud/repositories/msg-messenger-core-api/" +
|
||||
"artifacts?page=1&page_size=100&with_tag=true&sort=-push_time"
|
||||
|
||||
def httpClientHarbor = createGetHttpClient(harborApiUrl, "${JENKINS_HARBOR_CREDENTIALS}")
|
||||
@@ -71,14 +71,14 @@ return imageVersions
|
||||
])
|
||||
|
||||
|
||||
String repoPath = 'Apps-Backend/cloud-messenger-core-api.git'
|
||||
String repoPath = 'Apps-Backend/msg-messenger-core-api.git'
|
||||
String branch = 'develop'
|
||||
String valuesPath = ".helm/values.${params.ENV.toLowerCase()}.yaml"
|
||||
String namespace = "tavro-cloud-${params.ENV.toLowerCase()}"
|
||||
|
||||
|
||||
String helmChart = 'helm-cloud-messenger-core-api'
|
||||
String helmRepoPath = 'avroid/helm-cloud-messenger-core-api'
|
||||
String helmChart = 'helm-msg-messenger-core-api'
|
||||
String helmRepoPath = 'avroid/helm-msg-messenger-core-api'
|
||||
String helmRepo = "${env.JENKINS_NEXUS_URL}/repository/avroid-charts"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user