{"action":"created","issue":{"url":"https://api.github.com/repos/Nerdwin15/stash-jenkins-postreceive-webhook/issues/133","labels_url":"https://api.github.com/repos/Nerdwin15/stash-jenkins-postreceive-webhook/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/Nerdwin15/stash-jenkins-postreceive-webhook/issues/133/comments","events_url":"https://api.github.com/repos/Nerdwin15/stash-jenkins-postreceive-webhook/issues/133/events","html_url":"https://github.com/Nerdwin15/stash-jenkins-postreceive-webhook/issues/133","id":95739319,"number":133,"title":"build notifications are broken for pull request operations","user":{"login":"anandsterlite","id":2102130,"avatar_url":"https://avatars.githubusercontent.com/u/2102130?v=3","gravatar_id":"","url":"https://api.github.com/users/anandsterlite","html_url":"https://github.com/anandsterlite","followers_url":"https://api.github.com/users/anandsterlite/followers","following_url":"https://api.github.com/users/anandsterlite/following{/other_user}","gists_url":"https://api.github.com/users/anandsterlite/gists{/gist_id}","starred_url":"https://api.github.com/users/anandsterlite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anandsterlite/subscriptions","organizations_url":"https://api.github.com/users/anandsterlite/orgs","repos_url":"https://api.github.com/users/anandsterlite/repos","events_url":"https://api.github.com/users/anandsterlite/events{/privacy}","received_events_url":"https://api.github.com/users/anandsterlite/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2015-07-17T20:37:02Z","updated_at":"2015-10-05T17:34:23Z","closed_at":null,"body":"When we submit a pull request or reopen or update, this plugin couldn't able to resolve 'SSH clone url' using Stash SPIs, so the build notifications to jenkins are failing around this functionality.\r\n\r\n\"POST /rest/api/latest/projects/PROJECT/repos/REPOSITORY/pull-requests/3/reopen HTTP/1.1\" com.nerdwin15.stash.webhook.Notifier Error getting Jenkins URL\r\njava.lang.IllegalStateException: There were no SSH clone links generated for repository PROJECT/REPOSITORY\r\n\tat com.atlassian.stash.internal.ssh.service.DefaultSshCloneUrlResolver.getCloneUrl(DefaultSshCloneUrlResolver.java:37) ~[na:na]\r\n\tat com.nerdwin15.stash.webhook.Notifier$2.perform(Notifier.java:258) ~[plugin.2984264582819201899.stash-webhook-jenkins-2.7.0_1437075501000.jar:na]\r\n\tat com.nerdwin15.stash.webhook.Notifier$2.perform(Notifier.java:255) ~[plugin.2984264582819201899.stash-webhook-jenkins-2.7.0_1437075501000.jar:na]\r\n\tat com.atlassian.stash.internal.user.DefaultEscalatedSecurityContext.call(DefaultEscalatedSecurityContext.java:51) ~[stash-service-impl-3.11.0.jar:na]\r\n\tat com.atlassian.stash.internal.user.DefaultSecurityService.doWithPermission(DefaultSecurityService.java:77) ~[stash-service-impl-3.11.0.jar:na]\r\n\tat com.nerdwin15.stash.webhook.Notifier.getUrl(Notifier.java:255) [plugin.2984264582819201899.stash-webhook-jenkins-2.7.0_1437075501000.jar:na]\r\n\tat com.nerdwin15.stash.webhook.Notifier.notify(Notifier.java:196) [plugin.2984264582819201899.stash-webhook-jenkins-2.7.0_1437075501000.jar:na]\r\n\tat com.nerdwin15.stash.webhook.Notifier.notify(Notifier.java:165) [plugin.2984264582819201899.stash-webhook-jenkins-2.7.0_1437075501000.jar:na]\r\n\tat com.nerdwin15.stash.webhook.Notifier$1.call(Notifier.java:144) [plugin.2984264582819201899.stash-webhook-jenkins-2.7.0_1437075501000.jar:na]\r\n\tat com.nerdwin15.stash.webhook.Notifier$1.call(Notifier.java:141) [plugin.2984264582819201899.stash-webhook-jenkins-2.7.0_1437075501000.jar:na]\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_75]\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_75]\r\n\tat java.lang.Thread.run(Thread.java:745) [na:1.7.0_75]\r\n\t... 44 frames trimmed"},"comment":{"url":"https://api.github.com/repos/Nerdwin15/stash-jenkins-postreceive-webhook/issues/comments/145607183","html_url":"https://github.com/Nerdwin15/stash-jenkins-postreceive-webhook/issues/133#issuecomment-145607183","issue_url":"https://api.github.com/repos/Nerdwin15/stash-jenkins-postreceive-webhook/issues/133","id":145607183,"user":{"login":"mtv-jira","id":2651726,"avatar_url":"https://avatars.githubusercontent.com/u/2651726?v=3","gravatar_id":"","url":"https://api.github.com/users/mtv-jira","html_url":"https://github.com/mtv-jira","followers_url":"https://api.github.com/users/mtv-jira/followers","following_url":"https://api.github.com/users/mtv-jira/following{/other_user}","gists_url":"https://api.github.com/users/mtv-jira/gists{/gist_id}","starred_url":"https://api.github.com/users/mtv-jira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtv-jira/subscriptions","organizations_url":"https://api.github.com/users/mtv-jira/orgs","repos_url":"https://api.github.com/users/mtv-jira/repos","events_url":"https://api.github.com/users/mtv-jira/events{/privacy}","received_events_url":"https://api.github.com/users/mtv-jira/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T17:34:23Z","updated_at":"2015-10-05T17:34:23Z","body":"Also ran into this after upgrade to 3.11.2.\r\n\r\nHowever, if I try to set the Clone URL Type to Custom and use the same SSH URL, it reverts to SSH type upon save.\r\n"}}