From df45c847630e4d54e4d0168364e460d31cf18153 Mon Sep 17 00:00:00 2001 From: Joachim Hill-Grannec Date: Tue, 19 Apr 2016 01:32:40 -0400 Subject: [PATCH] added a few comments --- remote/bitbucketserver/bitbucketserver.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/remote/bitbucketserver/bitbucketserver.go b/remote/bitbucketserver/bitbucketserver.go index 601a2fd77..afa02754d 100644 --- a/remote/bitbucketserver/bitbucketserver.go +++ b/remote/bitbucketserver/bitbucketserver.go @@ -1,5 +1,20 @@ package bitbucketserver +// Requires the following to be set +// GIT_USERNAME -> a username on the stash server that has access to clone all repos +// GIT_USERPASSWORD -> password to the user that has access to clone all repos +// REMOTE_DRIVER=bitbucketserver +// REMOTE_CONFIG=https://{servername}?consumer_key={key added on the stash server for oath1}&open={not used yet} +// Configure application links in the bitbucket server -- +// application url needs to be the base url to drone +// incoming auth needs to have the consumer key (same as the key in REMOTE_CONFIG) +// set the public key (public key from the private key added to /private_key.pem name matters) +// consumer call back is the base url to drone plus /authorize/ +// Needs a pem private key added to / something like "ADD private_key.pem /" (name matters, needs to be /private_key.pem) to the Dockerfile +// After that you should be good to go + + + import ( "github.com/drone/drone/shared/envconfig" "net/url"