harness-drone/plugin/remote/gitlab/register.go

23 lines
359 B
Go
Raw Normal View History

package gitlab
import (
"github.com/drone/config"
"github.com/drone/drone/plugin/remote"
)
var (
gitlabURL = config.String("gitlab-url", "")
)
// Registers the Gitlab plugin using the default
// settings from the config file or environment
// variables.
func Register() {
if len(*gitlabURL) == 0 {
return
}
remote.Register(
New(*gitlabURL),
)
}