mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-10-24 19:13:59 +00:00
16 lines
264 B
Go
16 lines
264 B
Go
package bitbucket
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/drone/drone/plugin/remote"
|
|
)
|
|
|
|
func init() {
|
|
var cli = os.Getenv("BITBUCKET_CLIENT")
|
|
var sec = os.Getenv("BITBUCKET_SECRET")
|
|
if len(cli) == 0 || len(sec) == 0 {
|
|
return
|
|
}
|
|
remote.Register(NewDefault(cli, sec))
|
|
}
|