{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/comments/37075086","id":37075086,"diff_hunk":"@@ -0,0 +1,32 @@\n+package hudson.maven;\n+\n+import jenkins.model.Jenkins;\n+\n+import javax.annotation.CheckForNull;\n+import java.io.IOException;\n+import java.util.List;\n+\n+/**\n+ * Identify the Host name to use from maven-agent to connect to to jenkins slave agent TCP socket.\n+ * <p>\n+ * In simple scenarios both slave agent and maven process do live on same host without specific network\n+ * constraints, but for some virtualization usages maven process just can't bind a socket on wildcard\n+ * host network. This extension give infrastructure plugins a chance to configure the adequate hostname.\n+ * to handle such network constraints\n+ *\n+ * @author <a href=\"mailto:nicolas.deloof@gmail.com\">Nicolas De Loof</a>\n+ */\n+public abstract class TcpSocketHostLocator {\n+\n+    /**\n+     * Try to identify the slave agent TCP socket host name or IP.\n+     * @return <code>null</code> if not found or does not apply to this specific implementation\n+     * @throws IOException\n+     */\n+    public abstract @CheckForNull String getTcpSocketHost() throws IOException;\n+\n+    public static List<TcpSocketHostLocator> all() {\n+        return Jenkins.getInstance().getExtensionList(TcpSocketHostLocator.class);","path":"src/main/java/hudson/maven/TcpSocketHostLocator.java","position":29,"original_position":29,"commit_id":"286a281bcaa81a0b9e80c1cfbfa4a1c9a46cf777","original_commit_id":"286a281bcaa81a0b9e80c1cfbfa4a1c9a46cf777","user":{"login":"jglick","id":154109,"avatar_url":"https://avatars.githubusercontent.com/u/154109?v=3","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"body":"`ExtensionList.lookup`","created_at":"2015-08-14T13:20:51Z","updated_at":"2015-08-14T13:20:51Z","html_url":"https://github.com/jenkinsci/maven-plugin/pull/51#discussion_r37075086","pull_request_url":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/51","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/comments/37075086"},"html":{"href":"https://github.com/jenkinsci/maven-plugin/pull/51#discussion_r37075086"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/51","id":42453362,"html_url":"https://github.com/jenkinsci/maven-plugin/pull/51","diff_url":"https://github.com/jenkinsci/maven-plugin/pull/51.diff","patch_url":"https://github.com/jenkinsci/maven-plugin/pull/51.patch","issue_url":"https://api.github.com/repos/jenkinsci/maven-plugin/issues/51","number":51,"state":"open","locked":false,"title":"introduce TcpSocketHostLocator extension point","user":{"login":"ndeloof","id":132757,"avatar_url":"https://avatars.githubusercontent.com/u/132757?v=3","gravatar_id":"","url":"https://api.github.com/users/ndeloof","html_url":"https://github.com/ndeloof","followers_url":"https://api.github.com/users/ndeloof/followers","following_url":"https://api.github.com/users/ndeloof/following{/other_user}","gists_url":"https://api.github.com/users/ndeloof/gists{/gist_id}","starred_url":"https://api.github.com/users/ndeloof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndeloof/subscriptions","organizations_url":"https://api.github.com/users/ndeloof/orgs","repos_url":"https://api.github.com/users/ndeloof/repos","events_url":"https://api.github.com/users/ndeloof/events{/privacy}","received_events_url":"https://api.github.com/users/ndeloof/received_events","type":"User","site_admin":false},"body":"relies on https://github.com/jenkinsci/maven-interceptors/pull/8\r\nrefactor MAVEN_REMOTE_USEINET so this one is just one-of case communication between maven agent and slave agent do require some netork tweaks","created_at":"2015-08-14T13:02:44Z","updated_at":"2015-08-14T13:20:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82a8c0255bdef9c4d35e8231a614ef2b2ea36bdf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/51/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/51/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/maven-plugin/issues/51/comments","statuses_url":"https://api.github.com/repos/jenkinsci/maven-plugin/statuses/286a281bcaa81a0b9e80c1cfbfa4a1c9a46cf777","head":{"label":"ndeloof:JENKINS-21746","ref":"JENKINS-21746","sha":"286a281bcaa81a0b9e80c1cfbfa4a1c9a46cf777","user":{"login":"ndeloof","id":132757,"avatar_url":"https://avatars.githubusercontent.com/u/132757?v=3","gravatar_id":"","url":"https://api.github.com/users/ndeloof","html_url":"https://github.com/ndeloof","followers_url":"https://api.github.com/users/ndeloof/followers","following_url":"https://api.github.com/users/ndeloof/following{/other_user}","gists_url":"https://api.github.com/users/ndeloof/gists{/gist_id}","starred_url":"https://api.github.com/users/ndeloof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndeloof/subscriptions","organizations_url":"https://api.github.com/users/ndeloof/orgs","repos_url":"https://api.github.com/users/ndeloof/repos","events_url":"https://api.github.com/users/ndeloof/events{/privacy}","received_events_url":"https://api.github.com/users/ndeloof/received_events","type":"User","site_admin":false},"repo":{"id":24736474,"name":"maven-plugin","full_name":"ndeloof/maven-plugin","owner":{"login":"ndeloof","id":132757,"avatar_url":"https://avatars.githubusercontent.com/u/132757?v=3","gravatar_id":"","url":"https://api.github.com/users/ndeloof","html_url":"https://github.com/ndeloof","followers_url":"https://api.github.com/users/ndeloof/followers","following_url":"https://api.github.com/users/ndeloof/following{/other_user}","gists_url":"https://api.github.com/users/ndeloof/gists{/gist_id}","starred_url":"https://api.github.com/users/ndeloof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndeloof/subscriptions","organizations_url":"https://api.github.com/users/ndeloof/orgs","repos_url":"https://api.github.com/users/ndeloof/repos","events_url":"https://api.github.com/users/ndeloof/events{/privacy}","received_events_url":"https://api.github.com/users/ndeloof/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ndeloof/maven-plugin","description":"","fork":true,"url":"https://api.github.com/repos/ndeloof/maven-plugin","forks_url":"https://api.github.com/repos/ndeloof/maven-plugin/forks","keys_url":"https://api.github.com/repos/ndeloof/maven-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndeloof/maven-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndeloof/maven-plugin/teams","hooks_url":"https://api.github.com/repos/ndeloof/maven-plugin/hooks","issue_events_url":"https://api.github.com/repos/ndeloof/maven-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/ndeloof/maven-plugin/events","assignees_url":"https://api.github.com/repos/ndeloof/maven-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/ndeloof/maven-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/ndeloof/maven-plugin/tags","blobs_url":"https://api.github.com/repos/ndeloof/maven-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndeloof/maven-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndeloof/maven-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndeloof/maven-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndeloof/maven-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/ndeloof/maven-plugin/languages","stargazers_url":"https://api.github.com/repos/ndeloof/maven-plugin/stargazers","contributors_url":"https://api.github.com/repos/ndeloof/maven-plugin/contributors","subscribers_url":"https://api.github.com/repos/ndeloof/maven-plugin/subscribers","subscription_url":"https://api.github.com/repos/ndeloof/maven-plugin/subscription","commits_url":"https://api.github.com/repos/ndeloof/maven-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndeloof/maven-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndeloof/maven-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndeloof/maven-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndeloof/maven-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/ndeloof/maven-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndeloof/maven-plugin/merges","archive_url":"https://api.github.com/repos/ndeloof/maven-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndeloof/maven-plugin/downloads","issues_url":"https://api.github.com/repos/ndeloof/maven-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/ndeloof/maven-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/ndeloof/maven-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/ndeloof/maven-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndeloof/maven-plugin/labels{/name}","releases_url":"https://api.github.com/repos/ndeloof/maven-plugin/releases{/id}","created_at":"2014-10-02T21:01:10Z","updated_at":"2014-10-02T21:01:36Z","pushed_at":"2015-08-14T13:01:24Z","git_url":"git://github.com/ndeloof/maven-plugin.git","ssh_url":"git@github.com:ndeloof/maven-plugin.git","clone_url":"https://github.com/ndeloof/maven-plugin.git","svn_url":"https://github.com/ndeloof/maven-plugin","homepage":"","size":3448,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jenkinsci:master","ref":"master","sha":"a598af0a555a1319cf330799fcda017215107d93","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"repo":{"id":13022394,"name":"maven-plugin","full_name":"jenkinsci/maven-plugin","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkinsci/maven-plugin","description":"","fork":false,"url":"https://api.github.com/repos/jenkinsci/maven-plugin","forks_url":"https://api.github.com/repos/jenkinsci/maven-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/maven-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/maven-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/maven-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/maven-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/maven-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/maven-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/maven-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/maven-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/maven-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/maven-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/maven-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/maven-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/maven-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/maven-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/maven-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/maven-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/maven-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/maven-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/maven-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/maven-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/maven-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/maven-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/maven-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/maven-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/maven-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/maven-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/maven-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/maven-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/maven-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/maven-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/maven-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/maven-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/maven-plugin/releases{/id}","created_at":"2013-09-22T22:52:27Z","updated_at":"2015-07-21T15:17:01Z","pushed_at":"2015-08-14T13:02:44Z","git_url":"git://github.com/jenkinsci/maven-plugin.git","ssh_url":"git@github.com:jenkinsci/maven-plugin.git","clone_url":"https://github.com/jenkinsci/maven-plugin.git","svn_url":"https://github.com/jenkinsci/maven-plugin","homepage":"","size":5812,"stargazers_count":12,"watchers_count":12,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":74,"mirror_url":null,"open_issues_count":10,"forks":74,"open_issues":10,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/51"},"html":{"href":"https://github.com/jenkinsci/maven-plugin/pull/51"},"issue":{"href":"https://api.github.com/repos/jenkinsci/maven-plugin/issues/51"},"comments":{"href":"https://api.github.com/repos/jenkinsci/maven-plugin/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/maven-plugin/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/maven-plugin/statuses/286a281bcaa81a0b9e80c1cfbfa4a1c9a46cf777"}}}}