{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/785","repository_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin","labels_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/785/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/785/comments","events_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/785/events","html_url":"https://github.com/jenkinsci/gitlab-plugin/issues/785","id":335356909,"node_id":"MDU6SXNzdWUzMzUzNTY5MDk=","number":785,"title":"Defined Parameters not set/empty","user":{"login":"azerbe","id":4478773,"node_id":"MDQ6VXNlcjQ0Nzg3NzM=","avatar_url":"https://avatars1.githubusercontent.com/u/4478773?v=4","gravatar_id":"","url":"https://api.github.com/users/azerbe","html_url":"https://github.com/azerbe","followers_url":"https://api.github.com/users/azerbe/followers","following_url":"https://api.github.com/users/azerbe/following{/other_user}","gists_url":"https://api.github.com/users/azerbe/gists{/gist_id}","starred_url":"https://api.github.com/users/azerbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azerbe/subscriptions","organizations_url":"https://api.github.com/users/azerbe/orgs","repos_url":"https://api.github.com/users/azerbe/repos","events_url":"https://api.github.com/users/azerbe/events{/privacy}","received_events_url":"https://api.github.com/users/azerbe/received_events","type":"User","site_admin":false},"labels":[{"id":207462562,"node_id":"MDU6TGFiZWwyMDc0NjI1NjI=","url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/labels/awaiting%20feedback","name":"awaiting feedback","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-06-25T10:56:36Z","updated_at":"2018-06-28T07:54:01Z","closed_at":null,"author_association":"NONE","body":"## Issue\r\n\r\n### Context\r\n- **Gitlab plugin version**: 1.5.6\r\n- **Gitlab version**: 11.0.0-ee\r\n- **Jenkins version**: 2.121.1 (jenkinsci/blueocean docker)\r\n- **Job type**: Freestyle\r\n- **Environment Injector Plugin version**: 2.1.5\r\n\r\n### Logs & Traces\r\n**injectedEnvVars.txt** (from EnvInject Plugin)\r\n```\r\ngitlabActionType=MERGE\r\ngitlabBranch=mergerequest\r\ngitlabMergeRequestAssignee=Z\r\ngitlabMergeRequestId=5\r\ngitlabMergeRequestIid=5\r\ngitlabMergeRequestLastCommit=712579185a9b572ec7cad6d52c00f90e49205663\r\ngitlabMergeRequestState=opened\r\ngitlabMergeRequestTargetProjectId=21\r\ngitlabMergeRequestTitle=Mergerequest Test\r\ngitlabMergedByUser=Z\r\ngitlabSourceBranch=\r\ngitlabSourceNamespace=Z\r\ngitlabSourceRepoHomepage=https://git@....../Z/jenkins-docker-maven-example\r\ngitlabSourceRepoHttpUrl=https://git@....../Z/jenkins-docker-maven-example.git\r\ngitlabSourceRepoName=jenkins-docker-maven-example\r\ngitlabSourceRepoSshUrl=ssh://git@....../Z/jenkins-docker-maven-example.git\r\ngitlabSourceRepoURL=ssh://git@....../Z/jenkins-docker-maven-example.git\r\ngitlabTargetBranch=\r\ngitlabTargetNamespace=Z\r\ngitlabTargetRepoHttpUrl=https://git.aqube.de/Z/jenkins-docker-maven-example.git\r\ngitlabTargetRepoName=jenkins-docker-maven-example\r\ngitlabTargetRepoSshUrl=ssh://git@....../Z/jenkins-docker-maven-example.git\r\ngitlabUserEmail=mymail\r\ngitlabUserName=myname\r\n```\r\n\r\n**JenkinsJob config.xml**\r\n```\r\n<?xml version='1.1' encoding='UTF-8'?>\r\n<project>\r\n  <actions/>\r\n  <description>Test Project to test Jenkins&lt;-&gt;GitLab integration</description>\r\n  <keepDependencies>false</keepDependencies>\r\n  <properties>\r\n    <com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin=\"gitlab-plugin@1.5.6\">\r\n      <gitLabConnection>GitLab</gitLabConnection>\r\n    </com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>\r\n    <hudson.model.ParametersDefinitionProperty>\r\n      <parameterDefinitions>\r\n        <hudson.model.StringParameterDefinition>\r\n          <name>gitlabSourceBranch</name>\r\n          <description></description>\r\n          <defaultValue></defaultValue>\r\n          <trim>true</trim>\r\n        </hudson.model.StringParameterDefinition>\r\n        <hudson.model.StringParameterDefinition>\r\n          <name>gitlabTargetBranch</name>\r\n          <description></description>\r\n          <defaultValue></defaultValue>\r\n          <trim>true</trim>\r\n        </hudson.model.StringParameterDefinition>\r\n      </parameterDefinitions>\r\n    </hudson.model.ParametersDefinitionProperty>\r\n    <EnvInjectJobProperty plugin=\"envinject@2.1.5\">\r\n      <info>\r\n        <secureGroovyScript plugin=\"script-security@1.44\">\r\n          <script>import hudson.model.*\r\ndef env = Thread.currentThread()?.executable.parent.builds[0].properties.get(&apos;envVars&apos;)\r\ndef map = [:]\r\n\r\nif (env[&apos;gitlabSourceBranch&apos;] != null) {\r\n  map[&apos;gitlabSourceBranch&apos;] = env[&apos;gitlabSourceBranch&apos;]\r\n}\r\nif (env[&apos;gitlabTargetBranch&apos;] != null) {\r\n  map[&apos;gitlabTargetBranch&apos;] = env[&apos;gitlabTargetBranch&apos;]\r\n}\r\n// Add additional entries for any other parameters you have created\r\n\r\nreturn map</script>\r\n          <sandbox>false</sandbox>\r\n        </secureGroovyScript>\r\n        <loadFilesFromMaster>false</loadFilesFromMaster>\r\n      </info>\r\n      <on>true</on>\r\n      <keepJenkinsSystemVariables>true</keepJenkinsSystemVariables>\r\n      <keepBuildVariables>true</keepBuildVariables>\r\n      <overrideBuildParameters>true</overrideBuildParameters>\r\n    </EnvInjectJobProperty>\r\n  </properties>\r\n  <scm class=\"hudson.plugins.git.GitSCM\" plugin=\"git@3.9.1\">\r\n    <configVersion>2</configVersion>\r\n    <userRemoteConfigs>\r\n      <hudson.plugins.git.UserRemoteConfig>\r\n        <name>origin</name>\r\n        <refspec>+refs/heads/*:refs/remotes/origin/* +refs/merge-requests/*/head:refs/remotes/origin/merge-requests/*</refspec>\r\n        <url>ssh://git@git.mydomain.com/Z/jenkins-docker-maven-example.git</url>\r\n        <credentialsId>f350ce1b-d303-4370-aa08-54c50ae01c79</credentialsId>\r\n      </hudson.plugins.git.UserRemoteConfig>\r\n    </userRemoteConfigs>\r\n    <branches>\r\n      <hudson.plugins.git.BranchSpec>\r\n        <name>origin/${gitlabSourceBranch}</name>\r\n      </hudson.plugins.git.BranchSpec>\r\n    </branches>\r\n    <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>\r\n    <submoduleCfg class=\"list\"/>\r\n    <extensions>\r\n      <hudson.plugins.git.extensions.impl.PreBuildMerge>\r\n        <options>\r\n          <mergeRemote>origin</mergeRemote>\r\n          <mergeTarget>${gitlabTargetBranch}</mergeTarget>\r\n          <mergeStrategy>default</mergeStrategy>\r\n          <fastForwardMode>FF</fastForwardMode>\r\n        </options>\r\n      </hudson.plugins.git.extensions.impl.PreBuildMerge>\r\n    </extensions>\r\n  </scm>\r\n  <canRoam>true</canRoam>\r\n  <disabled>false</disabled>\r\n  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>\r\n  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>\r\n  <jdk>Default</jdk>\r\n  <triggers>\r\n    <com.dabsquared.gitlabjenkins.GitLabPushTrigger plugin=\"gitlab-plugin@1.5.6\">\r\n      <spec></spec>\r\n      <triggerOnPush>true</triggerOnPush>\r\n      <triggerOnMergeRequest>true</triggerOnMergeRequest>\r\n      <triggerOnPipelineEvent>false</triggerOnPipelineEvent>\r\n      <triggerOnAcceptedMergeRequest>false</triggerOnAcceptedMergeRequest>\r\n      <triggerOnClosedMergeRequest>false</triggerOnClosedMergeRequest>\r\n      <triggerOnApprovedMergeRequest>false</triggerOnApprovedMergeRequest>\r\n      <triggerOpenMergeRequestOnPush>both</triggerOpenMergeRequestOnPush>\r\n      <triggerOnNoteRequest>true</triggerOnNoteRequest>\r\n      <noteRegex>Jenkins please retry a build</noteRegex>\r\n      <ciSkip>true</ciSkip>\r\n      <skipWorkInProgressMergeRequest>true</skipWorkInProgressMergeRequest>\r\n      <setBuildDescription>true</setBuildDescription>\r\n      <branchFilterType>All</branchFilterType>\r\n      <includeBranchesSpec></includeBranchesSpec>\r\n      <excludeBranchesSpec></excludeBranchesSpec>\r\n      <targetBranchRegex></targetBranchRegex>\r\n      <secretToken>***********</secretToken>\r\n      <pendingBuildName></pendingBuildName>\r\n      <cancelPendingBuildsOnUpdate>false</cancelPendingBuildsOnUpdate>\r\n    </com.dabsquared.gitlabjenkins.GitLabPushTrigger>\r\n  </triggers>\r\n  <concurrentBuild>false</concurrentBuild>\r\n  <builders>\r\n    <hudson.tasks.Maven>\r\n      <targets>clean package</targets>\r\n      <mavenName>MavenDefault</mavenName>\r\n      <pom>pom.xml</pom>\r\n      <usePrivateRepository>false</usePrivateRepository>\r\n      <settings class=\"jenkins.mvn.DefaultSettingsProvider\"/>\r\n      <globalSettings class=\"jenkins.mvn.DefaultGlobalSettingsProvider\"/>\r\n      <injectBuildVariables>false</injectBuildVariables>\r\n    </hudson.tasks.Maven>\r\n  </builders>\r\n  <publishers>\r\n    <com.dabsquared.gitlabjenkins.publisher.GitLabMessagePublisher plugin=\"gitlab-plugin@1.5.6\">\r\n      <onlyForFailure>false</onlyForFailure>\r\n      <replaceSuccessNote>false</replaceSuccessNote>\r\n      <replaceFailureNote>false</replaceFailureNote>\r\n      <replaceAbortNote>false</replaceAbortNote>\r\n      <replaceUnstableNote>false</replaceUnstableNote>\r\n      <successNoteText></successNoteText>\r\n      <failureNoteText></failureNoteText>\r\n      <abortNoteText></abortNoteText>\r\n      <unstableNoteText></unstableNoteText>\r\n    </com.dabsquared.gitlabjenkins.publisher.GitLabMessagePublisher>\r\n    <com.dabsquared.gitlabjenkins.publisher.GitLabCommitStatusPublisher plugin=\"gitlab-plugin@1.5.6\">\r\n      <name>jenkins</name>\r\n      <markUnstableAsSuccess>false</markUnstableAsSuccess>\r\n    </com.dabsquared.gitlabjenkins.publisher.GitLabCommitStatusPublisher>\r\n  </publishers>\r\n  <buildWrappers>\r\n    <hudson.plugins.timestamper.TimestamperBuildWrapper plugin=\"timestamper@1.8.10\"/>\r\n  </buildWrappers>\r\n</project>\r\n```\r\n\r\n**Jenkins Plugin-Log** (after creating a new merge request)\r\n```\r\nJun 25, 2018 9:45:31 AMJun 25, 2018   INFO com.dabsquared.gitlabjenkins.webhook.GitLabWebHook getDynamic\r\nWebHook called with url: /project/jenkins-docker-maven-example\r\nJun 25, 2018 9:45:31 AM FINE com.dabsquared.gitlabjenkins.webhook.build.MergeRequestBuildAction\r\nMergeRequest: {\r\n  \"object_kind\" : \"merge_request\",\r\n  \"event_type\" : \"merge_request\",\r\n  \"user\" : {\r\n    \"name\" : \"Alex\",\r\n    \"username\" : \"Z\",\r\n    \"avatar_url\" : null\r\n  },\r\n  \"project\" : {\r\n    \"id\" : 21,\r\n    \"name\" : \"jenkins-docker-maven-example\",\r\n    \"description\" : \"\",\r\n    \"web_url\" : \"https://git.mydomain.com/Z/jenkins-docker-maven-example\",\r\n    \"avatar_url\" : null,\r\n    \"git_ssh_url\" : \"ssh://git@git.mydomain.com/Z/jenkins-docker-maven-example.git\",\r\n    \"git_http_url\" : \"https://git.mydomain.com/Z/jenkins-docker-maven-example.git\",\r\n    \"namespace\" : \"Z\",\r\n    \"visibility_level\" : 0,\r\n    \"path_with_namespace\" : \"Z/jenkins-docker-maven-example\",\r\n    \"default_branch\" : \"master\",\r\n    \"ci_config_path\" : null,\r\n    \"homepage\" : \"https://git.mydomain.com/Z/jenkins-docker-maven-example\",\r\n    \"url\" : \"ssh://git@git.mydomain.com/Z/jenkins-docker-maven-example.git\",\r\n    \"ssh_url\" : \"ssh://git@git.mydomain.com/Z/jenkins-docker-maven-example.git\",\r\n    \"http_url\" : \"https://git.mydomain.com/Z/jenkins-docker-maven-example.git\"\r\n  },\r\n  \"object_attributes\" : {\r\n    \"assignee_id\" : 4,\r\n    \"author_id\" : 4,\r\n    \"created_at\" : \"2018-06-25 09:45:31 UTC\",\r\n    \"description\" : \"\",\r\n    \"head_pipeline_id\" : 10,\r\n    \"id\" : 5,\r\n    \"iid\" : 5,\r\n    \"last_edited_at\" : null,\r\n    \"last_edited_by_id\" : null,\r\n    \"merge_commit_sha\" : null,\r\n    \"merge_error\" : null,\r\n    \"merge_params\" : {\r\n      \"force_remove_source_branch\" : \"0\"\r\n    },\r\n    \"merge_status\" : \"unchecked\",\r\n    \"merge_user_id\" : null,\r\n    \"merge_when_pipeline_succeeds\" : false,\r\n    \"milestone_id\" : null,\r\n    \"source_branch\" : \"mergerequest\",\r\n    \"source_project_id\" : 21,\r\n    \"state\" : \"opened\",\r\n    \"target_branch\" : \"master\",\r\n    \"target_project_id\" : 21,\r\n    \"time_estimate\" : 0,\r\n    \"title\" : \"Mergerequest Test\",\r\n    \"updated_at\" : \"2018-06-25 09:45:31 UTC\",\r\n    \"updated_by_id\" : null,\r\n    \"url\" : \"https://git.mydomain.com/Z/jenkins-docker-maven-example/merge_requests/5\",\r\n    \"source\" : {\r\n      \"id\" : 21,\r\n      \"name\" : \"jenkins-docker-maven-example\",\r\n      \"description\" : \"\",\r\n      \"web_url\" : \"https://git.mydomain.com/Z/jenkins-docker-maven-example\",\r\n      \"avatar_url\" : null,\r\n      \"git_ssh_url\" : \"ssh://git@git.mydomain.com/Z/jenkins-docker-maven-example.git\",\r\n      \"git_http_url\" : \"https://git.mydomain.com/Z/jenkins-docker-maven-example.git\",\r\n      \"namespace\" : \"Z\",\r\n      \"visibility_level\" : 0,\r\n      \"path_with_namespace\" : \"Z/jenkins-docker-maven-example\",\r\n      \"default_branch\" : \"master\",\r\n      \"ci_config_path\" : null,\r\n      \"homepage\" : \"https://git.mydomain.com/Z/jenkins-docker-maven-example\",\r\n      \"url\" : \"ssh://git@git.mydomain.com/Z/jenkins-docker-maven-example.git\",\r\n      \"ssh_url\" : \"ssh://git@git.mydomain.com/Z/jenkins-docker-maven-example.git\",\r\n      \"http_url\" : \"https://git.mydomain.com/Z/jenkins-docker-maven-example.git\"\r\n    },\r\n    \"target\" : {\r\n      \"id\" : 21,\r\n      \"name\" : \"jenkins-docker-maven-example\",\r\n      \"description\" : \"\",\r\n      \"web_url\" : \"https://git.mydomain.com/Z/jenkins-docker-maven-example\",\r\n      \"avatar_url\" : null,\r\n      \"git_ssh_url\" : \"ssh://git@git.mydomain.com/Z/jenkins-docker-maven-example.git\",\r\n      \"git_http_url\" : \"https://git.mydomain.com/Z/jenkins-docker-maven-example.git\",\r\n      \"namespace\" : \"Z\",\r\n      \"visibility_level\" : 0,\r\n      \"path_with_namespace\" : \"Z/jenkins-docker-maven-example\",\r\n      \"default_branch\" : \"master\",\r\n      \"ci_config_path\" : null,\r\n      \"homepage\" : \"https://git.mydomain.com/Z/jenkins-docker-maven-example\",\r\n      \"url\" : \"ssh://git@git.mydomain.com/Z/jenkins-docker-maven-example.git\",\r\n      \"ssh_url\" : \"ssh://git@git.mydomain.com/Z/jenkins-docker-maven-example.git\",\r\n      \"http_url\" : \"https://git.mydomain.com/Z/jenkins-docker-maven-example.git\"\r\n    },\r\n    \"last_commit\" : {\r\n      \"id\" : \"712579185a9b572ec7cad6d52c00f90e49205663\",\r\n      \"message\" : \"Merge-Request-Update-Test2\\n\",\r\n      \"timestamp\" : \"2018-06-25T10:31:23+02:00\",\r\n      \"url\" : \"https://git.mydomain.com/Z/jenkins-docker-maven-example/commit/712579185a9b572ec7cad6d52c00f90e49205663\",\r\n      \"author\" : {\r\n        \"name\" : \"myname\",\r\n        \"email\" : \"myname@mydomain.com\"\r\n      }\r\n    },\r\n    \"work_in_progress\" : false,\r\n    \"total_time_spent\" : 0,\r\n    \"human_total_time_spent\" : null,\r\n    \"human_time_estimate\" : null,\r\n    \"action\" : \"open\"\r\n  },\r\n  \"labels\" : [ ],\r\n  \"changes\" : {\r\n    \"head_pipeline_id\" : {\r\n      \"previous\" : null,\r\n      \"current\" : 10\r\n    },\r\n    \"updated_at\" : {\r\n      \"previous\" : \"2018-06-25 09:45:31 UTC\",\r\n      \"current\" : \"2018-06-25 09:45:31 UTC\"\r\n    },\r\n    \"assignee\" : {\r\n      \"previous\" : null,\r\n      \"current\" : {\r\n        \"name\" : \"Alex\",\r\n        \"username\" : \"Z\",\r\n        \"avatar_url\" : null\r\n      }\r\n    },\r\n    \"total_time_spent\" : {\r\n      \"previous\" : null,\r\n      \"current\" : 0\r\n    }\r\n  },\r\n  \"repository\" : {\r\n    \"name\" : \"jenkins-docker-maven-example\",\r\n    \"url\" : \"ssh://git@git.mydomain.com/Z/jenkins-docker-maven-example.git\",\r\n    \"description\" : \"\",\r\n    \"homepage\" : \"https://git.mydomain.com/Z/jenkins-docker-maven-example\"\r\n  },\r\n  \"assignee\" : {\r\n    \"name\" : \"Alex\",\r\n    \"username\" : \"Z\",\r\n    \"avatar_url\" : null\r\n  }\r\n}\r\nJun 25, 2018 9:45:31 AM INFO com.dabsquared.gitlabjenkins.trigger.handler.AbstractWebHookTriggerHandler handle\r\njenkins-docker-maven-example triggered for merge request.\r\nJun 25, 2018 9:45:31 AM FINEST com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder\r\nCall GitLab:\r\nHTTP method: POST\r\nURL: https://git.mydomain.com/api/v4/projects/21/statuses/712579185a9b572ec7cad6d52c00f90e49205663\r\nRequest headers: [\r\nAccept = [application/json],\r\nContent-Type = [application/x-www-form-urlencoded],\r\nPRIVATE-TOKEN = [****FILTERED****]\r\n]\r\nJun 25, 2018 9:45:32 AM FINEST com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder\r\nGot response from GitLab:\r\nURL: https://git.mydomain.com/api/v4/projects/21/statuses/712579185a9b572ec7cad6d52c00f90e49205663\r\nStatus: 201 Created\r\nResponse headers: [\r\nCache-Control = [max-age=0, private, must-revalidate],\r\nConnection = [keep-alive],\r\nContent-Length = [481],\r\nContent-Type = [application/json],\r\nDate = [Mon, 25 Jun 2018 09:45:32 GMT],\r\nEtag = [W/\"e45716983dc0daa641f5f45946bd9a5b\"],\r\nServer = [nginx],\r\nStrict-Transport-Security = [max-age=31536000],\r\nVary = [Origin],\r\nX-Content-Type-Options = [nosniff],\r\nX-Frame-Options = [SAMEORIGIN],\r\nX-Request-Id = [78bd3057-bf58-4647-b426-aaf0aeb1fc1e],\r\nX-Runtime = [0.232203]\r\n]\r\nResponse body: {\r\n  \"id\" : 62,\r\n  \"sha\" : \"712579185a9b572ec7cad6d52c00f90e49205663\",\r\n  \"ref\" : \"mergerequest\",\r\n  \"status\" : \"pending\",\r\n  \"name\" : \"jenkins\",\r\n  \"target_url\" : \"https://jenkins.mydomain.com/job/jenkins-docker-maven-example/display/redirect\",\r\n  \"description\" : \"pending\",\r\n  \"created_at\" : \"2018-06-25T09:45:32.138Z\",\r\n  \"started_at\" : null,\r\n  \"finished_at\" : null,\r\n  \"allow_failure\" : false,\r\n  \"coverage\" : null,\r\n  \"author\" : {\r\n    \"id\" : 6,\r\n    \"name\" : \"Jenkins User\",\r\n    \"username\" : \"jenkins\",\r\n    \"state\" : \"active\",\r\n    \"avatar_url\" : null,\r\n    \"web_url\" : \"https://git.mydomain.com/jenkins\"\r\n  }\r\n}\r\nJun 25, 2018 9:45:41 AM FINEST com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder\r\nCall GitLab:\r\nHTTP method: POST\r\nURL: https://git.mydomain.com/api/v4/projects/21/merge_requests/5/notes\r\nRequest headers: [\r\nAccept = [application/json],\r\nContent-Type = [application/x-www-form-urlencoded],\r\nPRIVATE-TOKEN = [****FILTERED****]\r\n]\r\nJun 25, 2018 9:45:41 AM FINEST com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder\r\nGot response from GitLab:\r\nURL: https://git.mydomain.com/api/v4/projects/21/merge_requests/5/notes\r\nStatus: 201 Created\r\nResponse headers: [\r\nCache-Control = [max-age=0, private, must-revalidate],\r\nConnection = [keep-alive],\r\nContent-Length = [548],\r\nContent-Type = [application/json],\r\nDate = [Mon, 25 Jun 2018 09:45:41 GMT],\r\nEtag = [W/\"221c34494f138df9fe8dd069ad13712e\"],\r\nServer = [nginx],\r\nStrict-Transport-Security = [max-age=31536000],\r\nVary = [Origin],\r\nX-Content-Type-Options = [nosniff],\r\nX-Frame-Options = [SAMEORIGIN],\r\nX-Request-Id = [756dbb87-89ff-4957-a1a6-d227c34d9933],\r\nX-Runtime = [0.105349]\r\n]\r\nResponse body: {\r\n  \"id\" : 14,\r\n  \"type\" : null,\r\n  \"body\" : \":negative_squared_cross_mark: Jenkins Build FAILURE\\n\\nResults available at: [Jenkins [jenkins-docker-maven-example #25]](https://jenkins.mydomain.com/job/jenkins-docker-maven-example/25/)\",\r\n  \"attachment\" : null,\r\n  \"author\" : {\r\n    \"id\" : 6,\r\n    \"name\" : \"Jenkins User\",\r\n    \"username\" : \"jenkins\",\r\n    \"state\" : \"active\",\r\n    \"avatar_url\" : null,\r\n    \"web_url\" : \"https://git.mydomain.com/jenkins\"\r\n  },\r\n  \"created_at\" : \"2018-06-25T09:45:41.129Z\",\r\n  \"updated_at\" : \"2018-06-25T09:45:41.129Z\",\r\n  \"system\" : false,\r\n  \"noteable_id\" : 5,\r\n  \"noteable_type\" : \"MergeRequest\",\r\n  \"resolvable\" : false,\r\n  \"noteable_iid\" : 5\r\n}\r\nJun 25, 2018 9:45:41 AM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds\r\nRetrieving gitlab project ids\r\nJun 25, 2018 9:45:41 AM FINEST com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder\r\nCall GitLab:\r\nHTTP method: GET\r\nURL: https://git.mydomain.com/api/v4/projects/21/repository/commits/712579185a9b572ec7cad6d52c00f90e49205663\r\nRequest headers: [\r\nAccept = [application/json],\r\nPRIVATE-TOKEN = [****FILTERED****]\r\n]\r\nJun 25, 2018 9:45:41 AM FINEST com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder\r\nGot response from GitLab:\r\nURL: https://git.mydomain.com/api/v4/projects/21/repository/commits/712579185a9b572ec7cad6d52c00f90e49205663\r\nStatus: 200 OK\r\nResponse headers: [\r\nCache-Control = [max-age=0, private, must-revalidate],\r\nConnection = [keep-alive],\r\nContent-Length = [681],\r\nContent-Type = [application/json],\r\nDate = [Mon, 25 Jun 2018 09:45:41 GMT],\r\nEtag = [W/\"d0f097d7eba2dd3a29eb6bca10176ff0\"],\r\nServer = [nginx],\r\nStrict-Transport-Security = [max-age=31536000],\r\nVary = [Origin],\r\nX-Content-Type-Options = [nosniff],\r\nX-Frame-Options = [SAMEORIGIN],\r\nX-Request-Id = [6f78c496-be43-4aff-9162-4cbd70f468ca],\r\nX-Runtime = [0.061709]\r\n]\r\nResponse body: {\r\n  \"id\" : \"712579185a9b572ec7cad6d52c00f90e49205663\",\r\n  \"short_id\" : \"71257918\",\r\n  \"title\" : \"Merge-Request-Update-Test2\",\r\n  \"created_at\" : \"2018-06-25T10:31:23.000+02:00\",\r\n  \"parent_ids\" : [ \"3e226e8755618c695e7e20db962f9c66b0645241\" ],\r\n  \"message\" : \"Merge-Request-Update-Test2\\n\",\r\n  \"author_name\" : \"myname\",\r\n  \"author_email\" : \"myname@mydomain.com\",\r\n  \"authored_date\" : \"2018-06-25T10:31:23.000+02:00\",\r\n  \"committer_name\" : \"myname\",\r\n  \"committer_email\" : \"myname@mydomain.com\",\r\n  \"committed_date\" : \"2018-06-25T10:31:23.000+02:00\",\r\n  \"stats\" : {\r\n    \"additions\" : 1,\r\n    \"deletions\" : 0,\r\n    \"total\" : 1\r\n  },\r\n  \"status\" : \"running\",\r\n  \"last_pipeline\" : {\r\n    \"id\" : 10,\r\n    \"sha\" : \"712579185a9b572ec7cad6d52c00f90e49205663\",\r\n    \"ref\" : \"mergerequest\",\r\n    \"status\" : \"running\"\r\n  },\r\n  \"project_id\" : 21\r\n}\r\nJun 25, 2018 9:45:41 AM FINEST com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder\r\nCall GitLab:\r\nHTTP method: POST\r\nURL: https://git.mydomain.com/api/v4/projects/21/statuses/712579185a9b572ec7cad6d52c00f90e49205663\r\nRequest headers: [\r\nAccept = [application/json],\r\nContent-Type = [application/x-www-form-urlencoded],\r\nPRIVATE-TOKEN = [****FILTERED****]\r\n]\r\nJun 25, 2018 9:45:41 AM FINEST com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder\r\nGot response from GitLab:\r\nURL: https://git.mydomain.com/api/v4/projects/21/statuses/712579185a9b572ec7cad6d52c00f90e49205663\r\nStatus: 201 Created\r\nResponse headers: [\r\nCache-Control = [max-age=0, private, must-revalidate],\r\nConnection = [keep-alive],\r\nContent-Length = [504],\r\nContent-Type = [application/json],\r\nDate = [Mon, 25 Jun 2018 09:45:41 GMT],\r\nEtag = [W/\"2fc3406b7cb6496abc371de498dbee1f\"],\r\nServer = [nginx],\r\nStrict-Transport-Security = [max-age=31536000],\r\nVary = [Origin],\r\nX-Content-Type-Options = [nosniff],\r\nX-Frame-Options = [SAMEORIGIN],\r\nX-Request-Id = [cd3fd6da-2be6-4c8b-b36b-346fa2a82dff],\r\nX-Runtime = [0.259783]\r\n]\r\nResponse body: {\r\n  \"id\" : 62,\r\n  \"sha\" : \"712579185a9b572ec7cad6d52c00f90e49205663\",\r\n  \"ref\" : \"mergerequest\",\r\n  \"status\" : \"failed\",\r\n  \"name\" : \"jenkins\",\r\n  \"target_url\" : \"https://jenkins.mydomain.com/job/jenkins-docker-maven-example/25/display/redirect\",\r\n  \"description\" : \"failed\",\r\n  \"created_at\" : \"2018-06-25T09:45:32.138Z\",\r\n  \"started_at\" : null,\r\n  \"finished_at\" : \"2018-06-25T09:45:41.456Z\",\r\n  \"allow_failure\" : false,\r\n  \"coverage\" : null,\r\n  \"author\" : {\r\n    \"id\" : 6,\r\n    \"name\" : \"Jenkins User\",\r\n    \"username\" : \"jenkins\",\r\n    \"state\" : \"active\",\r\n    \"avatar_url\" : null,\r\n    \"web_url\" : \"https://git.mydomain.com/jenkins\"\r\n  }\r\n}\r\n```\r\n\r\n\r\n### Problem description\r\n\r\n**Before** I've setup Gitlab, Jenkins, gitlab-plugin and a jenkins job (Freestyle, parameterized) following the documentation.\r\n\r\n**When** I start the build by hand (From Jenkins) and insert branchnames into the parameter fields, everything is working fine.\r\n\r\n**When** I create a merge-request or push a commit to the repository, the webhook triggers the build correctly, but the parameters that have been set in the configuration are empty. (`gitlabSourceBranch` and `gitlabTargetBranch`)\r\nEvery other parameter is working fine.\r\n\r\n**Then** the build fails, cause it can't pull."},"comment":{"url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/comments/400946027","html_url":"https://github.com/jenkinsci/gitlab-plugin/issues/785#issuecomment-400946027","issue_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/785","id":400946027,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDk0NjAyNw==","user":{"login":"azerbe","id":4478773,"node_id":"MDQ6VXNlcjQ0Nzg3NzM=","avatar_url":"https://avatars1.githubusercontent.com/u/4478773?v=4","gravatar_id":"","url":"https://api.github.com/users/azerbe","html_url":"https://github.com/azerbe","followers_url":"https://api.github.com/users/azerbe/followers","following_url":"https://api.github.com/users/azerbe/following{/other_user}","gists_url":"https://api.github.com/users/azerbe/gists{/gist_id}","starred_url":"https://api.github.com/users/azerbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azerbe/subscriptions","organizations_url":"https://api.github.com/users/azerbe/orgs","repos_url":"https://api.github.com/users/azerbe/repos","events_url":"https://api.github.com/users/azerbe/events{/privacy}","received_events_url":"https://api.github.com/users/azerbe/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T07:54:01Z","updated_at":"2018-06-28T07:54:01Z","author_association":"NONE","body":"The question is, if i named the parameters wrong. @ElijahLynn called them `sourceBranch` instead of `gitlabSourceBranch` in his comment. I can check that later.\r\n\r\nJust for clarification:\r\n\r\n![image](https://user-images.githubusercontent.com/4478773/42020772-24507f02-7ab9-11e8-8867-84eae9e7a524.png)\r\n"}}
{"actor":{"display_login":"azerbe"}}