Hi,
without any changes to my config, I started getting the error on the git clone step:
$ git "init"
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
Initialized empty Git repository in /Users/vagrant/git/.git/
$ git "remote" "add" "origin" "git@github.com:foo/bar.git"
ERROR: manual PR merge chekout strategy can not be used: no source repository URL or source branch commit hash specified
The error message is coming from this file in the Git Clone plugin
if strings.TrimSpace(sourceRepoURL) == "" && strings.TrimSpace(commit) == "" {
return NewParameterValidationError("manual PR merge chekout strategy can not be used: no source repository URL or source branch commit hash specified")
}
In case someone comes across the same issue, here is the solution:
This behavior seems to be caused by manually overriding the branch_dest input of the git-clone step, this causes the Step to handle the build as a PR build, even if it is not one. This input is what’s causing the error: