コード例 #1
0
ファイル: register.go プロジェクト: carnivalmobile/drone
// Registers the Gogs plugin using the default
// settings from the config file or environment
// variables.
func Register() {
	if len(*gogsUrl) == 0 {
		return
	}
	remote.Register(
		New(*gogsUrl, *gogsSecret),
	)
}
コード例 #2
0
ファイル: register.go プロジェクト: grupawp/drone
// registers the GitHub (github.com) plugin
func registerGitHub() {
	if len(*githubClient) == 0 || len(*githubSecret) == 0 {
		return
	}
	remote.Register(
		NewDefault(*githubClient, *githubSecret),
	)
}
コード例 #3
0
ファイル: register.go プロジェクト: grupawp/drone
// 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),
	)
}
コード例 #4
0
ファイル: register.go プロジェクト: zankard/drone
// Registers the Bitbucket plugin using the default
// settings from the config file or environment
// variables.
func Register() {
	if len(*bitbucketClient) == 0 || len(*bitbucketSecret) == 0 {
		return
	}
	remote.Register(
		NewDefault(*bitbucketClient, *bitbucketSecret, *bitbucketOpen),
	)
}
コード例 #5
0
ファイル: register.go プロジェクト: carnivalmobile/drone
// 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,
			*gitlabSkipVerify,
		),
	)
}
コード例 #6
0
ファイル: register.go プロジェクト: zankard/drone
// 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,
			*gitlabSkipVerify,
			*gitlabOpen,
			*gitlabClient,
			*gitlabSecret,
		),
	)
}
コード例 #7
0
ファイル: register.go プロジェクト: grupawp/drone
// registers the GitHub Enterprise plugin
func registerGitHubEnterprise() {
	if len(*githubEnterpriseURL) == 0 ||
		len(*githubEnterpriseAPI) == 0 ||
		len(*githubEnterpriseClient) == 0 ||
		len(*githubEnterpriseSecret) == 0 {
		return
	}
	remote.Register(
		New(
			*githubEnterpriseURL,
			*githubEnterpriseAPI,
			*githubEnterpriseClient,
			*githubEnterpriseSecret,
			*githubEnterprisePrivate,
		),
	)
}
コード例 #8
0
ファイル: register.go プロジェクト: reinbach/drone
// Registers the Stash plugin using the default
// settings from the config file or environment
// variables
func Register() {
	if len(*stashURL) == 0 ||
		len(*stashAPI) == 0 ||
		len(*stashSecret) == 0 ||
		len(*stashPrivateKey) == 0 ||
		len(*stashHook) == 0 {
		return
	}
	remote.Register(
		New(
			*stashURL,
			*stashAPI,
			*stashSecret,
			*stashPrivateKey,
			*stashHook,
			*stashOpen,
		),
	)
}