Merge "multibranch-bitbucket: Configure server address"

This commit is contained in:
Zuul 2018-06-21 17:30:08 +00:00 committed by Gerrit Code Review
commit 28ff4c43d7
3 changed files with 4 additions and 0 deletions

View File

@ -298,6 +298,7 @@ def bitbucket_scm(xml_parent, data):
:arg bool discover-tags: Discovers tags on the repository.
(default false)
:arg str server-url: The address of the bitbucket server. (optional)
Minimal Example:
@ -323,6 +324,7 @@ def bitbucket_scm(xml_parent, data):
mapping_optional = [
('credentials-id', 'credentialsId', None),
('server-url', 'serverUrl', None),
]
helpers.convert_mapping_to_xml(
source, data, mapping_optional, fail_required=False)

View File

@ -36,6 +36,7 @@
<repoOwner>SANDBOX</repoOwner>
<repository>test</repository>
<credentialsId>secret</credentialsId>
<serverUrl>https://bitbucket.example.com:8080</serverUrl>
<traits>
<com.cloudbees.jenkins.plugins.bitbucket.TagDiscoveryTrait/>
</traits>

View File

@ -5,4 +5,5 @@ scm:
credentials-id: 'secret'
repo-owner: 'SANDBOX'
repo: 'test'
server-url: https://bitbucket.example.com:8080
discover-tags: true