chk
parent
9205b623c8
commit
0ba4b77c8c
|
@ -42,3 +42,19 @@ 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