This commit is contained in:
Semyon Bezrukov 2024-09-11 16:38:58 +03:00
parent 71a35f7805
commit 6d6904950e

14
Jenkinsfile vendored
View File

@ -96,7 +96,7 @@ pipeline {
status.primary = (pAction) ? 'success' : 'failure' status.primary = (pAction) ? 'success' : 'failure'
} }
} else if params.action_type.startsWith('start') { } else if (params.action_type.startsWith('start')) {
branch = defaults.branch_type + '/v' + params.version branch = defaults.branch_type + '/v' + params.version
baseBranches = [env.BRANCH_NAME] baseBranches = [env.BRANCH_NAME]
@ -123,7 +123,7 @@ pipeline {
} }
} }
} else if params.action_type.startsWith('merge') { } else if (params.action_type.startsWith('merge')) {
baseBranches = ['master'] baseBranches = ['master']
@ -140,7 +140,7 @@ pipeline {
} }
} }
} else if params.action_type.startsWith('finish') { } else if (params.action_type.startsWith('finish')) {
baseBranches = ['master', 'develop'] baseBranches = ['master', 'develop']
if (!params.extra_branch.isEmpty()) if (!params.extra_branch.isEmpty())
@ -164,7 +164,7 @@ pipeline {
} }
} }
} else if params.action_type.startsWith('rename') { } else if (params.action_type.startsWith('rename')) {
branch = defaults.branch_type + '/v' + params.version branch = defaults.branch_type + '/v' + params.version
baseBranches = [env.BRANCH_NAME] baseBranches = [env.BRANCH_NAME]
@ -190,7 +190,7 @@ pipeline {
} }
} }
} else if params.action_type.startsWith('delete') { } else if (params.action_type.startsWith('delete')) {
stats.repos.each { repo, status -> stats.repos.each { repo, status ->
if (!checkRemoteBranch(repo, branch)) { if (!checkRemoteBranch(repo, branch)) {
@ -208,7 +208,7 @@ pipeline {
} }
} }
} else if params.action_type.startsWith('protect') { } else if (params.action_type.startsWith('protect')) {
stats.repos.each { repo, status -> stats.repos.each { repo, status ->
pAction = protectBranch(repo, branch) pAction = protectBranch(repo, branch)
@ -216,7 +216,7 @@ pipeline {
status.secondary = 'none' status.secondary = 'none'
} }
} else if params.action_type.startsWith('unprotect') { } else if (params.action_type.startsWith('unprotect')) {
stats.repos.each { repo, status -> stats.repos.each { repo, status ->
pAction = unprotectBranch(repo, branch) pAction = unprotectBranch(repo, branch)