From bd1e4f9d7d043050e7b5930d3467d8fd8d23a1ab Mon Sep 17 00:00:00 2001 From: Gennady Lipenkov Date: Fri, 17 Jul 2020 00:45:19 +0300 Subject: [PATCH] yandex-export post-processor artifact id is url. First storage path used. --- post-processor/yandex-export/artifact.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/post-processor/yandex-export/artifact.go b/post-processor/yandex-export/artifact.go index cd117e695..413c19875 100644 --- a/post-processor/yandex-export/artifact.go +++ b/post-processor/yandex-export/artifact.go @@ -15,8 +15,8 @@ func (*Artifact) BuilderId() string { return BuilderId } -func (*Artifact) Id() string { - return "" +func (a *Artifact) Id() string { + return a.urls[0] } func (a *Artifact) Files() []string { @@ -29,11 +29,6 @@ func (a *Artifact) String() string { return fmt.Sprintf("Exported artifacts in: %s", a.paths) } -func (a *Artifact) Url() string { - // print url for first path - return a.urls[0] -} - func (*Artifact) State(name string) interface{} { return nil }