DO-1497--release-activity-plaformng-ref (!60)
[DO-1497] Co-authored-by: Boris Shestov <boris.shestov@avroid.tech> Reviewed-on: https://git.avroid.tech/DevOps/jenkins-shared-lib/pulls/60 Reviewed-by: Aleksandr Vodyanov <aleksandr.vodyanov@avroid.team>
This commit is contained in:
@@ -19,14 +19,14 @@ class Gitea implements Serializable {
|
|||||||
//TODO: refactor with Gitea token
|
//TODO: refactor with Gitea token
|
||||||
/**
|
/**
|
||||||
* Create new branch from source branch
|
* Create new branch from source branch
|
||||||
* @param srcBranch String - source branch
|
* @param srcRef String - source branch/tag/commit
|
||||||
* @param dstBranch String - new branch
|
* @param dstBranch String - new branch
|
||||||
* @return Boolean - success or failure create
|
* @return Boolean - success or failure create
|
||||||
*/
|
*/
|
||||||
public Boolean createBranch(String srcBranch, String dstBranch) {
|
public Boolean createBranch(String srcRef, String dstBranch) {
|
||||||
Map body = [
|
Map body = [
|
||||||
new_branch_name: dstBranch,
|
new_branch_name: dstBranch,
|
||||||
old_branch_name: srcBranch
|
old_ref_name: srcRef
|
||||||
]
|
]
|
||||||
|
|
||||||
Object res = script.httpRequest(
|
Object res = script.httpRequest(
|
||||||
|
|||||||
Reference in New Issue
Block a user