Skip to content
Snippets Groups Projects

fix: read error from upload artifacts execution.

Merged Paul 🐻 requested to merge paulrbr/gitlab-runner:fix-artifact-upload-errors into master
All threads resolved!
Files
5
+ 3
3
@@ -169,11 +169,11 @@ const (
)
func (when ArtifactWhen) OnSuccess() bool {
return when == "" || when == ArtifactWhenOnSuccess || when == ArtifactWhenAlways
return when == "" || when == ArtifactWhenOnSuccess || when == ArtifactWhenAlways
}
func (when ArtifactWhen) OnFailure() bool {
return when == ArtifactWhenOnFailure || when == ArtifactWhenAlways
return when == ArtifactWhenOnFailure || when == ArtifactWhenAlways
}
type Artifact struct {
@@ -185,7 +185,7 @@ type Artifact struct {
}
func (a Artifact) ShouldUpload(state error) bool {
return (state == nil && a.When.OnSuccess()) || (state != nil && a.When.OnFailure())
return (state == nil && a.When.OnSuccess()) || (state != nil && a.When.OnFailure())
}
type Artifacts []Artifact
Loading