Skip to content

Commit

Permalink
Use BITBUCKET_BRANCH if available
Browse files Browse the repository at this point in the history
  • Loading branch information
davegaeddert committed Sep 10, 2019
1 parent 4e3149e commit c548985
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/ci/bitbucketpipelines/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ func (gitlab *BitbucketPipelines) Autoconfigure() error {
}

func (gitlab *BitbucketPipelines) Branch() string {
if s := os.Getenv("BITBUCKET_BRANCH"); s != "" {
return s
}
return ""
}

Expand Down

0 comments on commit c548985

Please sign in to comment.