Skip to content

Conversation

rsachdeva-ma
Copy link

Added support for bitbucket


def createMultibranchPipelineJob(project, gitPath, jte) {
def buildNamespace = System.getenv("BUILD_NAMESPACE") ?: "labs-ci-cd"
def buildNamespace = System.getenv("BUILD_NAMESPACE") ?: "ocp-ci-cd"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we keep this as labs-ci-cd? 🙃

id("${project}")
remote(gitPath)
credentialsId("${buildNamespace}-${buildGitAuthSecret}")
credentialsId("${credentialsId}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we need this. I think, instead of defining a new SSH_ACCESS_KEY variable, you can create a secret with ssh key in it (secret type kubernetes.io/ssh-auth). It'd be the same as username/password secret. And you get to use BUILD_GIT_AUTH_SECRET and doesn't have to change credentialsId

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@springdo tagging you to check if you have other suggestions ☺️

@ckavili
Copy link
Collaborator

ckavili commented Aug 9, 2021

hey @rsachdeva-ma thanks for the PR! I put two comments there! I'll also try and see if I can verify that SSH key part :)

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.

2 participants