From 6d6904950e7d407b51f31bf843e553a280e342c6 Mon Sep 17 00:00:00 2001 From: Semyon Bezrukov Date: Wed, 11 Sep 2024 16:38:58 +0300 Subject: [PATCH] BM2 --- Jenkinsfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1e2992d..cb6acd1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -96,7 +96,7 @@ pipeline { 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 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'] @@ -140,7 +140,7 @@ pipeline { } } - } else if params.action_type.startsWith('finish') { + } else if (params.action_type.startsWith('finish')) { baseBranches = ['master', 'develop'] 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 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 -> 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 -> pAction = protectBranch(repo, branch) @@ -216,7 +216,7 @@ pipeline { status.secondary = 'none' } - } else if params.action_type.startsWith('unprotect') { + } else if (params.action_type.startsWith('unprotect')) { stats.repos.each { repo, status -> pAction = unprotectBranch(repo, branch)