youngmon/atlassian-qna huggingface dataset:
I have the Visibility set to Organization so that only me and the other owner of the board can edit
Asked by Reid Miller:

But I have found that other people in my company, that are not members of the board can archive cards, etc. I need the board to be visible to the whole company, but it needs to be locked down so that only me and the other board member can edit the board. I understand that Admins will be able to edit the board which is fine, but non-admin should not. Is this possible?


Answers:
author: Brant Schroeder
body: [@Reid Miller](/t5/user/viewprofilepage/user-id/5101568) Welcome to the Atlassian community

It all depends on how you have set up your users in the workspace. <https://support.atlassian.com/trello/docs/changing-permissions-on-a-board/> How are those users setup on the board Observers or Guests?


Tags: visibility
List Rules
Asked by Robert S Levy:

Is it possible to set list rules (either with Butler or something else) to limit cards in a list?

So designers might be limited to 5 cards but testers might have 8.

If you try to add a card to a list that has reached it's limit, you get a warning and can't add the card.

Thanks


Answers:
author: Robin Warren _Blue Cat Reports_
body: I don't know of a rule to do that (someone else my come in with one though) but you could look at the List Limits power-up, it doesn't enforce the limit but it does make the list go Yellow if it exceeds the set threshold

comments: author: Robert S Levy
body: Thanks for the info. I am checking it out now.
Going from a JIRA Release flow to Bamboo deployment project
Asked by Olivier Vandevoorde:

I'm investigating the possibilites of deployment projects in Bamboo 5, and would like to know if it's a good idea to change the way we work today.

**This is how it goes today :**

We use Bamboo and JIRA to support the build and deployment proces of our applications.

In Bamboo there is a CI (continuous integration) build plan which compiles and run tests on the new source commits in subversion. Once the developer has finished he can build a release by running a Release plan. It's a parameterized plan where he can enter the version number to build and the new development version number. After the Release plan has run, artifacts (an ear and a config archive) are uploaded to the Nexus repositiory.

To deploy a release version on our test, acceptance our production environment, the developer has to create a "Release" issue in JIRA, specifying the version number and when (datetime) the new version has to deployed to one of the environments.

The JIRA Release workflow = Open -\> built -\> promote to TST -\> available in TST -\> promote to ACC -\> .... -\> available in PRD -\> Closed

Once it's in status "promote to ...", an automated deployscript picks it up, deploys the application on the server, and changes the status to "available in ...", specifying the effective deployment date(time). The deployscript only runs on a scheduled basis 3 times a day, outside office hours (morning, noon and evening).

**My question is** : should and can we replace the JIRA Release issue proces with a Bamboo deployment project?


Answers:
author: Yannis Despotopoulos
body: Deployment Projects cannot be cloned (yet), or invoked by multiple Build Plans.

So if your "deployscript" is used by multiple plans, I would not recommend the deployment project.

(please also check [https://answers.atlassian.com/questions/192930/can-i-reuse-deployment-environments-between-plans](/questions/192930/can-i-reuse-deployment-environments-between-plans) )


Tags: continuous-delivery
Bamboo logs not updating
Asked by Brent Villalobos:

We have some Bamboo jobs where the logs stop updating in Bamboo and Bamboo warns us that it may have hung. But when I log onto the remote agent and look at the processes, everything is running fine. Furthermore, the full log is visible upon job completion.

Does anyone have any ideas what could be going on here? Is there some sort of I/O buffering issue or race condition that will cause Bamboo to stop streaming log output to the web UI? Are there settings I can experiment with?

I'm on Bamboo v4.3.2. This is a sporadic problem that only bites us when people are in a really bad mood ;-)


Answers:
author: rsperafico
body: Hello,

Thanks for contacting us.

According to what you have described, it seems to be an issue related to \<bamboo-installation\>/jms-store. In previous ticket raised, we solution found was:

1. Stop Bamboo
2. Delete (move, recommended) *\<bamboo-installation\>/jms-store*
3. Start Bamboo

*Before doing any changes, I would recommend backing up the folder above described as in case you run into difficulties you will be able to restore it to its previous state.*

In order to investigate this issue further, I would recommend opening a Support request under **Bamboo Administration** \>\> **System** \>\> **Atlassian Support Tools** \>\> **Support Request**

--

Kind regards,

Rafael


author: DaveD
body: This is happening for us on 4.4.5 as well. Funny, it also happens here when others are in a bad mood...


Tags: bamboo-administration
Corrupt bamboo backup
Asked by Sivaz:

Hi, Our current bamboo scheduled backups fail when trying to export the AUTH_ATTEMPT_INFO table into loginInfos.xml.

What is this table meant for? I notice that any invalid login attempt is being logged into this table. But you could also for testing purposes enter incorrect or non ascii characters. Especially while doing security audit of application there could be various attempts to login with invalid user names, e.g. '"\\'\\");\|\]\*{\&#xd;\&lt;\&gt;.

With such a data, the backup seems to fail at *com.ctc.wstx.exc.WstxIOException: Invalid null character in text to output*

I would like to know how this table is used, and if its OK to manually delete such records from the DB directly so that my scheduled backups would work.

Thanks.


Answers:
author: VladimirMoltchanov
body: BUMP \^

Issue still exists in 5.9.9

Incorrectly formed REST request would result in bad entry to AUTH_ATTEMPT_INFO, which will fail the next backup.


author: Sivaz
body: I deleted the entries from the table, then the backup worked. But the backup process should have been able to still process the backup even with such characters.


Tags: bamboo-administration
Copy properties between plans
Asked by Yannis Despotopoulos:

Hello, is there a way to copy properties from one plan to another?

Not to clone a plan, I need from an existing plan, to copy the (all or most of) properties to another existing plan.

thanks

yannis


Answers:
author: Guillaume Dup?r?
body: Are you trying to modify properties from a PLAN based on the results of the other plan or you want something static that you would just be able to copy and paste once ?

Guillaume

comments: author: Yannis Despotopoulos
body: Thanks for the reply, my case is static.

The "problem" is that we have 20+ plans, and now we introduced another set of parameters, so I would like to skip the copy paste part if possible :)


author: roy_lyons
body: :) I know some people at my company have created a selenium based solution for reading and updating properties. If you don't get any other answers, it may be a good route...
Inject Bamboo variables Task - options (window pane)
Asked by Edouard Coissy:

After installing the mentioned plugin on Bamboo 5.1.1, I can't find the options pane inside Bamboo. Can someone please advise me (no documentation found)?


Answers:
author: Edouard Coissy
body: As the plugins name is already answering it. It is a separate Task which can be added to the plan. It would still be wise to add some documentation about that somewhere.


Tags: app

bamboo-administration
Bamboo Move Plan : Missing 'code changes' section in build summary page
Asked by mshamura:

Our release process is such that in the begining of a release cycle, the release vehicle (aka release version number) is undetermined. A temporary codename is used as the release version.  

As we get closer to Feature freeze, the official version is finalized and we need to update the build plan from it's code version to the official version.  

There is a functionality in bamboo to "move" the build plan from one version to another version. However, as part of this move, changelist info on the build summary page , since last build before rename, seems to be lost.

Is this a known issue?

We use perforce as our source code repository. It will be great if there's a way to rename build plan version without incuring missing changelists in the 1st build after the switch.

Steps to replicate the issue:  

1. Administration\>Plans\>move plans  
2. Destination Project: New Project  
Project Name: \<enter new project name\>  
Project Key: \<enter new project key\>  
3. Check the plan to move  
4. click 'move' button  
5. provide new name and key  
6. click 'done'.  
7. Run the new plan.  
8. Build summary does not list out the changelists since the last change.  

bamboo version: 4.4.5

Perforce plugin


Answers:
author: mshamura
body: Is this a reported bug?


Tags: perforce
How to run a Node.js build using Bamboo OnDemand
Asked by Mark Derbecker:

I have a Node.js build that uses grunt. I created a plan with a task that has a requirement for Node 0.10. (This requirement caused Bamboo to exclude Windows machines as agent candidates.)

Unfortunately, when the build runs, it cannot find npm. When I SSH into the elastic instance and try to run just "node", it is not found.


Answers:
author: Przemek Bruski
body: What about npm, can it find it? What if you type 'nodejs' instead of 'node'?

You can install missing packages or symlink existing binaries using instance setup script found on image configuration page.

comments: author: Mark Derbecker
body: It's not finding npm or nodejs... I'll take a look at the image configuration page


author: Mark Derbecker
body: Ok, I'm back trying to get this working. I don't see where on the Image Configuration page I can do what you are suggesting.

I've also tried to get an Ubuntu instance running, because that's what we're using for development. Unfortunately that seems to just hang when it's trying to create the Elastic Agent. (I was thinking that if I could get Ubuntu running, I could execute an install script that put node and npm on the machine.)

Any suggestions would be welcome... I think I'm trying to do the simplest possible thing with Node, so surprised it's not working.


author: Mark Derbecker
body: Looks like Node is not installed by default on Bamboo images.

I was able to add

```
apt-get updateapt-get install -y python-software-properties python g++ makeadd-apt-repository -y ppa:chris-lea/node.jsapt-get updateapt-get install -y nodejsapt-get install -y npm
```

to the 'Instance Startup Script' section of the 'Image Configuration' settings in Bamboo. That brought in the latest version of Node (0.10.xx).


author: Przemek Bruski
body: Node is in /opt/node-0.10 IIRC.

There will be a new, fixed Ubuntu image today or tomorrow. It will also carry a brand new node.


Tags: cloud
Does Clover work with PHP?
Asked by Rohan Eldridge:

Does Clover work with PHP, I was under the assumption it works for Java/Groovy only?

It's just we were told at one point that Clover also works with PHP.


Answers:
author: Marek Parfianowicz
body: No. Atlassian Clover works with Java and Groovy only.

However, there is a "Clover PHP Plugin" which works with PHPUnit and which can generate code coverage report in the Clover-compatible XML format. Such XML file can be later used to display basic coverage metrics in a build summary in Bamboo, for instance.

See:

<https://wiki.jenkins-ci.org/display/JENKINS/Clover+PHP+Plugin>

comments: author: Rohan Eldridge
body: Thank you, but doesn't this mean code coverage won't work for php as xdebug seems to be lacking on the current Elastic Bamboo images?  

<https://jira.atlassian.com/browse/BAM-12297>Or am I misintpreting things?  

We tried running phpunit tests with the 'Generate code coverage report in HTML format' option enabled and got an error about xdebug being missing.


author: Marek Parfianowicz
body: According to the [BAM-12297](https://jira.atlassian.com/browse/BAM-12297) it seems that you'd have to use your own EC2 images.


author: Rohan Eldridge
body: OK, thanks for clarifying that.


Tags: cloud

clover
Elastic image configuration - Install mysql
Asked by Nguyen Thien:

Hi all, {#toc-hId-1812559815}
=============================

I go to Bamboo admin/ Image Configuration --\> Edit (on Default Image EBS x86_64 linux) {#toc-hId-1003213189}
=============================================================================================================

--\> Instance startup script {#toc-hId--1548943772}
===================================================

<br />

And my question is:

1. How to install mysql to test, install have set password and create database default

2. Can i make script on task of bamboo "**mysql -u root -p 123456 -h localhost**" ?

Thanks

Thien Nguyen


Answers:
author: Nguyen Thien
body: I had made the "Instance startup script" for php and mysql as below:

------------------------------------

sudo yum install -y php-mcrypt

sudo yum install -y php-pdo

sudo yum install -y php-mysql

sudo yum install -y php-pecl-xdebug

sudo yum install -y php-mbstring

sudo yum install -y mysql-server

sudo /sbin/service mysqld start

/usr/bin/mysqladmin -u root password '**newpass** ' create **laravel4**

sudo /sbin/service mysqld start

sudo chkconfig mysqld on

sudo perl -pi -e 's/memory_limit = 128M/memory_limit = 256M/g' /etc/php.ini

---------------------------------------

I had change mysql password to **newpass** and created database **laravel4**

Thanks

Thien Nguyen


author: Bruna Griebeler
body: You can set a "script task" on your plan. Please take a look at <https://confluence.atlassian.com/display/AOD/Script> and check how you can do it.

comments: author: Nguyen Thien
body: yes, so how about for

1. How to install mysql to test, install have set password and create database default

When **Instance startup script,**I want install database and create database default

Ex:

yum install -y mysql-server

service mysqld start

/usr/bin/mysqladmin -u root password password create \[database_name\]

But i make that, the server can't start

<br />

<br />


Tags: instance

mysql

script

startup
JDK and Slow SVN via Bamboo builds
Asked by Gretchen:

We use a non-oracle jdk for our applications (IBM). So remote agents have a JAVA_HOME set to that jdk by default. For SVN and bamboo we were able to speed up our builds substantially by making sure that we used an oracle jdk/jre that was compatible in the svn transactions. We initially thought that it was a svnkit problem but recently when reconfiguring bamboo to use a sun jdk we discovered that svn was having issues with the version of the jdk we were running it under and switching to the sun jdk resolved our speed problems with the svn transactions. So bamboo (and presumably SVN) now run using the sun jdk while our compiles still use the IBM jdk. And the developers are happy because the CI builds are twice as fast.


Answers:
author: Gretchen
body: And since it wasn't really a question I'm marking this as answered.


Tags: bamboo-administration
JDK capabilities with spaces in name as bamboo variable
Asked by Andrei Markov:

If a plan needs to use a specific JDK in a script task, how can I specify it? What works is generic one "java17=${bamboo.capability.system.jdk.JDK}". Say we'd like to use 1.7.025. So far tried:

java17=${bamboo.capability.system.jdk.JDK 1.7.0_25}

java17=${bamboo.capability.system.jdk.JDK\\ 1.7.0_25}

java17=${"bamboo.capability.system.jdk.JDK 1.7.0_25"}

None worked :(


Answers:
author: EddieW
body: > We recommend that you do not use capability labels with space characters, if you wish to use them as variables. A possible solution for space characters is to format them with '${}' symbols, however, this does not work in all cases.

<https://confluence.atlassian.com/display/BAMBOO/Bamboo+variables#Bamboovariables-Specifyingcapabilitiesasvariables>

comments: author: Andrei Markov
body: JDKs apparently are autodiscovered and so labels are auto-created. I am hesitant to make changes to all of them (currently about 15 different JDKs in our bamboo). But I found this this works just fine:

java17="${bamboo.capability.system.jdk.JDK 1.7.0_25}"

Since this format is in line with your answer I am going to accept it.


author: JoeA
body: I think it would be really nice if the JDK dropdown was available on script tasks. Since Gradle isn't supported out of the box, the only way to run a Gradle build it by using the script task, not having a JDK dropdown available just makes choosing your own JDK much more complex than it should be.


author: David Shapiro
body: Are these variables something I can use inline in the build plan task? I tried to use java17="${bamboo.capability.system.jdk.JDK 1.7.0_25}" in the inline script, but it throws an invalid substitution error.

comments: author: Jean-Claude Passy
body: See my answer in the same thread: "  
`${bamboo.capability.system.jdk.JDK ``1.8``}`" works for me, as well as the environment variable "`$bamboo_capability_system_jdk_JDK_1_8`"


author: Jean-Claude Passy
body: Oups, apparently I have to remove the "+" from

```
${bamboo.capability.system.jdk.JDK+1.8}
```

which yields

```
${bamboo.capability.system.jdk.JDK 1.8}
```

The corresponding environment variable also works (that is printed in the logs) for the sh scripts

```
$bamboo_capability_system_jdk_JDK_1_8
```


author: Jean-Claude Passy
body: I am hitting the same issue, JDK 1.8, the capability key looks like this:

```
system.jdk.JDK+1.8
```

and I do not know how to get rid from the "+"


Tags: bamboo-administration

capability
Change artifact name in Deployment Project
Asked by Rodolfo Romero:

I want to change the name of the artifact that my Build plan generated with the release number in the the Deployment Project. How can I do this?


Answers:
author: EddieW
body: You can edit the artifact version after the fact by clicking the little pencil icon by the name. But I think the artifact name is set in the linked build plan.


Tags: bamboo-administration
What is in the bamboo backup?
Asked by Gretchen:

What exactly is in the backup? Why would a database backup (sql server for example) not be sufficient. (I'm arguing with server admin about this). I need ammo. And probably a flak vest. Maybe a helmet.

I know the backup has config data but does the config change that often? Is it updated everytime you modify a build? What specifically would change in the backup that would make it important to run the backup frequently.


Answers:
author: Przemek Bruski
body: A database backup will only be sufficient if you also back up the home directory separately. For large instances, a checkpointed, journaled database (with standard db backup procedures) together with an FS-backup is the recommended backup strategy.

It's fastest, incremental and does not involve a Bamboo outage.

comments: author: Matt Shelton
body: Can you go into this in more detail? Are there official Bamboo docs around setting up this approach?


author: Antonio B De Leon
body: @Przemyslaw Bruski would it be possible to clarify on the questions @Matt Shelton brought up please?


author: Sam Kenny
body: A database backup should be sufficient for daily backups. But you should back up Bamboo for configuration information - including the details of your database (!). The config information does not change that much - mainly when you change something through the Administration page. Plans and their details are stored in the database.


author: Jason Monsorno
body: Well artifacts for 1.


Tags: backup

bamboo-administration
Maven Test cases not getting parsed
Asked by Abhijit Patharkar:

Hello,

Im building a maven project which has multiple maven modules in it. A lot of modules generate JUNIT results.

But in my "Tests" section for the Maven Build task, i always see that there are "0" tests executed.

But when i see the maven build logs, i can see that there are a lot of tests executed.


Answers:
author: Abhijit Patharkar
body: Thanks Robert.

Yes, i did check and they are getting generated and are in the right place. Currenlty the workaround i did was to use the Surefire HTML report plugin and generate the HTML report from the test cases and havethe HTML reports be included as artifacts.


author: Robert Watkins
body: Check to see if they are being saved to the right place. If you're using a custom sub-directory, then you need to tell Bamboo where the sub-directory is.


Tags: cloud
How to run part of a Build Plan nightly
Asked by D K:

Hi,  

I'm on Atlassian Bamboo version 4.4.5 build 3507 - 27 Mar 13  

Is it possible to break up a build plan as follows:

- run mvn clean install on each commit

- run mvn clean install sonar:sonar nightly at 1am


Answers:
author: Jason Monsorno
body: Not natively, there are a few hacks to get this done though.

1. Set the second half up as a manual stage, have a process (Bamboo or not) with a 1am timed trigger to search the API or DB for last build with unrun manual stages and trigger through the API.
2. Setup your regular trigger and an additional timed trigger in Bamboo, use scripts to notice the time and run your additional setup (this can be tricky and ugly).
3. Similar to #2, have a process with a 12:58 schedule either write a Bamboo variable, environmental variable, or file/db with a "run" flag and setup #2 to look for that flag and reset it.
4. Separate your process into 2 plans with two different triggers.

All of these except #1 force it to happen every single day (or whatever trigger). #1 as described focuses on the last build which would have been triggered by whatever else and checks to see if the manual stage was run already. This is what I use for nightly automated tests so I don't run the tests if there were no changes in the day.

comments: author: D K
body: Raised issue:

<https://jira.atlassian.com/browse/BAM-13842>

I'll probably go with option #4 for now.