if it is a relatively new repository on GitHub the default branch is ‘main’ not ‘master’ so you have to check you are passing that branch in the SCM configuration
El miércoles, 22 de diciembre de 2021 a las 23:04:38 UTC+1, Melo Vi escribió: > Have you verified that the commit hash you are trying to build exists in > your git repository? > > On Thursday, December 23, 2021 at 1:04:00 AM UTC+13 shivp...@gmail.com > wrote: > >> Started by user admin [Pipeline] Start of Pipeline [Pipeline] node >> Running on Jenkins in >> C:\ProgramData\Jenkins\.jenkins\workspace\terraformCICD [Pipeline] { >> [Pipeline] stage [Pipeline] { (fetch_latest_code) [Pipeline] git Selected >> Git installation does not exist. Using Default The recommended git tool is: >> NONE using credential e7d2502e-6621-49c6-a934-813269c16141 > C:\Program >> Files\Git\bin\git.exe rev-parse --resolve-git-dir >> C:\ProgramData\Jenkins\.jenkins\workspace\terraformCICD\.git # timeout=10 >> Fetching changes from the remote Git repository > C:\Program >> Files\Git\bin\git.exe config remote.origin.url >> https://github.com/****/test # timeout=10 Fetching upstream changes from >> https://github.com/*****/test > C:\Program Files\Git\bin\git.exe >> --version # timeout=10 > git --version # 'git version 2.21.0.windows.1' >> using GIT_ASKPASS to set credentials > C:\Program Files\Git\bin\git.exe >> fetch --tags --force --progress -- https://github.com/****/test >> +refs/heads/*:refs/remotes/origin/* # timeout=10 > 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 [Pipeline] } [Pipeline] // stage >> [Pipeline] stage [Pipeline] { (TF Init&Plan) Stage "TF Init&Plan" skipped >> due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage >> [Pipeline] { (Approval) Stage "Approval" skipped due to earlier failure(s) >> [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (TF Apply) >> Stage "TF Apply" skipped due to earlier failure(s) [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. Finished: FAILURE >> > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e59c9708-aa0b-4df3-b90e-e7d79d2184acn%40googlegroups.com.