jenkins/update2head: fixed coding convention

the curly brackets shall be used even on if statements with
only one line

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
Marc Mattmueller 2021-10-13 11:34:14 +02:00 committed by Gitea
parent f332dc9de8
commit 0704618e91
1 changed files with 4 additions and 3 deletions

View File

@ -28,11 +28,12 @@ pipeline {
stage('prepare') { stage('prepare') {
steps { steps {
script { script {
if(params.UPDATE_NM_PARTS) if(params.UPDATE_NM_PARTS) {
currentBuild.displayName += "-nm" currentBuild.displayName += "-nm"
if(params.UPDATE_COMMUNITY_PARTS) }
if(params.UPDATE_COMMUNITY_PARTS) {
currentBuild.displayName += "-community" currentBuild.displayName += "-community"
}
printJobParameters() printJobParameters()
prepareUpdate() prepareUpdate()
} }