chk
parent
9205b623c8
commit
0ba4b77c8c
|
@ -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]]
|
||||
])
|
||||
}
|
Loading…
Reference in New Issue