master
Fabio 2024-11-12 08:43:44 -03:00
parent 9205b623c8
commit 0ba4b77c8c
1 changed files with 16 additions and 0 deletions

View File

@ -41,4 +41,20 @@ pipeline {
}
}
}
}
//======================================================================================================
def gitCheckout(branch_name, url_name) {
if (branch_name == null || branch_name.isEmpty()) {
branch_name = "master"
}
SCM = checkout([
$class: 'GitSCM',
branches: [[name: "${branch_name}"]],
doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'AuthorInChangelog']],
submoduleCfg: [],
userRemoteConfigs: [[credentialsId: 'admin-gitea', url: url_name]]
])
}