{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/debian-pbuilder-plugin/issues/1","repository_url":"https://api.github.com/repos/jenkinsci/debian-pbuilder-plugin","labels_url":"https://api.github.com/repos/jenkinsci/debian-pbuilder-plugin/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/debian-pbuilder-plugin/issues/1/comments","events_url":"https://api.github.com/repos/jenkinsci/debian-pbuilder-plugin/issues/1/events","html_url":"https://github.com/jenkinsci/debian-pbuilder-plugin/pull/1","id":314340158,"number":1,"title":"Added test for isDebianDistribution and isUbuntuDistribution to correct building Ubuntu debs on Ubuntu","user":{"login":"jayjlawrence","id":1862335,"avatar_url":"https://avatars3.githubusercontent.com/u/1862335?v=4","gravatar_id":"","url":"https://api.github.com/users/jayjlawrence","html_url":"https://github.com/jayjlawrence","followers_url":"https://api.github.com/users/jayjlawrence/followers","following_url":"https://api.github.com/users/jayjlawrence/following{/other_user}","gists_url":"https://api.github.com/users/jayjlawrence/gists{/gist_id}","starred_url":"https://api.github.com/users/jayjlawrence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayjlawrence/subscriptions","organizations_url":"https://api.github.com/users/jayjlawrence/orgs","repos_url":"https://api.github.com/users/jayjlawrence/repos","events_url":"https://api.github.com/users/jayjlawrence/events{/privacy}","received_events_url":"https://api.github.com/users/jayjlawrence/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-14T16:02:21Z","updated_at":"2018-04-15T16:47:02Z","closed_at":"2018-04-15T16:18:36Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/jenkinsci/debian-pbuilder-plugin/pulls/1","html_url":"https://github.com/jenkinsci/debian-pbuilder-plugin/pull/1","diff_url":"https://github.com/jenkinsci/debian-pbuilder-plugin/pull/1.diff","patch_url":"https://github.com/jenkinsci/debian-pbuilder-plugin/pull/1.patch"},"body":"I am building a xenial package on a bionic box.\r\n\r\nThe current cowbuilder command created is:\r\n\r\n`sudo cowbuilder --create --basepath /var/cache/pbuilder/base-xenial-amd64 --distribution xenial --debootstrap debootstrap --architecture amd64 --debootstrapopts --arch --debootstrapopts amd64 --debootstrapopts --variant=buildd --configfile /var/lib/jenkins/workspace/test-project/pbuilderrc6804862912072590958.tmp --hookdir /var/lib/jenkins/workspace/test-project/hookdir`\r\n\r\nThis results in a few errors including:\r\n`E: Release signed by unknown key (key id 3B4FE6ACC0B21F32)`\r\n\r\nbecause of the option \"--keyring=/usr/share/keyrings/debian-archive-keyring.gpg\" being written to the pbuilderrc.tmp file.\r\n\r\n(I am not a Java programmer, so!) I added a couple methods, one used, one anticipated. Extended the test to write the keyring only if this is package for a Debian distro being built on an Ubuntu box. If it is Ubuntu on Ubuntu then this keyring value is undesirable.\r\n\r\nThanks!\r\nJay"},"comment":{"url":"https://api.github.com/repos/jenkinsci/debian-pbuilder-plugin/issues/comments/381420489","html_url":"https://github.com/jenkinsci/debian-pbuilder-plugin/pull/1#issuecomment-381420489","issue_url":"https://api.github.com/repos/jenkinsci/debian-pbuilder-plugin/issues/1","id":381420489,"user":{"login":"rm5248","id":56099,"avatar_url":"https://avatars3.githubusercontent.com/u/56099?v=4","gravatar_id":"","url":"https://api.github.com/users/rm5248","html_url":"https://github.com/rm5248","followers_url":"https://api.github.com/users/rm5248/followers","following_url":"https://api.github.com/users/rm5248/following{/other_user}","gists_url":"https://api.github.com/users/rm5248/gists{/gist_id}","starred_url":"https://api.github.com/users/rm5248/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rm5248/subscriptions","organizations_url":"https://api.github.com/users/rm5248/orgs","repos_url":"https://api.github.com/users/rm5248/repos","events_url":"https://api.github.com/users/rm5248/events{/privacy}","received_events_url":"https://api.github.com/users/rm5248/received_events","type":"User","site_admin":false},"created_at":"2018-04-15T16:47:02Z","updated_at":"2018-04-15T16:47:02Z","author_association":"NONE","body":"I added another check for logic to see if the keyring file actually exists.  If you could try out the updated version and ensure that it is working properly, I would appreciate it: https://ci.jenkins.io/job/Plugins/job/debian-pbuilder-plugin/job/master/"}}
{"actor":{"display_login":"rm5248"}}