{"action":"created","issue":{"url":"https://api.github.com/repos/spinnaker/spinnaker/issues/2469","repository_url":"https://api.github.com/repos/spinnaker/spinnaker","labels_url":"https://api.github.com/repos/spinnaker/spinnaker/issues/2469/labels{/name}","comments_url":"https://api.github.com/repos/spinnaker/spinnaker/issues/2469/comments","events_url":"https://api.github.com/repos/spinnaker/spinnaker/issues/2469/events","html_url":"https://github.com/spinnaker/spinnaker/issues/2469","id":300403757,"number":2469,"title":"Produces Artifacts fails without Default","user":{"login":"hodgesmr","id":1208575,"avatar_url":"https://avatars0.githubusercontent.com/u/1208575?v=4","gravatar_id":"","url":"https://api.github.com/users/hodgesmr","html_url":"https://github.com/hodgesmr","followers_url":"https://api.github.com/users/hodgesmr/followers","following_url":"https://api.github.com/users/hodgesmr/following{/other_user}","gists_url":"https://api.github.com/users/hodgesmr/gists{/gist_id}","starred_url":"https://api.github.com/users/hodgesmr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hodgesmr/subscriptions","organizations_url":"https://api.github.com/users/hodgesmr/orgs","repos_url":"https://api.github.com/users/hodgesmr/repos","events_url":"https://api.github.com/users/hodgesmr/events{/privacy}","received_events_url":"https://api.github.com/users/hodgesmr/received_events","type":"User","site_admin":false},"labels":[{"id":779873332,"url":"https://api.github.com/repos/spinnaker/spinnaker/labels/artifacts","name":"artifacts","color":"ea93bd","default":false},{"id":111166992,"url":"https://api.github.com/repos/spinnaker/spinnaker/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-26T21:32:01Z","updated_at":"2018-02-27T12:25:41Z","closed_at":"2018-02-27T12:25:41Z","author_association":"NONE","body":"If I configure **Produces Artifacts** in a pipeline stage without checking and providing _Use Default Artifact_, the stage consistently fails to locate an artifact in GCS:\r\n\r\n>**Exception ( Bind Produced Artifacts )**\r\n>Unmatched expected artifact ExpectedArtifact(matchArtifact=Artifact(type=gcs/object, name=gs://my-bucket/path/matt_test_8.yaml, version=null, location=null, reference=null, metadata=null, artifactAccount=null, provenance=null, uuid=null), usePriorArtifact=false, useDefaultArtifact=false, defaultArtifact=Artifact(type=gcs/object, name=gs://my-bucket/path/matt_test_8.yaml, version=null, location=null, reference=gs://my-bucket/path/matt_test_8.yaml, metadata=null, artifactAccount=null, provenance=null, uuid=null), id=6db16b35-5b82-4442-a1a2-7a121ba0c6a3, boundArtifact=null) could not be resolved.\r\n\r\nHowever, if I configure it with a Default Artifact and simply provide the same expression, it succeeds:\r\n\r\n<img width=\"737\" alt=\"screen shot 2018-02-26 at 2 25 22 pm\" src=\"https://user-images.githubusercontent.com/1208575/36696485-8de35164-1b01-11e8-8ba3-a6ab505f2d9f.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/spinnaker/spinnaker/issues/comments/368857163","html_url":"https://github.com/spinnaker/spinnaker/issues/2469#issuecomment-368857163","issue_url":"https://api.github.com/repos/spinnaker/spinnaker/issues/2469","id":368857163,"user":{"login":"lwander","id":4874941,"avatar_url":"https://avatars3.githubusercontent.com/u/4874941?v=4","gravatar_id":"","url":"https://api.github.com/users/lwander","html_url":"https://github.com/lwander","followers_url":"https://api.github.com/users/lwander/followers","following_url":"https://api.github.com/users/lwander/following{/other_user}","gists_url":"https://api.github.com/users/lwander/gists{/gist_id}","starred_url":"https://api.github.com/users/lwander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lwander/subscriptions","organizations_url":"https://api.github.com/users/lwander/orgs","repos_url":"https://api.github.com/users/lwander/repos","events_url":"https://api.github.com/users/lwander/events{/privacy}","received_events_url":"https://api.github.com/users/lwander/received_events","type":"User","site_admin":false},"created_at":"2018-02-27T12:25:41Z","updated_at":"2018-02-27T12:25:41Z","author_association":"MEMBER","body":"That makes sense - the \"produces artifact\" does inject it, but only once the artifact is actually bound. Since the \"run job\" stage doesn't emit any artifacts, the \"match artifact\" in the expected artifact you declared doesn't have anything to bind to. Other stages (webhook/runjob) do actually emit an artifact that the \"match artifact\" can bind to. For example, when you deploy a manifest, the output kubernetes/object artifact type is emitted into the stage context.\r\n\r\nGood point on making that the default here - I'm going to close this and file issues to make this clearer."}}
{"actor":{"display_login":"lwander"}}