{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/6241","labels_url":"https://api.github.com/repos/openshift/origin/issues/6241/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/6241/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/6241/events","html_url":"https://github.com/openshift/origin/issues/6241","id":121217779,"number":6241,"title":"S2I builds should try annotate the RC / DC with the git commit sha and the build id / pod when the build completes","user":{"login":"jstrachan","id":30140,"avatar_url":"https://avatars.githubusercontent.com/u/30140?v=3","gravatar_id":"","url":"https://api.github.com/users/jstrachan","html_url":"https://github.com/jstrachan","followers_url":"https://api.github.com/users/jstrachan/followers","following_url":"https://api.github.com/users/jstrachan/following{/other_user}","gists_url":"https://api.github.com/users/jstrachan/gists{/gist_id}","starred_url":"https://api.github.com/users/jstrachan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstrachan/subscriptions","organizations_url":"https://api.github.com/users/jstrachan/orgs","repos_url":"https://api.github.com/users/jstrachan/repos","events_url":"https://api.github.com/users/jstrachan/events{/privacy}","received_events_url":"https://api.github.com/users/jstrachan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-09T11:38:17Z","updated_at":"2015-12-09T15:13:38Z","closed_at":null,"body":"which would make it easier from a console to link to the source code version and build log that makes an RC / DC.\r\n\r\nWe've been doing this by default in our fabric8 Jenkins Workflows which means for each environment of interest, its easy to link to the version, git commit and build log for each RC / DC / pod.\r\n\r\ne.g. like this UI - you can see the git commit and build log for each RC in each environment (and see the code differences for the rolling upgrade in the Staging env)...\r\n![environments-rollingupgrade](https://cloud.githubusercontent.com/assets/30140/11684356/017cc14a-9e69-11e5-8c95-9eca5be24708.png)\r\n\r\nRight now S2I annotates the deployer pod; but that dies so there's no easy way to get the build log. Nor is there any annotation for the git commit SHA so we can't easily view the source version for the RC.\r\n\r\nhere's the main annotations right now that get added to the RC:\r\n```\r\napiVersion: v1\r\nkind: ReplicationController\r\nmetadata:\r\n  annotations:\r\n    openshift.io/deployer-pod.name: james-1-deploy\r\n    openshift.io/deployment-config.latest-version: \"1\"\r\n    openshift.io/deployment-config.name: james\r\n    openshift.io/deployment.phase: Complete\r\n```\r\nwhich is cool and about deployment; but there's nothing about build logs or git commit sha etc.\r\n\r\nFWIW here's the annotations we use for fabric8 + jenkins:\r\nhttps://github.com/fabric8io/fabric8/blob/master/docs/annotations.md"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/163285757","html_url":"https://github.com/openshift/origin/issues/6241#issuecomment-163285757","issue_url":"https://api.github.com/repos/openshift/origin/issues/6241","id":163285757,"user":{"login":"csrwng","id":5834976,"avatar_url":"https://avatars.githubusercontent.com/u/5834976?v=3","gravatar_id":"","url":"https://api.github.com/users/csrwng","html_url":"https://github.com/csrwng","followers_url":"https://api.github.com/users/csrwng/followers","following_url":"https://api.github.com/users/csrwng/following{/other_user}","gists_url":"https://api.github.com/users/csrwng/gists{/gist_id}","starred_url":"https://api.github.com/users/csrwng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csrwng/subscriptions","organizations_url":"https://api.github.com/users/csrwng/orgs","repos_url":"https://api.github.com/users/csrwng/repos","events_url":"https://api.github.com/users/csrwng/events{/privacy}","received_events_url":"https://api.github.com/users/csrwng/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T15:13:38Z","updated_at":"2015-12-09T15:13:38Z","body":"I believe it has a resolved full image spec based on the ImageStreamTag in the trigger, and we should be able to get the metadata of an ImageStreamImage"}}