func init() { // XXX figure out a reasonable default for this value or default to "" // and sanity-check the reporter during Init. If this value is invalid // we should trigger an infastracture failure. flag.StringVar(&artifactDestination, "artifact-destination", "/dev/null", "Jenkins artifact destination") reporter.Register("jenkins", &Reporter{}) }
func init() { flag.IntVar(&maxPendingReports, "max_pending_reports", 64, "Backlog size") flag.IntVar(&numPublishRetries, "num_publish_retries", 8, "Number of times to retry") flag.IntVar(&maxPendingReports, "backoff_time_ms", 1000, "Time to wait between two consecutive retries") reporter.Register("mesos", &Reporter{}) }
func init() { flag.StringVar(&reporterDestinations, "reporter-destinations", "mesos:artifactstore", "Colon-separated list of reporter destinations") reporter.Register("multireporter", &Reporter{}) }
func init() { reporter.Register("artifactstore", &Reporter{chunkedArtifacts: make(map[string]*artifacts.ChunkedArtifact)}) flag.StringVar(&artifactServer, "artifacts-server", "", "Artifacts server URL. If blank, this reporter is disabled.") flag.StringVar(&artifactBucketId, "artifacts-bucket-id", "", "Artifacts Bucket ID (inside the main bucket; not a real s3 bucket; must not exist)") }