mirror of
https://github.com/harness/drone.git
synced 2025-05-07 16:31:09 +08:00
17 lines
216 B
Go
17 lines
216 B
Go
package gitlab
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/drone/drone/plugin/remote"
|
|
)
|
|
|
|
// registers the Gitlab plugin
|
|
func init() {
|
|
var url = os.Getenv("GITLAB_URL")
|
|
if len(url) == 0 {
|
|
return
|
|
}
|
|
remote.Register(New(url))
|
|
}
|