youngmon/atlassian-qna huggingface dataset:
Set of tools for Continuous integration and code review
Asked by Pietros:

Hi,

We have been using JIRA (+Agile), Git and Gitlab (for code reviews) and Jenkins (continuous integration). Considering going to cloud and fancying Atlassian products, I am preparing a plan but I am a bit confused as there are too many products - Stash, Crucible, FishEye, Bamboo, BitBucket...

Could you suggest me a combination that could replace the tools I mentioned above? E.g. is Crucible comparable to Gitlab? Is Bamboo a suitable replacement for Jenkins etc..BitBucket for Git?

For the Bamboo, how many agents do I need? I am not a build engineer so possibly I cannot estimate this well..


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: I would start with JIRA (+Agile), Stash and Bamboo. Stash is the enterprise git repository and it provide pull request based code reviews. Bamboo can do CI and has the deployment piece.

If you find Stash reviews limited, you can take a look at Crucible but since you are coming from GitLab, I would imagine Stash would suffice.

Replace Stash with Bitbucket if you are looking to do all this in Cloud!

comments: author: Pietros
body: Thanks, but why would BitBucket not be good for cloud? From what I read, it is a cloud solution as well...?


author: Jobin Kuruvilla [Adaptavist]
body: I meant to use Stash if you are looking for a solution behind the firewall and Bitbucket if the solution is on Cloud. So, Bitbucket is good for Cloud ;)


Tags: fisheye-crucible

jira
Bamboo build plan enable maven profile @ night
Asked by D K:

I have Bamboo 5.7.2 build 5716 plan that runs a Maven 3.x task \`clean deploy\`

Nightly I'd like to be able to trigger a Maven profile \`clean deploy -Pmyprofile\`. However I'd only like to do this nightly say 12am.

All other builds should run \`clean deploy\`

<br />

<br />


Answers:
author: Bob Swift (personal)
body: [Bamboo Command Line Interface (CLI)](https://bobswift.atlassian.net/wiki/display/BCLI/Bamboo+Command+Line+Interface) has a [queueBuild](https://bobswift.atlassian.net/wiki/display/BCLI/Reference#Reference-queueBuild) action that lets you set variables for the build. Make the **-Pmyprofile** a bamboo variable normally that defaults to blank. Use the Bamboo task from [Run CLI Actions in Bamboo](https://bobswift.atlassian.net/wiki/display/BCLIP) to schedule the queuing of the build at 12am.

comments: author: D K
body: Is is possible to run this within the same Plan as my exists build that runs every commit?Task 1 will have my normal build that runs on every commit and Task 2 will run my queueBuild to only runs @ 12am?Or would your approach require a separate Bamboo Plan?


author: Bob Swift (personal)
body: Separate build that just runs the queueBuild with the special parameter setting.


author: D K
body: But I was hoping for Cron based Scheduling at the Bamboo Task level i.e My build will trigger on every commit. But 1 Maven Task in that build should be skipped and only scheduled to run to @ 12amOr alternatively, Cron based Scheduling at the Bamboo Stage level i.e. Stage 1 is triggered to run on every commit while Stage 2 is triggered to run based on cron.I guess this is not possible?
Bamboo global vs plan permissions
Asked by Nicklas Kittelmann:

The description of the Global permissions isn't really clear, so how do I know which global permission that's needed for instance to be able to manually run all plans?

Or am I thinking about it the wrong way? Should I just grant plan level permission for that, and add the bamboo-users group to all plans (in bulk) and give the Build access there? But what about plans created later on - is there any way to set default plan access rights so that new plans get that same right?


Answers:
author: Jaime S
body: Hi, Nicklas.

The user who's going to trigger the plan must have the 'Build' permission and that's configured in the plan. If you want all users to be able to trigger manual builds, you can bulk edit the permissions adding the bamboo-user group or any other you create.

As for the global permissions, if the customer has access along with the 'Build' permission on the plan, they should be able to run it, provided that the instance has all the capabilities necessary to run it, which you can check in the Agent Matrix.

Kind regards,  
Jaime Kirch da Silveira  
Atlassian Cloud Support


Tags: cloud
Use a npm global package
Asked by tuizi:

Hi,

I have a npm task with the command:

```
install -g forever grunt-cli
```

Then a script task:

```
forever start server.js
grunt test
```

But this is not working I get an error:

**forever not found**

**grunt not found**

How can I use npm global package in my bamboo plan?


Answers:
author: tuizi
body: Ok thank you.

Following your advise I created a **NodeJS** task to run forever as a local package

```
node_modules/forever/bin/forever
```

with parameter

```
start server.js
```


author: Daniel Wester
body: Unless you're running bamboo as root (please don't - that's just a security incident waiting to happen) or with sudo (again please don't). - don't do npm install -g . If you're running express - take a look at <https://github.com/blai/grunt-express>


Tags: cloud

npm
bamboo agent won't start
Asked by David_Mills:


Answers:
author: David_Mills
body: Can't remember what the issue was - but I resolved it some time ago.


author: rrudnicki
body: Hi David,

Can you let us know what error message are you getting? Also, something has changed into your environment that can have affected bamboo? I mean, some upgrade, migration server, etc?

On these links below, you can check some factors that can affect bamboo agents to start. Also check if do you have the correct permissions and free disk space.

<https://confluence.atlassian.com/display/BAMKB/All+Bamboo+Remote+agents+cannot+connect+after+an+upgrade>

[https://confluence.atlassian.com/display/BAMKB/Bamboo+3.3+Remote+Agent+doesn't+start+due+to+incompatible+plugin](https://confluence.atlassian.com/display/BAMKB/Bamboo+3.3+Remote+Agent+doesn)

<https://confluence.atlassian.com/display/BAMKB/Remote+agent+does+not+restart+after+server+outage>

Regards,   
Renato Rudnicki


Tags: bamboo-administration
Bamboo installation stucks at database connection.
Asked by Alexander Gogu:

Hi! I am trying to install 5.8.1 on centos 7 + mysql 5.6, but installation fails at database connection. I use java 1.8 (Java(TM) SE Runtime Environment (build 1.8.0_45-b14)) and last version of mysql connector. Also I can install it with HSQL database but not with mysql.

Could you help me?

Thank you.


Answers:
author: rrudnicki
body: Hi Alexander,

Can you check if there's some firewall blocking the communication between bamboo and your database? Please try to do a telnet on the IP Address of your database by the Bamboo server and see if this works. If so, you might facing some issue related to credentials.

Also, check if there's selinux enabled on Linux. You can check this with the command

cat /etc/selinux/config

If this is enforced, please change for disable and restart the Linux for testing purposes.

Regards,

Renato Rudnicki


author: Alexey Chystoprudov
body: Please provide logs from bamboo_home/logs
Making Artifactory Upload plugin available in Deployment projects
Asked by Andrew Bilukha:

How can Artifactory Upload plugin made available for Deployment projects? Naturally, we do not want to upload the untested NUGET and Maven packages after each build. We want to create a deployment plan in Bamboo that would upload the Maven or Nuget packages to Artifactory.

BUT, for some reason, the Artifactory plugins are available only in Build plans, and not in Deployment plans.


Answers:
author: Alexey Chystoprudov
body: Hello Andrew,

this request has already been filed in the JFrog issue tracker, please watch/vote/comment on [Artifactory Plug-in isn't listed when I click "Add task" within a Deployment Project (BAP-247)](https://www.jfrog.com/jira/browse/BAP-247) to raise awareness for this limitation.


Tags: addon-org.jfrog.bamboo.bamboo-artifactory-plugin

bamboo-administration
Build-specific variables no longer available?
Asked by Dan Mazur:

We are leveraging [Build Specific Variables](https://confluence.atlassian.com/display/BAMBOO/Bamboo+variables#Bamboovariables-Build-specificvariables) in a script task in our build plan. As per the documentation:
> Bamboo variables are exported as bash shell variables. All full stops (periods) are converted to underscores. For example, the variable [bamboo.my](http://bamboo.my).variable is $bamboo_my_variable in bash. This is related to File Script tasks (not Inline Script tasks).

However, sometime over the course of the weekend on May 9th the variables are no longer available to our script task. Specifically, last the successful build was May 8th, and all builds after May 11th fail. We've attempted to use both inline (preferred) and file-based approaches. In either case the variables are not being populated. Here's a sample of the script:

```
echo "bamboo dependency parent total $bamboo_dependency_parent_total $dependency_parent_total"echo "bamboo dependency parent total $BAMBOO_DEPENDENCY_PARENT_TOTAL $DEPENDENCY_PARENT_TOTAL"parentPlanIndex=`expr $bamboo_dependency_parent_total - 1`echo "parent plan index: $parentPlanIndex"parent_plan_dynamic_var="bamboo_dependency_parent_$parentPlanIndex"parentPlanKey="${!parent_plan_dynamic_var}"echo "parent plan key: $parentPlanKey"
```

Which produces the following log output:

```
build 21-May-2015 03:08:19 bamboo dependency parent total build 21-May-2015 03:08:19 bamboo dependency parent total error 21-May-2015 03:08:20 expr: syntax errorbuild 21-May-2015 03:08:20 parent plan index: build 21-May-2015 03:08:20 parent plan key: build 21-May-2015 03:08:20 Couldn't determine parent plan that triggerd remote deploy
```

Whereas back when the variables were being substituted correctly the log output was like so:

```
build 08-May-2015 14:26:32 parent plan index: 1build 08-May-2015 14:26:32 parent plan key: ECMDEV-ECMBAT-500build 08-May-2015 14:26:32 calling ciDeploy for batch
```

(Note that the first two echo statements in the script block above were added after the build failures started in an effort to debug various variable referencing schemes)

Can someone help me understand why the variables are no longer available to my script task?


Answers:
author: Alexey Chystoprudov
body: Hello Dan,

Please create request at support.atlassian.com to allow our support to help you


author: Dan Mazur
body: Thanks Alexey! I've just done so: <https://support.atlassian.com/servicedesk/customer/portal/23/JST-140828>


Tags: cloud
Multiple unwanted agents
Asked by Simon Cronin:

Hello,

I'm having trouble with agents registering in Bamboo, I only want one agent to register but im getting what seems an endless amount. What i've done so far:  

A build server has been created.  

I've installed Java JRE and then run

C:\\Installs\>java -jar -Dbamboo.home=C:\\bamboo-agent-home atlassian-bamboo-agent-installer-2.5.jar http://\<bamboo-server\>:8085/agentServer/  

When looking in Bamboo, the new server registers and appears, but then multiple agents start registering after this.  

E.g.  

Registering BuildServer  
Registering BuildServer (2)  
Registering BuildServer (3)   

This goes on until it uses up all the agents allowed on our licence:

20-May-2015 11:54:09 Registration attempt rejected with a message: Cannot register additional remote agent. You have reached the limit for the number of remote agents you can have. Please upgrade your license.

Does anybody know why so many agents are registering and how I can limit this to just one? Any help would be much appreciated.  

Thanks


Answers:
author: Krystian Brazulewicz
body: Also are you really using Bamboo 2.5?


author: Alexey Chystoprudov
body: Hello Simon,

If issue still occurs please create request at support.atlasian.com as it looks like some bug
SCP latest files only
Asked by Robert Rosebury:

Using the SCP task built into Bamboo, is it possible to only copy the latest files and folders over to the remote server?


Answers:
author: David S.
body: Rafael is correct. Bamboo doesn't support this out of the box. To make things worse, the SCP function is much slower than using SCP from a modern distro.

I ended up using a Script task that looks like this:

```
echo "-----BEGIN RSA PRIVATE KEY----- Your key here -----END RSA PRIVATE KEY-----" | sed -e "s/- /-\n/" | sed -e "s/= /=\n/" | sed -e "2s/ /\n/g" &gt; $HOME/tmpkeychmod 0600 $HOME/tmpkeySERVER=websrv1rsync -avze "ssh -i $HOME/tmpkey" ${bamboo.build.working.directory}/ updateuser@$SERVER:/home/direct/prod/direct/rm -f $HOME/tmpkey
```

HTH!


author: rsperafico
body: Hello Robert,

Thank you for your question.

Bamboo does not provide the option to select only the files and directories last modified/updated. This is something you will be required to provide to Bamboo.

You could, by using a Script task, track files and directories and copy them across to the remote server.

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support


Tags: bamboo-administration
Bamboo not detecting branches when the option "Automatically manage branches" is checked
Asked by mophieE:

Hey guys,

Our bamboo server decided to not show any of the branches next to my build plan now...

I have check the option of "Create plan branches for branches detected in the repository".

Enabled the DEBUG logging on com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl (in Administration/Log Settings)

Looking at the log, i see

" \[BranchDetectionServiceImpl\] VCS branch VCS Branch \[...\] is known to Bamboo. No action will be taken. "

and yet still no branches icon next to my build plan...

Thanks in advance,

p.s. It was working fine before!!


Answers:
author: Sergey Podobry _Stellarity Software_
body: See <https://answers.atlassian.com/questions/12256493>


author: Alexey Chystoprudov
body: Hello,

Please create request at support.atlassian.com to get in touch with our support team


Tags: bamboo-administration
Issues with builds showing on build dashboard.
Asked by John Gisler:

Having a odd issue with bamboo. When running a build plan \& telling it to detect builds, I can see in the log that they are known to bamboo but when checking the build dashboard the builds icon next to the plan name doesn't show as it should/did in the past.

I can see in the log with debug enabled - VCS branch VCS Branch \[1.0.24\] is known to Bamboo. No action will be taken.

So it appears that bamboo can see that branch but the icon with branch listings doesn't show as it does on others.

Tried re-indexing, no change.


Answers:
author: Alexey Chystoprudov
body: Please create request at support.atlassian.com to let our support help you with this issue


Tags: bamboo-administration
bamboo plan to trigger on perforce shelved code
Asked by GN:

Hi there,

Is there a way to have Bamboo trigger on perforce shelved code?

Thanks,

GN


Answers:
author: Felipe Kraemer
body: Hello @GN,

At this time, the functionality you're requesting is not yet possible in Bamboo. I have created a new request for it in our development issue tracker, and you can track it here:

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

Feel free to [vote](https://confluence.atlassian.com/display/JIRA/Watching+and+Voting+on+an+Issue) for the issue and/or leave a comment to describe your use-case in more detail. It will help our development team to build a solution that meets your needs.

If you want to know more about how we prioritise feature requests, take a look at our [policy](https://confluence.atlassian.com/display/DEV/Implementation+of+New+Features+Policy).

If this answer was helpful, please allow me to ask you to vote it up and to mark it as the correct one. This will allow other users on finding the correct answer to your question much faster.

Kind regards,  
Felipe Kraemer


author: GN
body: Hi there,

We are evaluating Bamboo for our org, any quick help with this question will be well appreciated!

Thanks,

GN
How to configure bamboo plan to trigger on the default repo only
Asked by Doug Wikle:

I am setting up a Bamboo build plan which has two repositories. One is for the source, the 2nd repo holds some build scripts that are common across many build plans. I want to have the plan build automatically when the source repo is committed to. If I set the plan to use the 'Stash Repository Triggered' option, the plan is building when either repo is committed to. I don't want the plan to build if the script repo changes.

Is there a way to set up the plan so that it only triggers of off a single repo? It appears that if I use the Polling trigger I could select only one repo to poll, but I'd like to still use the Stash hooks.


Answers:
author: rsperafico
body: Hello Doug,

Thank you for your question.

You could use "*Exclude changesets* " where you can enter a [regular expression](http://download.oracle.com/javase/1.4.2/docs/api/java/util/regex/Pattern.html) to match the commit messages for changesets that should not start a build.

Please, refer to [Linking to source code repositories - Stash](https://confluence.atlassian.com/display/BAMBOO/Stash) documentation for further information.

Alternatively, you could create two plans and make one dependent from another.

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support

comments: author: Doug Wikle
body: I set the "Exclude changesets" on the repo to .\* to ignore everything. That seemed to do the trick. It would be nice to be able to control which repos trigger the plan, similar to how repos can be selected for polling.


author: Christopher Fitzner
body: Hi Doug, is this still working for you? I have Exclude changesets set to .\* and its still building on the other repo I have listed. Also, what version of bamboo are you on?


Tags: bitbucket-server
quicker branch detection
Asked by Ben Taljaard:

We are using build plan branching quite extensively in our environment. Is there a way to have the branch detector run any quicker or only for a specific plan? I have tried some of the suggestions in the forum to run the http://bamboo:8085/chain/admin/detectBranches.action?planKey=\[plankey\] url, but that does not seem to speed things up at all (it still takes around 3-5 min). We are currently using 5.6.1.

The idea is that we can create a new branch and almost immediately be able to build.

Would appreciate any suggestions.


Answers:
author: Alexey Chystoprudov
body: Right now Bamboo fetches remote repository for branches every 300 seconds, it's configurable at Administration \> General configuration.

If you use Stash you can configure AppLink connection between Stash and Bamboo. When new branch is created at Stash it will notify Bamboo to create new Plan branch immediately without extensive polling from Bamboo side.

comments: author: Ben Taljaard
body: Can you do an applink connection to bitbucket as well?


author: Alexey Chystoprudov
body: It's on our roadmap


author: Ben Taljaard
body: Thanks for your help Alexey
Download the .git folder when downloading repository
Asked by Jake Wasdin:

Using Bamboo to download a git repository, using the 'Source Code Checkout' task, does not seem to be downloading the .git folder. This is necessary for some tasks we want to run on the build server, such as reading in the last commit message.

Is there a way to make this task include the .git folder as well, besides doing a manual clone in the process? Cloning manually would introduce other problems with authentication and make the process less clean.


Answers:
author: Marcin Gardias
body: Err, ".git" directory *is* created when you use Source Code Checkout task. There's no other way to do git pull...


Tags: cloud
Use git commit messages to control whether a bamboo project starts building
Asked by Jake Wasdin:

We are thinking of using a keyword in a git commit to specify that a commit should not trigger the bamboo build server. For example, we could make a commit saying NO-START that would not start the build server.

I know that you can see the last commit message using the command \`git log -p -1\` if you're in a directory with a git repository, which could be done from a task, but ideally we want to check before it ever gets to the build server.

Is there any way to do this with Bamboo in the cloud?


Answers:
author: Alexey Chystoprudov
body: Hello Jake,

You can configure plan dependency. Plan A will be triggered by repository modification and search for necessary string in git log. There will be Plan B without triggers which will be added as child plan for Plan A.

When Plan A is successful, it triggers Plan B

More details in documentation <https://confluence.atlassian.com/display/BAMBOOCLOUD/Setting+up+plan+build+dependencies>

comments: author: Krystian Brazulewicz
body: Unfortunately you'd need to create such plan for every repository you're using.


author: JoshMcCullough
body: Hi Jake. You mentioned "and search for necessary string in git log". This implies that I can add a repository-polling trigger, but only run the plan if there's a certain word/phrase in a recent Git commit message. I don't see this option in Bamboo, can you elaborate?  

(Asked the same question here: <https://community.atlassian.com/t5/Bamboo-questions/Trigger-build-if-Git-commit-message-contains-a-certain-word/qaq-p/458809#M14513>)


Tags: cloud
from where can I get test collation API Jar in bamboo for test collection and reporting?
Asked by sneha:


Answers:
author: Felipe Kraemer
body: Hi Sneha,

As far as I understand from the document [Test Collection and Reporting](https://developer.atlassian.com/display/BAMBOODEV/Test+Collection+and+Reporting) elaborated by our development team, there is no JAR available for that, you need to develop a plugin for that instead.

If this answer was helpful, please allow me to ask you to mark my answer as accepted in order to have it in the top of the thread, also helping other customers.

Thanks in advance!

Kind regards,  
Felipe Kraemer
Does bamboo display plan dependencies as a chart/graph?
Asked by Chandresh Prakash:

Can bamboo display the dependencies defined between different plans as a chart/graph?


Answers:
author: Alexey Chystoprudov
body: No, but it's good idea for plugin


author: Alexey Chystoprudov
body: Hello Chandresh Prakash,

You can try this plugin from Marketplace - <https://marketplace.atlassian.com/plugins/com.atlassianlabs.bamboo.plugins.dependency.graph/server/overview>


Tags: dependency

plan
View branch commit history
Asked by rpieszak:

Is there a way in Stash to view the full commit history, including file paths, since the branch was created? And make sure it's ONLY commits that were done to that branch, either directly or via merge? Or is this something that's more in the Bamboo tool bag? Thanks.


Answers:
author: LifeOfAFlippedTable
body: Hi RJP,

Can you try to perform this and see if its the command that you're looking for?

```
git log --walk-reflogs &lt;mybranch&gt;
```

Replace \<mybranch\> with the branch that you were interested with.

Cheers,

Andrew Er


Tags: bitbucket-server