diff --git a/pipelines/Release-activity/platformng.groovy b/pipelines/Release-activity/platformng.groovy index 97b601c..cedb342 100644 --- a/pipelines/Release-activity/platformng.groovy +++ b/pipelines/Release-activity/platformng.groovy @@ -61,16 +61,16 @@ podTemplate(workspaceVolume: hostPathWorkspaceVolume(hostPath: "/data"), yaml: g stage('Create branch') { currentBuild.description = "Build from ${params.SOURCE_BRANCH_NAME}" String versionPattern = /^\d+\.\d+.*/ - Gitea tavroRepo = new Gitea(this, "${apiRepoURL}/BBL/platformng", "${env.JENKINS_GIT_CREDENTIALS_HTTP}") + Gitea platformngRepo = new Gitea(this, "${apiRepoURL}/BBL/platformng", "${env.JENKINS_GIT_CREDENTIALS_HTTP}") branch = params.BRANCH_TYPE.toLowerCase() + params.VERSION println "Branch name: ${branch}" - if (!params.VERSION.matches(versionPattern) { + if (!params.VERSION.matches(versionPattern)) { println('You must specify correct version, see description!') error() } - Boolean result = tavroRepo.createBranch(params.SOURCE_BRANCH_NAME, branch) + Boolean result = platformngRepo.createBranch(params.SOURCE_BRANCH_NAME, branch) if (!result) { println("Branch doesn't create, maybe ${branch} already exists") diff --git a/pipelines/jobs-dsl/jobs-dsl.groovy b/pipelines/jobs-dsl/jobs-dsl.groovy index f65ce88..4347056 100644 --- a/pipelines/jobs-dsl/jobs-dsl.groovy +++ b/pipelines/jobs-dsl/jobs-dsl.groovy @@ -41,7 +41,9 @@ podTemplate(workspaceVolume: hostPathWorkspaceVolume(hostPath: "/data"), } stage('Run job dsl') { - List launchJobs = [ 'Release-activity/Tavro' ] + List launchJobs = [ 'Release-activity/Tavro', + 'Release-activity/Platformng' + ] jobDsl( targets: 'jobs-dsl/folders/*.groovy\n' + 'jobs-dsl/jobs/**/*.groovy\n' +