{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/9302","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/9302/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/9302/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/9302/events","html_url":"https://github.com/openshift/origin/issues/9302","id":159984161,"number":9302,"title":"jenkins pipeline template ","user":{"login":"xcoulon","id":178502,"avatar_url":"https://avatars.githubusercontent.com/u/178502?v=3","gravatar_id":"","url":"https://api.github.com/users/xcoulon","html_url":"https://github.com/xcoulon","followers_url":"https://api.github.com/users/xcoulon/followers","following_url":"https://api.github.com/users/xcoulon/following{/other_user}","gists_url":"https://api.github.com/users/xcoulon/gists{/gist_id}","starred_url":"https://api.github.com/users/xcoulon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xcoulon/subscriptions","organizations_url":"https://api.github.com/users/xcoulon/orgs","repos_url":"https://api.github.com/users/xcoulon/repos","events_url":"https://api.github.com/users/xcoulon/events{/privacy}","received_events_url":"https://api.github.com/users/xcoulon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/kind/question","name":"kind/question","color":"cc317c"},{"url":"https://api.github.com/repos/openshift/origin/labels/priority/P2","name":"priority/P2","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"bparees","id":4974046,"avatar_url":"https://avatars.githubusercontent.com/u/4974046?v=3","gravatar_id":"","url":"https://api.github.com/users/bparees","html_url":"https://github.com/bparees","followers_url":"https://api.github.com/users/bparees/followers","following_url":"https://api.github.com/users/bparees/following{/other_user}","gists_url":"https://api.github.com/users/bparees/gists{/gist_id}","starred_url":"https://api.github.com/users/bparees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bparees/subscriptions","organizations_url":"https://api.github.com/users/bparees/orgs","repos_url":"https://api.github.com/users/bparees/repos","events_url":"https://api.github.com/users/bparees/events{/privacy}","received_events_url":"https://api.github.com/users/bparees/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2016-06-13T15:54:17Z","updated_at":"2016-06-14T15:06:02Z","closed_at":null,"body":"When I apply the pipeline template for a project named 'kitchenink-html5-mobile' instead of 'pipelineproject', the failure happens in Jenkins when the 'pipeline' job is to be created: \r\n\r\nI found in the jenkinstemplate [1] that I use that the default project name is 'pipelineproject' and I believe that it is not set with the actual project name.\r\nHowever, I have no idea how to pass such a parameter from my project template [2] to the jenkins one.\r\n\r\n[1] https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/pipeline/jenkinstemplate.json \r\n[2] https://github.com/redhat-kontinuity/kitchensink-html5-mobile/blob/master/pipelinetemplate.json\r\n\r\n\r\n##### Version\r\noc v1.3.0-alpha.0-637-gaf94826\r\nkubernetes v1.3.0-alpha.1-331-g0522e63\r\n\r\n##### Steps To Reproduce\r\nupdate the jenkins template:\r\n```\r\noc delete template jenkins -n openshift\r\noc create -f https://raw.githubusercontent.com/openshift/origin/master/examples/jenkins/pipeline/jenkinstemplate.json -n openshift\r\n```\r\n\r\ncreate a new project:\r\n`oc new-project kitchensink-cli`\r\n\r\nretrieve and apply the pipeline template for the project ('oc new-app -f' did not work using a file pulled from github):\r\n```\r\nwget https://raw.githubusercontent.com/redhat-kontinuity/kitchensink-html5-mobile/master/pipelinetemplate.json\r\noc new-app -f pipelinetemplate.json -p NAME=kitchensink-cli -p SOURCE_REPOSITORY_URL=https://github.com/redhat-kontinuity/kitchensink-html5-mobile.git\r\n\r\n```\r\nlocate the pod which runs Jenkins and check the logs:\r\n`oc logs -f <jenkins_pod_id>`\r\n\r\n##### Current Result\r\n```\r\nWARNING: Failed to instantiate Key[type=io.fabric8.jenkins.openshiftsync.GlobalPluginConfiguration, annotation=[none]]; skipping this component\r\ncom.google.inject.ProvisionException: Guice provision errors:\r\nError injecting constructor, io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://kubernetes.default/oapi/v1/namespaces/pipelineproject/buildconfigs. Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked..\r\n  at io.fabric8.jenkins.openshiftsync.GlobalPluginConfiguration.<init>(GlobalPluginConfiguration.java:59)\r\n  ...\r\n\r\n```\r\n##### Expected Result\r\n\r\nThe pipeline job should have been created in Jenkins.\r\n\r\n##### Additional Information\r\n[try to run `$ oadm diagnostics` command if possible]\r\n[if you are reporting issue related to builds, provide build logs with `BUILD_LOGLEVEL=5`]\r\n[consider attaching output of the `$ oc get all -o json -n <namespace>` command to the issue]\r\n[visit https://docs.openshift.org/latest/welcome/index.html]\r\n"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/225911784","html_url":"https://github.com/openshift/origin/issues/9302#issuecomment-225911784","issue_url":"https://api.github.com/repos/openshift/origin/issues/9302","id":225911784,"user":{"login":"jimmidyson","id":464659,"avatar_url":"https://avatars.githubusercontent.com/u/464659?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmidyson","html_url":"https://github.com/jimmidyson","followers_url":"https://api.github.com/users/jimmidyson/followers","following_url":"https://api.github.com/users/jimmidyson/following{/other_user}","gists_url":"https://api.github.com/users/jimmidyson/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmidyson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmidyson/subscriptions","organizations_url":"https://api.github.com/users/jimmidyson/orgs","repos_url":"https://api.github.com/users/jimmidyson/repos","events_url":"https://api.github.com/users/jimmidyson/events{/privacy}","received_events_url":"https://api.github.com/users/jimmidyson/received_events","type":"User","site_admin":false},"created_at":"2016-06-14T15:06:02Z","updated_at":"2016-06-14T15:06:02Z","body":"Yes that's the correct issue which I'm working on fixing right now. It's to do with Jenkins non-isolated classloaders for (de-)serializing config & conflicting versions of same JAR in global classpath. Switching to only using classes internal to the sync plugin for config elements."}}
{"actor":{"display_login":"jimmidyson"}}