In jenkins pipeline, execute git command :
git log --format=%B --no-merges origin/master..origin/${currentBranch}
jenkins output error :
fatal: ambiguous argument 'origin/master..origin/XOPS-42_AddResultToJIRA': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
but in my local computer i execute above git command, it work well, how to resolve above error in jenkins
XOPS-42_AddResultToJIRA
exist? How iscurrentBranch
set?