Setting repository.git.branch is not reflected in Bamboo's UI.

Issue #2 open
JoshuaRogers created an issue

When trying to set the branch for my git repo, the REST call shows that everything worked properly, but refreshing (or logging out and back into) Bamboo still shows the old value.

STR

Get repository.git.branch. It shows the info from Bamboo ('master' in my case).

Set repository.git.branch. It shows that it set properly ('1.7.0' in this case).

Get repository.git.branch. It shows the new value ('1.7.0').

Check the branch from the bamboo web UI. It still shows the old value. ('master')

Edit: I'm using Bamboo build 3.4.1 on Windows 7 with a PostgreSQL backend.

Comments (4)

  1. Kepio

    I believe we now need to use repositoryDefinitionManager to manage Repository definition. We may also need to add a parameter to the Rest call to specify which repository to edit ( since there can be multiple repo for a given plan).

  2. Carl Lewis repo owner

    nkammah:

    You are correct. I spent some time trying to get this to work and did not succeed. I've got it to the point where you can read the correct repository value but updating does not work.

    AFAICT it may not be possible to do this in Bamboo 3.3/3.4 as the required interfaces are not being exposed to plugins. I could be wrong about this though.

    I have a bunch of changes that I haven't checked it which at least fix the reading problem and I plan to see if I can make writing the repository values work with Bamboo 4.0. Hope to get to this on the weekend; work is kinda crazy right now.

  3. Log in to comment