{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/jenkins/issues/3014","repository_url":"https://api.github.com/repos/jenkinsci/jenkins","labels_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/3014/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/3014/comments","events_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/3014/events","html_url":"https://github.com/jenkinsci/jenkins/pull/3014","id":256485881,"number":3014,"title":"[JENKINS-26143] Make choice parameter work with choices list in pipeline","user":{"login":"daniel-beck","id":1831569,"avatar_url":"https://avatars3.githubusercontent.com/u/1831569?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-beck","html_url":"https://github.com/daniel-beck","followers_url":"https://api.github.com/users/daniel-beck/followers","following_url":"https://api.github.com/users/daniel-beck/following{/other_user}","gists_url":"https://api.github.com/users/daniel-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-beck/subscriptions","organizations_url":"https://api.github.com/users/daniel-beck/orgs","repos_url":"https://api.github.com/users/daniel-beck/repos","events_url":"https://api.github.com/users/daniel-beck/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-beck/received_events","type":"User","site_admin":false},"labels":[{"id":271563319,"url":"https://api.github.com/repos/jenkinsci/jenkins/labels/needs-review","name":"needs-review","color":"207de5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-09-10T05:09:41Z","updated_at":"2018-03-13T21:45:31Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/jenkinsci/jenkins/pulls/3014","html_url":"https://github.com/jenkinsci/jenkins/pull/3014","diff_url":"https://github.com/jenkinsci/jenkins/pull/3014.diff","patch_url":"https://github.com/jenkinsci/jenkins/pull/3014.patch"},"body":"See [JENKINS-26143](https://issues.jenkins-ci.org/browse/JENKINS-26143).\r\n\r\nRage driven development: It's not pretty, but neither is JENKINS-26143.\r\n\r\nManually tested only, please provide advice how to test this (ATH?).\r\n\r\n- Configuring and building freestyle project works\r\n- Configuring and reconfiguring (existing parameter) single-branch pipeline works\r\n- Building single-branch pipeline (with `properties` both string and list args) works\r\n- Snippet generator works (still generates a list)\r\n\r\n### Proposed changelog entries\r\n\r\n* Allow use of lists of options as provided by the pipeline snippet generator for choice parameters.\r\n\r\n### Submitter checklist\r\n\r\n- [x] JIRA issue is well described\r\n- [x] Changelog entry appropriate for the audience affected by the change (users or developer, depending on the change). [Examples](https://github.com/jenkins-infra/jenkins.io/blob/master/content/_data/changelogs/weekly.yml)\r\n      * Use the `Internal: ` prefix if the change has no user-visible impact (API, test frameworks, etc.)\r\n- [ ] Appropriate autotests or explanation to why this change has no tests\r\n\r\n### Desired reviewers\r\n\r\n@jenkinsci/code-reviewers @jglick @abayer \r\n"},"comment":{"url":"https://api.github.com/repos/jenkinsci/jenkins/issues/comments/372829349","html_url":"https://github.com/jenkinsci/jenkins/pull/3014#issuecomment-372829349","issue_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/3014","id":372829349,"user":{"login":"daniel-beck","id":1831569,"avatar_url":"https://avatars3.githubusercontent.com/u/1831569?v=4","gravatar_id":"","url":"https://api.github.com/users/daniel-beck","html_url":"https://github.com/daniel-beck","followers_url":"https://api.github.com/users/daniel-beck/followers","following_url":"https://api.github.com/users/daniel-beck/following{/other_user}","gists_url":"https://api.github.com/users/daniel-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-beck/subscriptions","organizations_url":"https://api.github.com/users/daniel-beck/orgs","repos_url":"https://api.github.com/users/daniel-beck/repos","events_url":"https://api.github.com/users/daniel-beck/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-beck/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T21:45:31Z","updated_at":"2018-03-13T21:45:31Z","author_association":"OWNER","body":"Manually tested PR build with recommended plugins installed; the following Pipeline works as expected:\r\n\r\n    input message: 'Choose!', ok: 'Yep', parameters: [choice(choices: ['foo', 'bar', 'baz'], description: '', name: 'Choices')]\r\n    input message: 'Choose again!', ok: 'Yep', parameters: [choice(choices: ['foo', 'bar', 'baz'].join('\\n'), description: '', name: 'Choices')]\r\n"}}
{"actor":{"display_login":"daniel-beck"}}