diff --git a/app/cmd/config_update.go b/app/cmd/config_update.go index aa2ff5ca..f34c018b 100644 --- a/app/cmd/config_update.go +++ b/app/cmd/config_update.go @@ -36,6 +36,10 @@ func (o *configUpdateOption) preRunE(_ *cobra.Command, args []string) (err error if len(args) > 0 { o.name = args[0] + } else { + if jenkins := getCurrentJenkins(); jenkins != nil { + o.name = jenkins.Name + } } return }