{"action":"closed","issue":{"url":"https://api.github.com/repos/codecov/codecov-bash/issues/71","repository_url":"https://api.github.com/repos/codecov/codecov-bash","labels_url":"https://api.github.com/repos/codecov/codecov-bash/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/codecov/codecov-bash/issues/71/comments","events_url":"https://api.github.com/repos/codecov/codecov-bash/issues/71/events","html_url":"https://github.com/codecov/codecov-bash/issues/71","id":231838153,"number":71,"title":"Silent failure detecting Jenkins branch","user":{"login":"ileitch","id":48235,"avatar_url":"https://avatars0.githubusercontent.com/u/48235?v=4","gravatar_id":"","url":"https://api.github.com/users/ileitch","html_url":"https://github.com/ileitch","followers_url":"https://api.github.com/users/ileitch/followers","following_url":"https://api.github.com/users/ileitch/following{/other_user}","gists_url":"https://api.github.com/users/ileitch/gists{/gist_id}","starred_url":"https://api.github.com/users/ileitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ileitch/subscriptions","organizations_url":"https://api.github.com/users/ileitch/orgs","repos_url":"https://api.github.com/users/ileitch/repos","events_url":"https://api.github.com/users/ileitch/events{/privacy}","received_events_url":"https://api.github.com/users/ileitch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-28T00:55:27Z","updated_at":"2018-02-03T09:22:41Z","closed_at":"2018-02-03T09:22:41Z","author_association":"NONE","body":"When running against `master` in our setup, neither `$BRANCH_NAME` or `$GIT_BRANCH` exist in the environment. As a result, codecov exits when trying to detect the branch:\r\n\r\n```\r\n+ search_in=.\r\n+ '[' fddf '!=' '' ']'\r\n+ say '\\033[0;90m==>\\033[0m Jenkins CI detected.'\r\n+ echo -e '\\033[0;90m==>\\033[0m Jenkins CI detected.'\r\n==> Jenkins CI detected.\r\n+ service=jenkins\r\n++ '[' '!' -z '' ']'\r\n++ '[' '!' -z '' ']'\r\n++ '[' '!' -z '' ']'\r\n+ branch=\r\n```\r\n\r\nI'm not sure what changed, but this used to work fine a few months ago when I last tried."}}
{"actor":{"display_login":"ileitch"}}