Bitbucket 服务器位置
Bitbucket 服务器集成支持从 Bitbucket 服务器加载目录实体。 实体可以添加到静态目录配置或在目录-导入插件。
配置
integrations:
bitbucketServer:
- host: bitbucket.mycompany.com
apiBaseUrl: https://bitbucket.mycompany.com/rest/api/1.0
token: ${BITBUCKET_SERVER_TOKEN}
或使用基本认证
integrations:
bitbucketServer:
- host: bitbucket.company.com
apiBaseUrl: https://bitbucket.mycompany.com/rest/api/1.0
username: ${BITBUCKET_SERVER_USERNAME}
password: ${BITBUCKET_SERVER_PASSWORD}
正下方bitbucketServer
键是一个提供商配置列表,在这里你可以列出你想从其中获取数据的 Bitbucket Server 提供商。 每个条目都是一个包含以下元素的结构:
host
: The host of the Bitbucket Server instance, e.g.bitbucket.mycompany.com
. *token
(optional): A personal access token as expected by Bitbucket Server. *username
(optional): use for Basic Auth for Bitbucket Server. *password
(optional): use for Basic Auth for Bitbucket Server. Note: a token can also be used as a substitute for the password, see HTTP access tokens. *apiBaseUrl
(optional): The URL of the Bitbucket Server API. For self-hosted installations, it is commonly athttps://<host>/rest/api/1.0
.