{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/274","repository_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin","labels_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/274/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/274/comments","events_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/274/events","html_url":"https://github.com/jenkinsci/gitlab-plugin/issues/274","id":151586724,"number":274,"title":"MR build break down because the wrong value with \"gitlabSourceRepoURL\".","user":{"login":"abcfy2","id":5327677,"avatar_url":"https://avatars.githubusercontent.com/u/5327677?v=3","gravatar_id":"","url":"https://api.github.com/users/abcfy2","html_url":"https://github.com/abcfy2","followers_url":"https://api.github.com/users/abcfy2/followers","following_url":"https://api.github.com/users/abcfy2/following{/other_user}","gists_url":"https://api.github.com/users/abcfy2/gists{/gist_id}","starred_url":"https://api.github.com/users/abcfy2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abcfy2/subscriptions","organizations_url":"https://api.github.com/users/abcfy2/orgs","repos_url":"https://api.github.com/users/abcfy2/repos","events_url":"https://api.github.com/users/abcfy2/events{/privacy}","received_events_url":"https://api.github.com/users/abcfy2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-04-28T09:08:48Z","updated_at":"2016-05-17T06:42:54Z","closed_at":null,"body":"I find the value of `gitlabSourceRepoURL` is wrong recently.\r\n\r\nHere is the job **Environment variables**:\r\n\r\nName | Value\r\n-------| ----------\r\ngitlabActionType |MERGE\r\ngitlabBranch |dev\r\ngitlabMergeRequestAssignee|\tjenkins\r\ngitlabMergeRequestDescription|\tfix a bug\r\ngitlabMergeRequestId|\t0\r\ngitlabMergeRequestTitle|\t manually build\r\ngitlabSourceBranch|\tmaster\r\ngitlabSourceRepoHomepage|\thttp://gitlab.mydomain.com/cn/aircare\r\ngitlabSourceRepoHttpUrl|\thttp://gitlab.mydomain.com/cn/aircare.git\r\ngitlabSourceRepoName|\twjf/aircare\r\ngitlabSourceRepoSshUrl|\tgit@gitlab.mydomain.com:cn/aircare.git\r\ngitlabSourceRepoURL|\tgit@gitlab.mydomain.com:wjf/aircare.git\r\ngitlabTargetBranch|\tmaster\r\ngitlabTargetRepoHttpUrl|\thttp://gitlab.mydomain.com/wjf/aircare.git\r\ngitlabTargetRepoName|\taircare\r\ngitlabTargetRepoSshUrl|\tgit@gitlab.mydomain.com:wjf/aircare.git\r\ngitlabUserEmail|\tmyemail\r\ngitlabUserName|\tjenkins\r\n\r\nI find that the `gitlabSourceRepoSshUrl` is new, and haven't yet appeared in the past. In fact this value is just the right value of `gitlabSourceRepoURL`. But get the same value as `gitlabTargetRepoSshUrl`, of cause this is wrong.\r\n\r\nSo I get many errors like this:\r\n\r\n```\r\n > git rev-parse 6f7a9dc2470fdaa745a05ec4bc0005d3c2c3535e^{commit} # timeout=10\r\nFATAL: Command \"git rev-parse 6f7a9dc2470fdaa745a05ec4bc0005d3c2c3535e^{commit}\" returned status code 128:\r\nstdout: 6f7a9dc2470fdaa745a05ec4bc0005d3c2c3535e^{commit}\r\n\r\nstderr: fatal: ambiguous argument '6f7a9dc2470fdaa745a05ec4bc0005d3c2c3535e^{commit}': unknown revision or path not in the working tree.\r\nUse '--' to separate paths from revisions, like this:\r\n'git <command> [<revision>...] -- [<file>...]'\r\n\r\nhudson.plugins.git.GitException: Command \"git rev-parse 6f7a9dc2470fdaa745a05ec4bc0005d3c2c3535e^{commit}\" returned status code 128:\r\nstdout: 6f7a9dc2470fdaa745a05ec4bc0005d3c2c3535e^{commit}\r\n\r\nstderr: fatal: ambiguous argument '6f7a9dc2470fdaa745a05ec4bc0005d3c2c3535e^{commit}': unknown revision or path not in the working tree.\r\nUse '--' to separate paths from revisions, like this:\r\n'git <command> [<revision>...] -- [<file>...]'\r\n```\r\n\r\nHope this issue will be fixed soon.\r\n\r\nJenkins version: 2.0\r\nGitlab plugin version: 1.2.0"},"comment":{"url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/comments/219632681","html_url":"https://github.com/jenkinsci/gitlab-plugin/issues/274#issuecomment-219632681","issue_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/274","id":219632681,"user":{"login":"coder-hugo","id":5196912,"avatar_url":"https://avatars.githubusercontent.com/u/5196912?v=3","gravatar_id":"","url":"https://api.github.com/users/coder-hugo","html_url":"https://github.com/coder-hugo","followers_url":"https://api.github.com/users/coder-hugo/followers","following_url":"https://api.github.com/users/coder-hugo/following{/other_user}","gists_url":"https://api.github.com/users/coder-hugo/gists{/gist_id}","starred_url":"https://api.github.com/users/coder-hugo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coder-hugo/subscriptions","organizations_url":"https://api.github.com/users/coder-hugo/orgs","repos_url":"https://api.github.com/users/coder-hugo/repos","events_url":"https://api.github.com/users/coder-hugo/events{/privacy}","received_events_url":"https://api.github.com/users/coder-hugo/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T06:42:54Z","updated_at":"2016-05-17T06:42:54Z","body":"This is because the GitLab values are since version 1.2 environment variables instead of build variables. See here for a solution: [JENKINS-34700](https://issues.jenkins-ci.org/browse/JENKINS-34700)"}}