Jenkins build error with Revision error

I tried to run Jenkins on a simple Python test. This is my first time, so I followed the steps mentioned in this tutorial: Link

My Jenkins console after I called the assembly shows that it failed because it could not find any revision.

Here is the console output:

Started by user anonymous Building in workspace /usr/share/tomcat7/.jenkins/jobs/PythonUIProject/workspace > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url /home/rahul/PycharmProjects/.git/ # timeout=10 Fetching upstream changes from /home/rahul/PycharmProjects/.git/ > git --version # timeout=10 > git -c core.askpass=true fetch --tags --progress /home/rahul/PycharmProjects/.git/ +refs/heads/*:refs/remotes/origin/* Seen 0 remote branches ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job. Finished: FAILURE 

My Git installation folder is: home/rahul/PycharmProjects/ , and my system is Ubuntu 14.04 LTS .

I tried changing Branches to Build under Source Code Management configuration as ** instead of */master as a workaround, but that didn't work.

Has anyone worked on this before? What should be the solution to this.

Edit 1: As suggested, I tried using git push to enter the code, but I get the following:

 rahul@oneplusone :~/PycharmProjects$ git push -u /home/rahul/PycharmProjects/.git master error: src refspec master does not match any. error: failed to push some refs to '/home/rahul/PycharmProjects/.git' 
+5
source share
1 answer

Make sure your branches are pushed up. Otherwise, you can try to remove "* /" from your branch (just use master instead of */master )

+1
source

Source: https://habr.com/ru/post/1243833/


All Articles