Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit 29f1707

Browse files
committed
cleanup unused code
1 parent 2e0e0dd commit 29f1707

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

plugin/impl.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ type Login struct {
4141
// Build defines Docker build parameters.
4242
type Build struct {
4343
Remote string // Git remote URL
44-
Name string // Git commit sha used as docker default named tag
4544
Ref string // Git commit ref
4645
Branch string // Git repository branch
4746
Dockerfile string // Docker build Dockerfile
@@ -74,11 +73,6 @@ type Settings struct {
7473

7574
// Validate handles the settings validation of the plugin.
7675
func (p *Plugin) Validate() error {
77-
p.settings.Build.Name = "00000000"
78-
if p.pipeline.Commit.SHA != "" {
79-
p.settings.Build.Name = p.pipeline.Commit.SHA
80-
}
81-
8276
p.settings.Build.Branch = p.pipeline.Repo.Branch
8377
p.settings.Build.Ref = p.pipeline.Commit.Ref
8478
p.settings.Daemon.Registry = p.settings.Login.Registry

0 commit comments

Comments
 (0)