{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/puppet-jenkins/issues/603","repository_url":"https://api.github.com/repos/jenkinsci/puppet-jenkins","labels_url":"https://api.github.com/repos/jenkinsci/puppet-jenkins/issues/603/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/puppet-jenkins/issues/603/comments","events_url":"https://api.github.com/repos/jenkinsci/puppet-jenkins/issues/603/events","html_url":"https://github.com/jenkinsci/puppet-jenkins/issues/603","id":160549057,"number":603,"title":"Unable to install older versions of jenkins (< 2.0). On new jenkins version, create job fails with http 403","user":{"login":"bjusufbe","id":1416064,"avatar_url":"https://avatars.githubusercontent.com/u/1416064?v=3","gravatar_id":"","url":"https://api.github.com/users/bjusufbe","html_url":"https://github.com/bjusufbe","followers_url":"https://api.github.com/users/bjusufbe/followers","following_url":"https://api.github.com/users/bjusufbe/following{/other_user}","gists_url":"https://api.github.com/users/bjusufbe/gists{/gist_id}","starred_url":"https://api.github.com/users/bjusufbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjusufbe/subscriptions","organizations_url":"https://api.github.com/users/bjusufbe/orgs","repos_url":"https://api.github.com/users/bjusufbe/repos","events_url":"https://api.github.com/users/bjusufbe/events{/privacy}","received_events_url":"https://api.github.com/users/bjusufbe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jenkinsci/puppet-jenkins/labels/feedback-needed","name":"feedback-needed","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-15T23:49:42Z","updated_at":"2016-06-22T11:18:55Z","closed_at":null,"body":"This is an example of command that is executed with class jenkins::job:\r\n```\r\nubuntu@ip-172-30-1-200:~$ cat \"/tmp/test_template-config.xml\" | java -jar /usr/share/jenkins/jenkins-cli.jar -s http://localhost:8080 create-job \"test_template\"\r\njava.io.IOException: No X-Jenkins-CLI2-Port among [null, X-Required-Permission, X-Jenkins, X-You-Are-In-Group, X-Hudson, Content-Length, Expires, X-You-Are-Authenticated-As, X-Permission-Implied-By, Set-Cookie, Server, X-Content-Type-Options, Date, X-Jenkins-Session, Content-Type]\r\n\tat hudson.cli.CLI.getCliTcpPort(CLI.java:284)\r\n\tat hudson.cli.CLI.<init>(CLI.java:128)\r\n\tat hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72)\r\n\tat hudson.cli.CLI._main(CLI.java:473)\r\n\tat hudson.cli.CLI.main(CLI.java:384)\r\n\tSuppressed: java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:8080/cli\r\n\t\tat sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1628)\r\n\t\tat hudson.cli.FullDuplexHttpStream.<init>(FullDuplexHttpStream.java:78)\r\n\t\tat hudson.cli.CLI.connectViaHttp(CLI.java:152)\r\n\t\tat hudson.cli.CLI.<init>(CLI.java:132)\r\n\t\t... 3 more\r\n```\r\nThis issue happens when latest Jenkins version 2.9 is installed. I've googled around to find out this was not a problem with Jenkins version prior to 2.x. \r\nTherefore, I've used following class declaration to install Jenkins version: 1.650:\r\n```\r\nclass { 'jenkins':\r\n   version => '1.6.50',\r\n}\r\n```\r\nHowever, this is not possible as we are unable to install any version (other than latest) from jenkins deb repository\r\n\r\nTherefore, problem is following:\r\n1. When using latest jenkins version, I'm unable to create job\r\n2. When I try to use jenkins version prior to 2.x, I'm unable to install it\r\n\r\nDon't see any workaround available with this plugin currently. Let me know if you think otherwise.\r\nThanks,\r\nBakir"},"comment":{"url":"https://api.github.com/repos/jenkinsci/puppet-jenkins/issues/comments/227714442","html_url":"https://github.com/jenkinsci/puppet-jenkins/issues/603#issuecomment-227714442","issue_url":"https://api.github.com/repos/jenkinsci/puppet-jenkins/issues/603","id":227714442,"user":{"login":"vStone","id":356719,"avatar_url":"https://avatars.githubusercontent.com/u/356719?v=3","gravatar_id":"","url":"https://api.github.com/users/vStone","html_url":"https://github.com/vStone","followers_url":"https://api.github.com/users/vStone/followers","following_url":"https://api.github.com/users/vStone/following{/other_user}","gists_url":"https://api.github.com/users/vStone/gists{/gist_id}","starred_url":"https://api.github.com/users/vStone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vStone/subscriptions","organizations_url":"https://api.github.com/users/vStone/orgs","repos_url":"https://api.github.com/users/vStone/repos","events_url":"https://api.github.com/users/vStone/events{/privacy}","received_events_url":"https://api.github.com/users/vStone/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T11:18:55Z","updated_at":"2016-06-22T11:18:55Z","body":"Maybe just use the LTS version then in stead of pinning to a specific version.\r\n\r\n```puppet\r\nclass {'::jenkins':\r\n  lts => true,\r\n}\r\n```"}}
{"actor":{"display_login":"vStone"}}