From 29f170779747960b32b27216fb7dd538881f401d Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 3 Jul 2021 15:09:12 +0200 Subject: [PATCH] cleanup unused code --- plugin/impl.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/plugin/impl.go b/plugin/impl.go index d8b6f52..0cd15eb 100644 --- a/plugin/impl.go +++ b/plugin/impl.go @@ -41,7 +41,6 @@ type Login struct { // Build defines Docker build parameters. type Build struct { Remote string // Git remote URL - Name string // Git commit sha used as docker default named tag Ref string // Git commit ref Branch string // Git repository branch Dockerfile string // Docker build Dockerfile @@ -74,11 +73,6 @@ type Settings struct { // Validate handles the settings validation of the plugin. func (p *Plugin) Validate() error { - p.settings.Build.Name = "00000000" - if p.pipeline.Commit.SHA != "" { - p.settings.Build.Name = p.pipeline.Commit.SHA - } - p.settings.Build.Branch = p.pipeline.Repo.Branch p.settings.Build.Ref = p.pipeline.Commit.Ref p.settings.Daemon.Registry = p.settings.Login.Registry