{"action":"created","issue":{"url":"https://api.github.com/repos/javiplx/jenkins-gitlab-hook-plugin/issues/90","labels_url":"https://api.github.com/repos/javiplx/jenkins-gitlab-hook-plugin/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/javiplx/jenkins-gitlab-hook-plugin/issues/90/comments","events_url":"https://api.github.com/repos/javiplx/jenkins-gitlab-hook-plugin/issues/90/events","html_url":"https://github.com/javiplx/jenkins-gitlab-hook-plugin/issues/90","id":115206491,"number":90,"title":"rev-parse when using TAGNAME fails","user":{"login":"cliles","id":2300642,"avatar_url":"https://avatars.githubusercontent.com/u/2300642?v=3","gravatar_id":"","url":"https://api.github.com/users/cliles","html_url":"https://github.com/cliles","followers_url":"https://api.github.com/users/cliles/followers","following_url":"https://api.github.com/users/cliles/following{/other_user}","gists_url":"https://api.github.com/users/cliles/gists{/gist_id}","starred_url":"https://api.github.com/users/cliles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cliles/subscriptions","organizations_url":"https://api.github.com/users/cliles/orgs","repos_url":"https://api.github.com/users/cliles/repos","events_url":"https://api.github.com/users/cliles/events{/privacy}","received_events_url":"https://api.github.com/users/cliles/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-11-05T04:20:27Z","updated_at":"2016-01-10T18:55:29Z","closed_at":null,"body":"Following issue #45 from elvanja/jenkins-gitlab-hook-plugin and the documentation -\r\n\r\nSetting the branch specifier to ```refs/tags/${TAGNAME}``` works and the build is triggered, but when the build runs, I am getting the following.\r\n\r\n```\r\n > git rev-parse refs/tags/^{commit} # timeout=10\r\n > git rev-parse refs/remotes/origin/refs/tags/^{commit} # timeout=10\r\n > git rev-parse refs/tags/^{commit} # timeout=10\r\nERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.\r\n```\r\n\r\nIt seems that for unknown reason the rev-parse is not picking up the TAGNAME.\r\n"},"comment":{"url":"https://api.github.com/repos/javiplx/jenkins-gitlab-hook-plugin/issues/comments/170381841","html_url":"https://github.com/javiplx/jenkins-gitlab-hook-plugin/issues/90#issuecomment-170381841","issue_url":"https://api.github.com/repos/javiplx/jenkins-gitlab-hook-plugin/issues/90","id":170381841,"user":{"login":"javiplx","id":32879,"avatar_url":"https://avatars.githubusercontent.com/u/32879?v=3","gravatar_id":"","url":"https://api.github.com/users/javiplx","html_url":"https://github.com/javiplx","followers_url":"https://api.github.com/users/javiplx/followers","following_url":"https://api.github.com/users/javiplx/following{/other_user}","gists_url":"https://api.github.com/users/javiplx/gists{/gist_id}","starred_url":"https://api.github.com/users/javiplx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiplx/subscriptions","organizations_url":"https://api.github.com/users/javiplx/orgs","repos_url":"https://api.github.com/users/javiplx/repos","events_url":"https://api.github.com/users/javiplx/events{/privacy}","received_events_url":"https://api.github.com/users/javiplx/received_events","type":"User","site_admin":false},"created_at":"2016-01-10T18:55:29Z","updated_at":"2016-01-10T18:55:29Z","body":"I've realized that there is a case where what you describe could happen. If you have a single jenkins project tracking a repository, and that project is prepared to build tags, a standard push will not automatically create a project to track standard branches. Then **_if_** (I'm unsure on that) the jenkins project is built after a push, will not be able to assign TAGNAME because there is no tag on payload, and will produce the job log that you posted.\r\nNow that I'm realized of this case, will try to add to acceptance checks to verify whether it is actually happening, and then try to fix after reproducing it."}}