Our team is developing a Jenkins job using which we can create Merge/Pull request when we are merge dev branch to release branch in our repo. This job will do this task for 32 repos at once as all repos have same branch names.
Now, I am using following command in Jenkins Build Step > Execute Shell to create merge request.
Did this for testing, but it did not create any merge request.
Started by user Ammy Running as SYSTEM Building in workspace /var/jenkins_home/workspace/test1-8April22 > git --version # timeout=10 > git --version # ‘git version 2.30.2’ [test1-8April22] $ /bin/sh -xe /tmp/jenkins12318492156816795037.sh + git clone -b dev1 --depth=5 https://gitlab.com/group11098/repo.git Cloning into ‘repo’… + cd repo + git status On branch dev1 Your branch is up to date with ‘origin/dev1’. nothing to commit, working tree clean + git push -o merge_request.create -o merge_request.target=https://gitlab.com/****/sample-repo.git?ref=main origin