{"action":"created","issue":{"url":"https://api.github.com/repos/KrauseFx/fastlane_core/issues/6","labels_url":"https://api.github.com/repos/KrauseFx/fastlane_core/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/KrauseFx/fastlane_core/issues/6/comments","events_url":"https://api.github.com/repos/KrauseFx/fastlane_core/issues/6/events","html_url":"https://github.com/KrauseFx/fastlane_core/issues/6","id":59508455,"number":6,"title":"\"Running in Jenkins\" detector helper method, like Helper.test?","user":{"login":"dtrenz","id":639833,"avatar_url":"https://avatars.githubusercontent.com/u/639833?v=3","gravatar_id":"","url":"https://api.github.com/users/dtrenz","html_url":"https://github.com/dtrenz","followers_url":"https://api.github.com/users/dtrenz/followers","following_url":"https://api.github.com/users/dtrenz/following{/other_user}","gists_url":"https://api.github.com/users/dtrenz/gists{/gist_id}","starred_url":"https://api.github.com/users/dtrenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtrenz/subscriptions","organizations_url":"https://api.github.com/users/dtrenz/orgs","repos_url":"https://api.github.com/users/dtrenz/repos","events_url":"https://api.github.com/users/dtrenz/events{/privacy}","received_events_url":"https://api.github.com/users/dtrenz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-02T16:53:44Z","updated_at":"2015-03-02T17:11:55Z","closed_at":null,"body":"As a developer,\r\nI would like to be able to easily detect if fastlane is running in a Jenkins environment vs. locally \r\nSo that I can wrap CI environment specific settings.\r\n\r\nUsage example:\r\n```ruby\r\nif Helper.jenkins?\r\n  ENV[\"DEVELOPER_DIR\"] = \"/Applications/Xcode6.1.app/Contents/Developer\"\r\nendif\r\n```"},"comment":{"url":"https://api.github.com/repos/KrauseFx/fastlane_core/issues/comments/76753666","html_url":"https://github.com/KrauseFx/fastlane_core/issues/6#issuecomment-76753666","issue_url":"https://api.github.com/repos/KrauseFx/fastlane_core/issues/6","id":76753666,"user":{"login":"dtrenz","id":639833,"avatar_url":"https://avatars.githubusercontent.com/u/639833?v=3","gravatar_id":"","url":"https://api.github.com/users/dtrenz","html_url":"https://github.com/dtrenz","followers_url":"https://api.github.com/users/dtrenz/followers","following_url":"https://api.github.com/users/dtrenz/following{/other_user}","gists_url":"https://api.github.com/users/dtrenz/gists{/gist_id}","starred_url":"https://api.github.com/users/dtrenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtrenz/subscriptions","organizations_url":"https://api.github.com/users/dtrenz/orgs","repos_url":"https://api.github.com/users/dtrenz/repos","events_url":"https://api.github.com/users/dtrenz/events{/privacy}","received_events_url":"https://api.github.com/users/dtrenz/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T17:11:55Z","updated_at":"2015-03-02T17:11:55Z","body":"I would probably look for Jekins ENV vars (i.e. \"ENV[\"JOB_NAME\"]).\r\n\r\nI like `Helper.is_ci?` but we would have to be explicit about which CI environments we are able to detect. \r\n\r\nMaybe a good first step is a `Helper.is_jenkins?` method that could be called by a more general `Helper.is_ci?` method? Later we could try to add other CI detection methods like `Helper.is_travis?`."}}