{"action":"created","issue":{"url":"https://api.github.com/repos/ind9/gocd-s3-artifacts/issues/29","repository_url":"https://api.github.com/repos/ind9/gocd-s3-artifacts","labels_url":"https://api.github.com/repos/ind9/gocd-s3-artifacts/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/ind9/gocd-s3-artifacts/issues/29/comments","events_url":"https://api.github.com/repos/ind9/gocd-s3-artifacts/issues/29/events","html_url":"https://github.com/ind9/gocd-s3-artifacts/issues/29","id":132756573,"number":29,"title":"Source label does not reflect upstream pipeline label","user":{"login":"haimizrael","id":7175841,"avatar_url":"https://avatars.githubusercontent.com/u/7175841?v=3","gravatar_id":"","url":"https://api.github.com/users/haimizrael","html_url":"https://github.com/haimizrael","followers_url":"https://api.github.com/users/haimizrael/followers","following_url":"https://api.github.com/users/haimizrael/following{/other_user}","gists_url":"https://api.github.com/users/haimizrael/gists{/gist_id}","starred_url":"https://api.github.com/users/haimizrael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haimizrael/subscriptions","organizations_url":"https://api.github.com/users/haimizrael/orgs","repos_url":"https://api.github.com/users/haimizrael/repos","events_url":"https://api.github.com/users/haimizrael/events{/privacy}","received_events_url":"https://api.github.com/users/haimizrael/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-10T16:53:05Z","updated_at":"2016-02-10T17:16:20Z","closed_at":null,"body":"Artifacts uploaded to S3 take on a label in the form {Pipeline Counter}.{Stage Counter}, which overrides the actual label of the pipeline that produced the artifact.  This makes it more difficult to trace deployments of versions and respond to auditor requests.  \r\n\r\nFor example, if you have a build/test/package pipeline, whose label is set to **2.1.3.${COUNT}**, it will produce an artifact with version label like **2.1.3.103**.  The S3 package label, however, would be something like **103.1**.  The issue this causes is for example if you viewed possible versions to deploy in a deployment pipeline, you would see versions like 103.1, 102.1, 101.1 rather than the actual versions produced by the build pipeline.\r\n\r\nWhile it's possible to find out the original version with the trackback URL, that's quite inconvenient, as you have to click each one.  We have a temporary work-around in that we use both the upstream build pipeline as well as the s3 package as materials.  We fetch the s3 package, but use the label of the upstream pipeline.  Works, but obviously not ideal, and it won't work if the upstream pipeline is on a different Go server.\r\n\r\nWe're looking into possible remediation, including adding the original label as object metadata.\r\n\r\nPlease let me know if this makes sense or perhaps we missed something in how we have set up our pipelines.  I'd appreciate any feedback.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/ind9/gocd-s3-artifacts/issues/comments/182488369","html_url":"https://github.com/ind9/gocd-s3-artifacts/issues/29#issuecomment-182488369","issue_url":"https://api.github.com/repos/ind9/gocd-s3-artifacts/issues/29","id":182488369,"user":{"login":"manojlds","id":191378,"avatar_url":"https://avatars.githubusercontent.com/u/191378?v=3","gravatar_id":"","url":"https://api.github.com/users/manojlds","html_url":"https://github.com/manojlds","followers_url":"https://api.github.com/users/manojlds/followers","following_url":"https://api.github.com/users/manojlds/following{/other_user}","gists_url":"https://api.github.com/users/manojlds/gists{/gist_id}","starred_url":"https://api.github.com/users/manojlds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manojlds/subscriptions","organizations_url":"https://api.github.com/users/manojlds/orgs","repos_url":"https://api.github.com/users/manojlds/repos","events_url":"https://api.github.com/users/manojlds/events{/privacy}","received_events_url":"https://api.github.com/users/manojlds/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T17:16:20Z","updated_at":"2016-02-10T17:16:20Z","body":"> We're looking into possible remediation, including adding the original label as object metadata.\r\n\r\n@haimizrael  That approach should be possible.  Would that be a satisfactory solution?"}}