{"action":"created","issue":{"url":"https://api.github.com/repos/gitbucket/gitbucket/issues/1946","repository_url":"https://api.github.com/repos/gitbucket/gitbucket","labels_url":"https://api.github.com/repos/gitbucket/gitbucket/issues/1946/labels{/name}","comments_url":"https://api.github.com/repos/gitbucket/gitbucket/issues/1946/comments","events_url":"https://api.github.com/repos/gitbucket/gitbucket/issues/1946/events","html_url":"https://github.com/gitbucket/gitbucket/issues/1946","id":312373833,"number":1946,"title":"Jenkins Github Organization job type not discovering Jenkinsfile in `master`","user":{"login":"dkowis","id":28048,"avatar_url":"https://avatars2.githubusercontent.com/u/28048?v=4","gravatar_id":"","url":"https://api.github.com/users/dkowis","html_url":"https://github.com/dkowis","followers_url":"https://api.github.com/users/dkowis/followers","following_url":"https://api.github.com/users/dkowis/following{/other_user}","gists_url":"https://api.github.com/users/dkowis/gists{/gist_id}","starred_url":"https://api.github.com/users/dkowis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkowis/subscriptions","organizations_url":"https://api.github.com/users/dkowis/orgs","repos_url":"https://api.github.com/users/dkowis/repos","events_url":"https://api.github.com/users/dkowis/events{/privacy}","received_events_url":"https://api.github.com/users/dkowis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-09T02:45:14Z","updated_at":"2018-04-09T05:53:35Z","closed_at":null,"author_association":"NONE","body":"## Issue\r\n**Impacted version**: 4.23.0\r\n* jenkins: 2.107.1\r\n* github-branch-source: 2.3.3\r\n* github-api: 1.90\r\n\r\n**Deployment mode**: Standalone war file\r\n\r\n**Problem description**:\r\n\r\nI'm pretty confident this used to work, but I haven't been able to play with my jenkins/gitbucket setup at home in a while. The problem I'm seeing is that jenkins is no longer picking up the master branch to do builds on. It's not selecting the branch to do work.\r\n\r\n```text\r\nOrganization URL: https://gitbucket.light.kow.is/dkowis\r\n[Sun Apr 08 21:33:23 CDT 2018] Consulting GitHub Organization\r\n21:33:23 Connecting to https://gitbucket.light.kow.is/api/v3 using dkowis/****** (David Kowis' Credentials)\r\n21:33:23 Looking up repositories of myself dkowis\r\nProposing monopolytracker\r\nExamining dkowis/monopolytracker\r\n\r\n  Checking branches...\r\n\r\n  Getting remote branches...\r\n\r\n    Checking branch master\r\n\r\n  Getting remote pull requests...\r\n      ‘Jenkinsfile’ not found\r\n    Does not meet criteria\r\n\r\n  1 branches were processed\r\n\r\n  Checking pull-requests...\r\n\r\n  0 pull requests were processed\r\n\r\nFinished examining dkowis/monopolytracker\r\n```\r\n\r\nThere's only one branch, and it's got a `Jenkinsfile`, so it should be selected to build, but it appears that it's somehow unable to find that Jenkinsfile, and so is not building anything at all.\r\n\r\nIt will pick up pull requests, and other branches and build those, but it doesn't seem to do it until after the scan happens. I'm not sure if the pull request payload changed, but I don't think that's it. There's no errors in the log from Jenkins.\r\n\r\n```text\r\nINFO: dkowis_organization #20180408.212946 organization scan action completed: SUCCESS in 1.4 sec\r\nApr 08, 2018 9:30:22 PM org.jenkinsci.plugins.github.webhook.WebhookManager$1 run\r\nINFO: GitHub webhooks activated for job dkowis_organization with [] (events: [REPOSITORY])\r\nApr 08, 2018 9:30:22 PM org.jenkinsci.plugins.github_branch_source.GitHubOrgWebHook register\r\nWARNING: Failed to register GitHub Org hook to https://gitbucket.light.kow.is/dkowis (missing permissions?): {\"message\":\"Not Found\"}\r\nApr 08, 2018 9:30:30 PM jenkins.branch.OrganizationFolder$OrganizationScan run\r\nINFO: dkowis_organization #20180408.213022 organization scan action completed: SUCCESS in 7.8 sec\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/gitbucket/gitbucket/issues/comments/379640827","html_url":"https://github.com/gitbucket/gitbucket/issues/1946#issuecomment-379640827","issue_url":"https://api.github.com/repos/gitbucket/gitbucket/issues/1946","id":379640827,"user":{"login":"takezoe","id":1094760,"avatar_url":"https://avatars1.githubusercontent.com/u/1094760?v=4","gravatar_id":"","url":"https://api.github.com/users/takezoe","html_url":"https://github.com/takezoe","followers_url":"https://api.github.com/users/takezoe/followers","following_url":"https://api.github.com/users/takezoe/following{/other_user}","gists_url":"https://api.github.com/users/takezoe/gists{/gist_id}","starred_url":"https://api.github.com/users/takezoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takezoe/subscriptions","organizations_url":"https://api.github.com/users/takezoe/orgs","repos_url":"https://api.github.com/users/takezoe/repos","events_url":"https://api.github.com/users/takezoe/events{/privacy}","received_events_url":"https://api.github.com/users/takezoe/received_events","type":"User","site_admin":false},"created_at":"2018-04-09T05:53:35Z","updated_at":"2018-04-09T05:53:35Z","author_association":"OWNER","body":"I guess it caused by the bug in Contents API (#1943). It has been already fixed in #1940 and going to be released in tye next version of GitBucket (4.24.0 or 4.23.1)."}}
{"actor":{"display_login":"takezoe"}}