mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 14:21:52 +00:00
Add bitbucket datacenter (server) support (#2503)
This pull-requests re-introduces the Bitbucket Server support with a more or less complete rewrite of the forge implementation. We have a lot of on-premises git repositories hosted in Bitbucket Server and need a CI solution for running that and Woodpecker looks promising. The implementation is based on external Bitbucket Server REST client library which we are maintaining and have created in another context. Besides the original support for Bitbucket the re-implementation also adds support for handling Bitbucket pull-request events.
This commit is contained in:
committed by
GitHub
parent
0c9bbf91a3
commit
364d708923
@@ -32,7 +32,7 @@
|
||||
<i-mdi-error-outline v-else-if="name === 'error'" class="h-5 w-5" />
|
||||
<i-simple-icons-gitea v-else-if="name === 'gitea'" class="h-8 w-8" />
|
||||
<i-ph-gitlab-logo-simple-fill v-else-if="name === 'gitlab'" class="h-8 w-8" />
|
||||
<i-mdi-bitbucket v-else-if="name === 'bitbucket'" class="h-8 w-8" />
|
||||
<i-mdi-bitbucket v-else-if="name === 'bitbucket' || name === 'bitbucket_dc'" class="h-8 w-8" />
|
||||
<i-vaadin-question-circle-o v-else-if="name === 'question'" class="h-6 w-6" />
|
||||
<i-ic-twotone-add v-else-if="name === 'plus'" class="h-6 w-6" />
|
||||
<i-mdi-format-list-bulleted v-else-if="name === 'list'" class="h-6 w-6" />
|
||||
@@ -85,6 +85,7 @@ export type IconNames =
|
||||
| 'gitea'
|
||||
| 'gitlab'
|
||||
| 'bitbucket'
|
||||
| 'bitbucket_dc'
|
||||
| 'question'
|
||||
| 'list'
|
||||
| 'loading'
|
||||
|
@@ -6,7 +6,7 @@ declare global {
|
||||
WOODPECKER_VERSION: string | undefined;
|
||||
WOODPECKER_SKIP_VERSION_CHECK: boolean | undefined;
|
||||
WOODPECKER_CSRF: string | undefined;
|
||||
WOODPECKER_FORGE: 'github' | 'gitlab' | 'gitea' | 'bitbucket' | undefined;
|
||||
WOODPECKER_FORGE: 'github' | 'gitlab' | 'gitea' | 'bitbucket' | 'bitbucket_dc' | undefined;
|
||||
WOODPECKER_ROOT_PATH: string | undefined;
|
||||
WOODPECKER_ENABLE_SWAGGER: boolean | undefined;
|
||||
}
|
||||
|
@@ -32,6 +32,8 @@ const pipelines = computed(() =>
|
||||
b.ref
|
||||
.replaceAll('refs/pull/', '')
|
||||
.replaceAll('refs/merge-requests/', '')
|
||||
.replaceAll('refs/pull-requests/', '')
|
||||
.replaceAll('/from', '')
|
||||
.replaceAll('/merge', '')
|
||||
.replaceAll('/head', '') === pullRequest.value,
|
||||
),
|
||||
|
Reference in New Issue
Block a user