feat: publish sanitized custom.97 source
This commit is contained in:
1022 files changed
+69903
-19207
No files matched your search
@@ -26,7 +26,7 @@ type TaskArtifactAccessLimits struct {
|
||||
func positiveTaskArtifactLimit(env string, defaultValue int) int {
|
||||
value := common.GetEnvOrDefault(env, defaultValue)
|
||||
if value <= 0 {
|
||||
common.SysError(env + " must be positive; using default")
|
||||
common.SysError(common.LogText("%s must be positive; using default", env))
|
||||
return defaultValue
|
||||
}
|
||||
return value
|
||||
|
||||
@@ -63,12 +63,12 @@ func LoadTaskArtifactStoreConfig() TaskArtifactStoreConfig {
|
||||
S3PresignTTLSeconds: common.GetEnvOrDefault(TaskArtifactStoreS3PresignTTLEnv, DefaultTaskArtifactStorePresignTTLSeconds),
|
||||
}
|
||||
if err := ValidateTaskArtifactStoreConfig(config); err != nil {
|
||||
common.SysError("invalid task artifact store configuration: " + err.Error() + "; using upstream mode")
|
||||
common.SysError(common.LogText("invalid task artifact store configuration: %s; using upstream mode", err.Error()))
|
||||
config.Mode = TaskArtifactStoreModeUpstream
|
||||
return config
|
||||
}
|
||||
if config.Mode == TaskArtifactStoreModeS3 {
|
||||
common.SysError("task artifact S3 storage is not implemented; using upstream mode")
|
||||
common.SysError(common.LogText("task artifact S3 storage is not implemented; using upstream mode"))
|
||||
config.Mode = TaskArtifactStoreModeUpstream
|
||||
}
|
||||
return config
|
||||
|
||||
Reference in new issue
Block a user