node {
deleteDir() checkout([$class: 'GitSCM', branches: [[name: 'feature/my-branch]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CleanBeforeCheckout'],[$class: 'PruneStaleBranch']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'aaa-aaa-aaa-aaa', url: GIT_URL]]])}
Checking out git ssh://g...@stash.com:7999/capt/jenkins-pipelines.git to read Jenkinsfile-pull-requestWiping out workspace first.Cloning the remote Git repositoryCloning repository ssh://g...@stash.com:7999/capt/jenkins-pipelines.git > git init /var/lib/jenkins/workspace/API/merchant-profile-and-preferences/pr-pipeline@script # timeout=10Fetching upstream changes from ssh://g...@stash.com:7999/capt/jenkins-pipelines.git > git --version # timeout=10using GIT_SSH to set credentials automated repo access > git fetch --tags --progress ssh://g...@stash.com:7999/capt/jenkins-pipelines.git +refs/heads/*:refs/remotes/origin/* > git config remote.origin.url ssh://g...@stash.com:7999/capt/jenkins-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url ssh://g...@stash.com:7999/capt/jenkins-pipelines.git # timeout=10Fetching upstream changes from ssh://g...@stash.com:7999/capt/jenkins-pipelines.gitusing GIT_SSH to set credentials automated repo access > git fetch --tags --progress ssh://g...@stash.com:7999/capt/jenkins-pipelines.git +refs/heads/*:refs/remotes/origin/* > git rev-parse origin/develop^{commit} # timeout=10Checking out Revision 81cbf859af011118d159c8c3a89cb796b4b1b536 (origin/develop) > git config core.sparsecheckout # timeout=10 > git checkout -f 81cbf859af011118d159c8c3a89cb796b4b1b536 > git rev-list 571b6661262fa11ce2e1088338c1f19cd1a5110d # timeout=10First time build. Skipping changelog.[Pipeline] nodeRunning on q7bld02 in /var/lib/jenkins/workspace/API/merchant-profile-and-preferences/pr-pipeline[Pipeline] {[Pipeline] deleteDir[Pipeline] checkoutCloning the remote Git repositoryCloning repository ssh://g...@stash.com:7999/api/mpp.git > git init /var/lib/jenkins/workspace/API/merchant-profile-and-preferences/pr-pipeline # timeout=10Fetching upstream changes from ssh://g...@stash.com:7999/api/mpp.git > git --version # timeout=10using GIT_SSH to set credentials automated repo access > git fetch --tags --progress ssh://g...@stash.com:7999/api/mpp.git +refs/heads/*:refs/remotes/origin/* > git config remote.origin.url ssh://g...@stash.com:7999/api/mpp.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url ssh://g...@stash.com:7999/api/mpp.git # timeout=10Cleaning workspace > git rev-parse --verify HEAD # timeout=10No valid HEAD. Skipping the resetting > git clean -fdx # timeout=10Pruning obsolete local branchesFetching upstream changes from ssh://g...@stash.com:7999/api/mpp.gitusing GIT_SSH to set credentials automated repo access > git fetch --tags --progress ssh://g...@stash.com:7999/api/mpp.git +refs/heads/*:refs/remotes/origin/* --prune > git rev-parse feature/XMEN-512-duplicate-contact-cleanup^{commit} # timeout=10 > git rev-parse refs/remotes/origin/feature/XMEN-512-duplicate-contact-cleanup^{commit} # timeout=10 > git rev-parse feature/XMEN-512-duplicate-contact-cleanup^{commit} # timeout=10[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.Finished: FAILURE
I suspect you're encountering a conflict between the git plugin maintaining compatibility with old behavior, and the desire to support branch names which contain slashes.Refer to the online help in the git plugin for alternate ways to define a branch name. The format "word/word" is (unfortunately) ambiguous since it can be interpreted as either the local branch "feature/branch" or as a branch named "branch" on a remote named "feature".If you'll ask for "remote/feature/branch", I think you'll get the result you want.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a6a95098-8538-44ac-98ee-22b10e27c223%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.