Skip to content

Commit

Permalink
Merge pull request #7960 from bparees/flush
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot committed Mar 12, 2016
2 parents 641cafc + 9478e43 commit 2d2d659
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/build/builder/docker.go
Expand Up @@ -105,6 +105,7 @@ func (d *DockerBuilder) Build() error {
glog.Warningf("Failed to remove temporary build tag %v: %v", buildTag, err)
}

defer glog.Flush()
if push {
// Get the Docker push authentication
pushAuthConfig, authPresent := dockercfg.NewHelper().GetDockerAuth(
Expand Down
2 changes: 1 addition & 1 deletion pkg/build/builder/sti.go
Expand Up @@ -246,6 +246,7 @@ func (s *S2IBuilder) Build() error {
glog.Warningf("Failed to remove temporary build tag %v: %v", buildTag, err)
}

defer glog.Flush()
if push {
// Get the Docker push authentication
pushAuthConfig, authPresent := dockercfg.NewHelper().GetDockerAuth(
Expand Down Expand Up @@ -274,7 +275,6 @@ func (s *S2IBuilder) Build() error {
return errors.New(msg)
}
glog.Infof("Successfully pushed %s", pushTag)
glog.Flush()
}
return nil
}
Expand Down

0 comments on commit 2d2d659

Please sign in to comment.