-
Bug
-
Resolution: Fixed
-
Blocker
-
None
When I use multiBranch pipeline to configure the PR CI for each branch, it works in a repo, but always failed right now in my new repo. the old repo is deleted, both of them are triggerred by webhook with token, as I remember.
now it failed with prompt msg:
ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
I post the logs for the passed version and failed version, please help to resolve this issue
passed logs & failed logs:
passed
Pull request #13 updated 02:46:05 Connecting to https://github.mthreads.com/api/v3 using lei.li01/****** (lei.li01-github) Obtained Jenkinsfile from 97461e8198a69c2154f978dadbdb8e55c366ff4e+8b0830425ce8228823d42eeb26677d2cd9727af4 (83b5b3a4b336172c6a5ad7d958cf30141445411e) [Pipeline] Start of Pipeline [Pipeline] node Running on 192.168.101.69 in /home/cts/jenkins/workspace/test_multiple_piplein2_PR-13 [Pipeline] { [Pipeline] stage [Pipeline] { (Code Checkout) [Pipeline] checkout Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential mt-robot Fetching changes from the remote Git repository Checking out Revision 6d8c186ad1f7fe9a3cb3dc599e27cc76eb6967ed (refs/remotes/origin/PR-13) Commit message: "Update Jenkinsfile" First time build. Skipping changelog. [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (GetProjectRep) [Pipeline] echo gr-kmd [Pipeline] checkout Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential lei.li01-github Fetching changes from the remote Git repository Fetching without tags Merging remotes/origin/master commit 8b0830425ce8228823d42eeb26677d2cd9727af4 into PR head commit 97461e8198a69c2154f978dadbdb8e55c366ff4e Merge succeeded, producing 54936786fcadc695ac867da0f988d8db8dcc257a Checking out Revision 54936786fcadc695ac867da0f988d8db8dcc257a (PR-13) Commit message: "Merge commit '8b0830425ce8228823d42eeb26677d2cd9727af4' into HEAD" > git rev-parse --resolve-git-dir /home/cts/jenkins/workspace/test_multiple_piplein2_PR-13/.git # timeout=10 > git config remote.origin.url https://github.mthreads.com/lei-li01/gr-kmd.git # timeout=10 Fetching upstream changes from https://github.mthreads.com/lei-li01/gr-kmd.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_ASKPASS to set credentials lei.li01-github > git fetch --no-tags --force --progress -- https://github.mthreads.com/lei-li01/gr-kmd.git +refs/pull/13/head:refs/remotes/origin/PR-13 +refs/heads/master:refs/remotes/origin/master # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 97461e8198a69c2154f978dadbdb8e55c366ff4e # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_ASKPASS to set credentials lei.li01-github > git merge 8b0830425ce8228823d42eeb26677d2cd9727af4 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 54936786fcadc695ac867da0f988d8db8dcc257a # timeout=10 > git rev-list --no-walk 6ac7081d8fe7dd14e83bfa88321e373526982ce6 # timeout=10 > git rev-parse --resolve-git-dir /home/cts/jenkins/workspace/test_multiple_piplein2_PR-13/.git # timeout=10 > git config remote.origin.url https://github.mthreads.com/lei-li01/gr-kmd.git # timeout=10 Fetching upstream changes from https://github.mthreads.com/lei-li01/gr-kmd.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_ASKPASS to set credentials mt-robot > git fetch --tags --force --progress -- https://github.mthreads.com/lei-li01/gr-kmd.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/PR-13^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 6d8c186ad1f7fe9a3cb3dc599e27cc76eb6967ed # timeout=10 [Pipeline] echo PR test. [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] echo Build ... [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline GitHub has been notified of this commit’s build result Finished: SUCCESS
failed:
Branch indexing 01:48:00 Connecting to https://github.mthreads.com/api/v3 using lei.li01/****** (lei.li01-github) Obtained Jenkinsfile from 6c59cd7c82f727e917424c9a3fd4c744d2103f9b+15dbf94530c2d306719608d700d5842ef6d140c5 (ed29c19823569038624013b69990dda1f4cc4e5b) [Pipeline] Start of Pipeline [Pipeline] node Running on 192.168.101.69 in /home/cts/jenkins/workspace/gr-kmd-v3_PR-10 [Pipeline] { [Pipeline] stage [Pipeline] { (Code Checkout) [Pipeline] echo current repo is: gr-kmd-v3 [Pipeline] echo current branch is PR-10 [Pipeline] checkout The recommended git tool is: NONE using credential lei.li01 Fetching changes from the remote Git repository [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job. GitHub has been notified of this commit’s build result Finished: FAILURE