Hello Everyone,
I am new to Jenkins need help with one of the error message. I am trying to Build project when a push operation is done on GitHub. Please help me to resolve the issue.
I just created a new project in the GitHub (JenkinsPractice)
Created a new java program Hello world with Initial commit with the code.
I am getting an error message in Jenkins. "ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job."
Please find the attached screenshot for the settings.
Console Output
Started by GitHub push by kanandan12
Running as SYSTEM
Building in workspace C:\Users\koush\.jenkins\workspace\GitSampleProject
The recommended git tool is: NONE
No credentials specified
Cloning the remote Git repository
Cloning repository
https://github.com/kanandan12/JenkinsPractice.git
> C:\Program Files\Git\bin\git.exe init C:\Users\koush\.jenkins\workspace\GitSampleProject # timeout=10
Fetching upstream changes from
https://github.com/kanandan12/JenkinsPractice.git
> C:\Program Files\Git\bin\git.exe --version # timeout=10
> git --version # 'git version 2.35.1.windows.2'
> C:\Program Files\Git\bin\git.exe fetch --tags --force --progress --
https://github.com/kanandan12/JenkinsPractice.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> C:\Program Files\Git\bin\git.exe config remote.origin.url
https://github.com/kanandan12/JenkinsPractice.git # timeout=10
> C:\Program Files\Git\bin\git.exe config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
> C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
> C:\Program Files\Git\bin\git.exe rev-parse "origin/master^{commit}" # timeout=10
ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
Finished: FAILURE