I am trying to get git difference between master and feature branch but getting the error "command not found" using below mentioned command:
COMMIT_CHANGE_SET = sh(returnStdout: true, script: 'git diff --name-only origin/master...$current_branch').trim()
As, I am able to get last commit changes using the below-mentioned command.
COMMIT_CHANGE_SET = sh(returnStdout: true, script: 'git diff-tree --no-commit-id --name-only -r HEAD').trim()
Jenkins pipeline git syntax command to get a difference master and feature branch