-
Notifications
You must be signed in to change notification settings - Fork 124
/
initial_setup.go
38 lines (33 loc) · 1.87 KB
/
initial_setup.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package command
import (
"context"
"time"
"github.com/evergreen-ci/evergreen"
"github.com/evergreen-ci/evergreen/agent/internal"
"github.com/evergreen-ci/evergreen/agent/internal/client"
"github.com/mongodb/jasper"
)
// initialSetup is an internal command used as a placeholder when the agent is
// setting up in preparation to run a task's commands. This is not meant to be
// invoked by end users.
type initialSetup struct{}
func initialSetupFactory() Command { return &initialSetup{} }
func (*initialSetup) Type() string { return evergreen.CommandTypeSystem }
func (*initialSetup) SetType(s string) {}
func (*initialSetup) FullDisplayName() string { return "initial task setup" }
func (*initialSetup) SetFullDisplayName(s string) {}
func (*initialSetup) Name() string { return "setup.initial" }
func (*initialSetup) SetIdleTimeout(d time.Duration) {}
func (*initialSetup) IdleTimeout() time.Duration { return 0 }
func (*initialSetup) ParseParams(params map[string]interface{}) error { return nil }
func (*initialSetup) JasperManager() jasper.Manager { return nil }
func (*initialSetup) SetJasperManager(_ jasper.Manager) {}
func (*initialSetup) RetryOnFailure() bool { return false }
func (*initialSetup) SetRetryOnFailure(bool) {}
func (*initialSetup) FailureMetadataTags() []string { return nil }
func (*initialSetup) SetFailureMetadataTags([]string) {}
func (*initialSetup) Execute(ctx context.Context,
client client.Communicator, logger client.LoggerProducer, conf *internal.TaskConfig) error {
logger.Task().Info("Performing initial task setup.")
return nil
}