cleanup unused code

This commit is contained in:
Robert Kaussow 2021-07-03 15:09:12 +02:00
parent 2e0e0dd7d7
commit 29f1707797
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
1 changed files with 0 additions and 6 deletions

View File

@ -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