2014-09-02 07:18:17 +00:00
|
|
|
package gitlab
|
|
|
|
|
|
|
|
import (
|
2014-09-03 07:23:36 +00:00
|
|
|
"github.com/drone/config"
|
2014-09-02 07:18:17 +00:00
|
|
|
"github.com/drone/drone/plugin/remote"
|
|
|
|
)
|
|
|
|
|
2014-09-03 07:23:36 +00:00
|
|
|
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 {
|
2014-09-02 07:18:17 +00:00
|
|
|
return
|
|
|
|
}
|
2014-09-03 07:23:36 +00:00
|
|
|
remote.Register(
|
|
|
|
New(*gitlabURL),
|
|
|
|
)
|
2014-09-02 07:18:17 +00:00
|
|
|
}
|