Skip to content

[NGPIPELINE-523] Change out remote for serverUrl for Bitbucket MBPs#11

Merged
kshultzCB merged 1 commit intocloudbees:masterfrom
kshultzCB:NGPIPELINE-523-update-templates-docs
Jul 31, 2019
Merged

[NGPIPELINE-523] Change out remote for serverUrl for Bitbucket MBPs#11
kshultzCB merged 1 commit intocloudbees:masterfrom
kshultzCB:NGPIPELINE-523-update-templates-docs

Conversation

@kshultzCB
Copy link
Copy Markdown
Contributor

Summary

This is a pull request to accompany cbn-site PR 1842.

Backstory

CORE-1897 was opened because a customer followed our documentation, and had a problem. They discovered that setting the remote field on a template for multibranch projects hosted on Bitbucket servers did not work. And in fact, it was defaulting to https://bitbucket.org. I opened NGPIPELINE-523 to fix what we thought at the time was a bug, but the correct fix turned out to be this documentation change.

Examples

Below is a sample template.yaml which will not work, because the remote field name is the wrong name.

version: 1
type: pipeline-template
templateType: MULTIBRANCH

name: KARL-MADE-THIS
description: Simple Java App With Maven
multibranch:
  branchSource:
    bitbucket:
      remote: https://bitbucket.beescloud.com
      repoOwner: KARL
      repository: catalog-repo
      credentialsId: dev1bbs

And here is a corrected version, which works correctly:

version: 1
type: pipeline-template
templateType: MULTIBRANCH

name: KARL-MADE-THIS
description: Simple Java App With Maven
multibranch:
  branchSource:
    bitbucket:
      serverUrl: https://bitbucket.beescloud.com
      repoOwner: KARL
      repository: catalog-repo
      credentialsId: dev1bbs

@kshultzCB kshultzCB merged commit 7b3939a into cloudbees:master Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants