How to make a commit with bamboo-specs/bamboo.yml

Nahiko Arraiza
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 30, 2022

Hi,

I am developing a plan with bamboo-specs with a yaml file I want to make a commit to a repository (That is not the default repository).

So I am doing something like this:

tasks:
- any-task:
description: Commit
plugin-key: com.atlassian.bamboo.plugins.vcs:task.vcs.commit
configuration:
commitMessage: ${bamboo.buildResultKey}
selectedRepository: my-repo

So if I put like this bamboo tells me that selectedRepository must be a number, I cannot call them like the name I defined.

If I put like the id that I found on the previous bamboo.yml uploaded

selectedRepository: '41058518'

When I uploaded it, for the job the repo Id changed so I cannot define the proper ID for the plan.

So I cannot call it by name, and I cannot put by a number because it changes.

Can I make the commit?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events