youngmon/atlassian-qna huggingface dataset:
how to configure artifacts path in ant through bamboo
Asked by Ishan Thapa:

generation of war file in bamboo


Answers:
author: rsperafico
body: Hello Ishan,

Thank you for your question.

When running your **Ant build** in Bamboo all the directories and files specified in your "**build.xml** " file and created base on it will be located relative to the **Build Working Directory** . Please, open up build log and search for the second entry which says: "***simple 21-Aug-2015 17:36:21 Build working directory is ...***"

bamboo.buildLog.png

Once you have generated your "war" file through your build, it is time to generate the Artifact. Please, refer to the following for further information on how to work with artifacts:

* <https://answers.atlassian.com/questions/13413955>
* [Configuring a job's build artifacts](https://confluence.atlassian.com/display/BAMBOO/Configuring+a+job)

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

[](https://community.atlassian.com/t5/Bamboo-questions/how-to-configure-artifacts-path-in-ant-through-bamboo/qaq-p/209059?attachment-id=11948){#link_117204ab78d574}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/6668/1/bamboo.buildLog.png){#display_117204ab78d574_0}
Prevent duplicated records being added using Unito
Asked by Tracy Brigham:

Hi, I am using Unito to sync data to cards and firstly create the card. I want to prevent duplicated cards being added by matching a customer field value (Stock No.).

Is this possible? So, when the data comes in, I need a rule that checks the card and archives it if there is already a card with that no.?


Answers:
author: Dreamsuite Mike
body: Hi Tracy, I thought Unito had duplicate detection rules but it has been many years since I used it.

I have built a duplicate detection in Trello involving putting the unique number in the card name. It is a little convoluted and clunky by it does work

Rule 1,

When custom field "Stock Number" is set, rename the card to {customfieldvalue}: {cardname}

Rule 2,

When a card name starts with {\*}:{\*}, find a card starting with {wildcard1}:{\*}, link the cards together and add the orange "Duplicate" label to the card  

Rule 3,  
When the orange "Duplicate" label is added to a card, find the first card linked in attachments archive the card and unlink

comments: author: Tracy Brigham
body: Thank you so much I got this to work and it's doing exactly what I need it to do so thank you.


author: Tracy Brigham
body: Hi Dream suite Mike,

Can you assist me with where to add on a rule to the above trial to remove the label from the original card (Obviously once the duplicate card has been archived and link deleted)?

I thought it would need to occur prior to breaking the link but it didn't so I put it after the breaking link step and still doesn't do it. I understand Rule 3 needs the label to find the card, but I want the label to drop off once it's done the job it was intended for.


author: Tracy Brigham
body: Hi Dream Suite Mike

Can you help me with a bug in the above rules, I have tested this, but it doesn't trigger when the card is added from Zapier Zap. it conducts the 1st rule but not the 2nd when it looks to match the card title which are identical from rule 1? Does the rule need to be different for Zapier Zap?


author: Dreamsuite Mike
body: Try changing rule 1 to:

"When a card with custom field "Stock Number" set is added to the board, rename the card to {customfieldvalue}: {cardname}"


author: Dreamsuite Mike
body: *Hi Dream suite Mike,*

*Can you assist me with where to add on a rule to the above trial to remove the label from the original card (Obviously once the duplicate card has been archived and link deleted)?*

*I thought it would need to occur prior to breaking the link but it didn't so I put it after the breaking link step and still doesn't do it. I understand Rule 3 needs the label to find the card, but I want the label to drop off once it's done the job it was intended for.*

For this, you should be able to modify rule 3:

"When the orange "Duplicate" label is added to a card, remove the orange "Duplicate" label from the card, find the first card linked in attachments archive the card and unlink"
how do I use sbt with bamboo on demand?
Asked by abucknell:

I have an Scala Build Tool (SBT) project I would like to build using a continuous delivery (CD) platform. I'd prefer to use bamboo on demand as I track stories etc with Jira, but as far as I can see I'd have to use a java/maven Amazon Machine Image (AMI) image. My worry here is the build would have to download every dependency with every build. Can this be done or am I better of using Jenkins?


Answers:
author: abucknell
body: Thanks Nic.


author: Nic Brough -Adaptavist-
body: Might want to explain your TLAs, instead of just AEK your NWKs. (Hint - SBT's usual meaning is "Sad but true")


Tags: cloud
bamboo automatic branch merge with stash
Asked by Takashi Matsuzawa:

I want to try "automatic branch merge" feature of bamboo, but when I tried, I can see following error.

\>Merging is disabled for this plan branch as the default repository 'xxxx' is of type 'Stash', which does not support automatic merging.

So, stash is not supported for this feature? (Although stash itself might have auto merge feature of its own)??

Just curious, then which type of source repositories can be used with bamboo's automatic branch merge feature?


Answers:
author: rsperafico
body: Hello Takashi,

Thank you for your question.

It seems Bamboo is using JGit as capability instead of Git. Please, go to "*Bamboo administration \>\> Build resources \>\> Server capabilities*" and make sure you have added Git as a Capability as per following:

image2015-8-21 19:36:0.png

If no capability is provided, Bamboo will use its built-in Git (*JGit* ) implementation. Note that the **built-in Git** implementation **does not support** symbolic links, submodules, automatic branch detection or **automatic merging**. Please, refer to [Defining a new version control capability](https://confluence.atlassian.com/display/BAMBOO/Defining+a+new+version+control+capability) documentation for further information.

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  
[](https://community.atlassian.com/t5/Bamboo-questions/bamboo-automatic-branch-merge-with-stash/qaq-p/259344?attachment-id=865){#link_116848c894a360}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/8226/1/image2015-8-21%2019%3A36%3A0.png){#display_116848c894a360_0}

comments: author: Takashi Matsuzawa
body: Thank you for your suggestion.Yes, I noticed before that built-in git support did not support submodules, but at that time I did not go further (just registered submodules as separate repositories in bamboo plan setting.)Before I go to our IT and ask for the change, I want to know if there is demerits using native git instead of built-in git. I understand that on bamboo server and agents we have to install native git command, but other than that any issues we have to be prepared? I just do not want to break current behavior/workflow by making this change.


author: rsperafico
body: Hello Takashi, please, do ahead and add Git as capability in Bamboo.


Tags: bitbucket-server
In continuous integration how can Bamboo Trigger Ant for Build..?
Asked by Ishan Thapa:

integration of ant and bamboo


Answers:
author: rahuldanwade
body: Hi @Ishan Thapa

Please refer below link to configure a Bamboo task to use Ant for build

<https://confluence.atlassian.com/bamboo/using-bamboo/jobs-and-tasks/configuring-tasks/configuring-a-builder-task/ant>

Specify ANT_HOME(points to Ant installation directory) environment variable in bamboo correctly, so that bamboo can add the Ant builder automatically on start-up.
How to automatically add label for deployed PROD build
Asked by paul strachan:

Hi,

I've read the documentation for "Configuring automatic labelling of job build results" but I still do not understand how to get Bamboo to automatically add a label named "deployed" to a build# which was deployed/released to production.

Is it possible to configure a deployment task which will label the release build# for a production environment config

currently we need to manually add the label after each deployment

Thanks for any suggestions

Cheers

Paul


Answers:
author: Alexey Chystoprudov
body: Bamboo doesn't have this functionality. You can create own plugin to have this functionality.

Plugin should implement EventListener for com.atlassian.bamboo.deployments.execution.events.DeploymentFinishedEvent and then add required label to build result


Tags: bamboo-administration
Automatic deletion of workareas for deleted plan branches
Asked by masariello:

In Bamboo 5.7.2 do plan branch workareas get deleted automatically when the plan branch is deleted? If not, is the feature implemented in or planned for any other version?

Thank you


Answers:
author: Alexey Chystoprudov
body: <https://jira.atlassian.com/browse/BAM-13589>


Tags: bamboo-administration
Not do checkout for second stage
Asked by Rick Waugh:

I have set up a build of a node.js application on AWS. We create a dev environment, run tests against that. Then in the second stage, we build the production environment, if there was no failure in the first stage.

This takes a while, and I have come to realize that after the check out for the dev build, there is quite a bit of time for someone to save code before the production build starts, thus allowing untested code to get pushed to production. I thought that maybe I would not have to do a checkout for the second stage, that the checkout would still be there, but it failed on the first task, it couldn't find one of my scripts.

So I can make the second stage part of the first stage, that's easy enough - it's just going to have a lot of steps in it. But is there a way to not check the code out fresh? We are doing this on the cloud, and there is no way to specify revision number that I can see.


Answers:
author: shari_anderson
body: It would be best to tag the code upon successful build in the first step, then in the 2nd build (for production) would build from the tag or from the prior checkout. No need to checkout again if it succeeds.


author: Daniel Wester
body: In the first stage, make sure to compress the source code into a zip or tar file. Then set up a shared artifact see <https://confluence.atlassian.com/display/BAMBOO/Bamboo+Best+Practice+-+Sharing+artifacts> for more details on it.

Now you shouldn't have to worry about code slipping in as long as you have Bamboo doing the checkout (and not using git yourself). Bamboo will save the the revisions/sha's it's using and then reuse it for any downstream jobs.

comments: author: Rick Waugh
body: Thanks, Daniel. I was wondering about whether it would save the revision. If I have multiple stages though, will it use the same revision in the second stage that it used in the first. I note that you said "jobs" and I don't know whether that means jobs in the next stage.


Tags: cloud
Cannot add a Stash Repository in Bamboo without SSH
Asked by Sander Verschuren:

Hi,

I have the application link between Stash and Bamboo working, but when I try to add a Stash Repository I always get the following error:

Stash server has disabled connections over SSH. You need to enable them in Stash configuration.

We used to have SSH enabled on our Stash server, but we disabled it because of performance issues. So now we are trying to setup the connection between Bamboo and Stash over https (both behind reverse proxies). Is it a prerequisite that Stash has SSH enabled to allow adding a Stash Repository in Bamboo? I don't see it mentioned in the documentation: <https://confluence.atlassian.com/bamboo/using-bamboo/integrating-bamboo-with-atlassian-applications/integrating-bamboo-with-stash#IntegratingBamboowithStash-Configuration>

Or maybe this is a caching issue as we were using SSH before? I've tried removing and adding the application link, but to no success.

Thanks,  
Sander


Answers:
author: Steffen Opel _Utoolity_
body: Unfortunately Bamboo does not yet support HTTP(S) authentication with Stash repositories - you can vote/watch/comment on the resp. issue to raise awareness for this scenario:

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

comments: author: Sander Verschuren
body: Thanks. I still think this should be more explicit on the documentation page. Now it seems that you only have to add the Application Link to be able to add a Stash repository. But in fact you need to add the Application Link AND enable SSH on Stash.


author: Steffen Opel _Utoolity_
body: @Sander Verschuren - agreed: I have referenced your suggestion on BAM-15464, hopefully Atlassian will add a resp. note to the documentation to spare other users the trouble until HTTP(S) authentication is available.


author: ThiagoBomfim
body: Hello @Steffen Opel \[Utoolity\] and @Sander Verschuren . I raised <https://jira.atlassian.com/browse/STASH-7778> and our tech writer should look into this issue soon.Thanks for raising and discussing this.Best,Thiago Atlassian DevTools Support


author: Steffen Opel _Utoolity_
body: @Thiago Bomfim - thanks much for the update and handling this so thoroughly, much appreciated.


author: ThiagoBomfim
body: Not a problem Steffen!


Tags: bamboo-administration
How to display filtered build plan branch build results/numbers
Asked by paul strachan:

Hi,

Using Bamboo 5.9.2 with Subversion there is an option to create a branch label. The created label is independent of other branches or trunk.

I have enabled the Filter on build plans and Bamboo is listing the correct build plans, however it is showing all of the trunk build numbers/results, rather than the branch build numbers/results for which the tag is applied.

Is it possible to filter a list of build plans, and have it display the BRANCH build results for which the label was created for?

I would also like to see the wallboard of the labeled plans and the labeled BRANCH results, rather than seeing only the TRUNK results.

Look forward to your response

Paul


Answers:
author: Marcin Oles
body: Hello,

I'm pretty sure that the **Wallboard** will actually gather both main plans and branches if you label them and choose *"Wallboard" -\> "Filtered plans"* while filtering by labels. The branch might not be present on the wallboard if it hasn't been run yet (no build results).

You won't be able to see the filtered plan branches on the **Dashboard** (Bamboo landing page). If that's what you're looking for, it currently can't be done. There is a plugin that can help you with working with branches, but it doesn't have an option to filter by labels. See [Branch View Plugin for Bamboo](https://marketplace.atlassian.com/plugins/com.atlassian.bamboo.plugins.branchinator).

Cheers,  
Marcin
Create a linked repository using rest
Asked by Jan Swaelens:

Hello,

Is it possible to create a linked repository using REST calls? If so could you point me in the right direction.

cheers  
jan


Answers:
author: Bob Swift (personal)
body: No, but [Bamboo Command Line Interface (CLI)](https://bobswift.atlassian.net/wiki/display/BCLI/Bamboo+Command+Line+Interface) has support for this using the [addRepository](https://bobswift.atlassian.net/wiki/display/BCLI/Reference#Reference-addRepository) action. [Examples for AddRepository Action](https://bobswift.atlassian.net/wiki/display/BCLI/Examples+for+AddRepository+Action) has more details. Another reference is [Plan Creation Scripting](https://bobswift.atlassian.net/wiki/display/BCLI/Plan+Creation+Scripting).

comments: author: Jan Swaelens
body: Aha, I'll give that a try thanks!


Tags: bamboo-administration
is it possible to integrate Chef with Bamboo if yes than how to do please help..?
Asked by Ishan Thapa:

Integration of Chef with Bamboo.


Answers:
author: Thiago Zandona
body: Hi Ishan,

Take a look at this add-on, might be useful (not officially supported by Atlassian):

<https://marketplace.atlassian.com/plugins/net.bytesource.bamboo.cheftesttask>

Hope this helps

Cheers
Skip previously successful tasks when (Re)running failed deployment/release
Asked by paul strachan:

Hi,

Using Bamboo 5.9.2 with Subversion. Our deployment process runs a set of predefined tasks, some of these tasks cannot be rerun and any of the tasks could fail.

If task #5 fails, currently we need to edit the deployment plan and manually disable tasks 1-4 before rerunning and then remember to re-enable the tasks once deployment completes successfully.

Is it possible to configure Bamboo deployment process to automatically 'skip' tasks that were previously completed successfully when re-running a deployment/release (i.e. start with the first failed task)

I could imagine each task would contain an option to preserve its state, and when deploying an option would be to ignore already completed tasks (if task is configured for that)

Cheers,

Paul


Answers:
author: Marcin Oles
body: Hi,

the scenario you've described can't be currently achieved using deployment projects in Bamboo.

However, what can work for you as a workaround (note: not a recommended way to run deployments) is to move deployment phase to the build plan as additional, manually triggered stages. There are drawbacks of doing so, but it will allow you to perform action "rerun only failed jobs", which will rerun only from the stage that has failed.

So you can have multiple stages. As an example:

* stage 1 (automatic): build plan stage 1
* stage 2 (automatic): build plan stage 2 if needed
* ...
* stage N (automatic): build plan stage N if needed
* **stage N+1 (manual)** : deployment tasks #1-#4, **not rerunable**
* **stage N+2 (automatic)** : deployment task #5, **rerunable**
* ...

Of course this attempt might require some modifications and in your case might not be possible. Just a suggestion.
Where are my build job settings on disk, eg my command lines to execute?
Asked by AnneTheAgile:

If I want to backup or put under version control all the job settings, eg build command line, test command line, etc., where do I find them on disk?


Answers:
author: Daniel Wester
body: They're in the database. There's a plugin <https://marketplace.atlassian.com/plugins/com.carolynvs.trade_depot> that says it will export and import them. I've never used it though.


Tags: bamboo-administration
does Bamboo support Fujitsu Cobol builds
Asked by Bruce Strickland:

We are currently preparing migration to Bamboo/Stash/GIT/SourceTree from ClearCase and CruiseControl. We have a lot of legacy code including Fujitsu Cobol, Visual Basic 6. Does Bamboo support builds for Fujitsu Cobol "out of the box"?


Answers:
author: lassian
body: Hi Bruce,

If you are using the Fujitsu Cobol compiler for .NET then you can use the MSBuild task when setting up your bamboo plan, pointing it at your solution file containing your COBOL projects. You can also use this task for your other .NET projects aswell. :smile:

<https://confluence.atlassian.com/display/BAMBOO/MSBuild>

If you are using the COBOL compiler standalone than you will have to write a script based task with the necessary commands for your build.

<https://confluence.atlassian.com/display/BAMBOO/Script>


Tags: bamboo-administration
Upgrade bamboo with existing database from 5.5.0 to 5.9.3 bug
Asked by Michal ?ilhav?:

Hello, I need help with upgrade my bamboo server. I have a Bamboo 5.5.0 with MySQL 5.5.44 Database.  
During my upgrade after basic commands and basic setup I was in bamboo web admin and I put information about my database and bamboo cannot use data from my dastabase and bamboo needs to overwrite existing data but I don't need that. I need use latest version of Bamboo with my database.   

Everything is OK: Oracle Java 8, Mysql 5.5.44, JDBC 5.1 connector.

And If I use another clear database everything is ok but I need my old existing data's.

Thanks


Answers:
author: Marcin Oles
body: Hello,

it looks to me like you're setting up Bamboo as a new instance with new (probably embedded) database, and then try to switch the database while Bamboo is running.

The upgrade process looks a little bit different. Please refer to this page for details on how to upgrade:

<https://confluence.atlassian.com/display/BAMBOO/Bamboo+upgrade+guide>

Also, if you encounter any issues while upgrading according to these instructions, you can always open a support ticket under <https://support.atlassian.com/>.

Cheers,  
Marcin


author: Michal ?ilhav?
body: Thank you very much, but I install bamboo with external database and I use my existing bamboo home. and now, when I look at that, I made a mistake with bamboo-home :/ .  

Thank you very much.


Tags: bamboo-administration
Can bamboo install on AIX?
Asked by Wu.Allen:

Hi Guys,

Can bamboo install on IBM Aix system?

Best Regards.


Answers:
author: Thiago Zandona
body: Hi Wu,

Officially AIX and IBM JDK are unsupported systems. You can try to install it on your system using Open JDK and post your experience for us. Have you tried to install it? Any error you see?

Cheers and good luck


Tags: bamboo-administration
How to configurate bamboo job build log?
Asked by Wu.Allen:

Hi Guys,

* I have a requirement about build log of bamboo job ,we need change the build log generate path instead of "bamboohome/xmldate/builds/jobname/download-data/build_logs" into a customer path. How to do that ?
* Also we need change the build logs name "jobname-build number.log" into "jobname-build date.log" How to do that ?


Answers:
author: Mike Friedrich
body: I do not think this possible. You may need to write a plugin, but I don't know if there is even an API for that. Maybe you can copy the file at t the job end, there is a post build plugin which may help.

But why do you actually need that?

comments: author: Wu.Allen
body: Hi Mike,Thank you for kindly reply, I have tried cp the log file by the end task of the job, seems that the file is still be written during cp command execute so you can only get part of the log. I have search the market seems that there is no kind of plugin can do that.


Tags: bamboo-administration
Do we need to Install Ant in our Machine for Ant configuration with Bamboo
Asked by Ishan Thapa:

Integration of Bamboo with Ant


Answers:
author: Thiago Zandona
body: Hi Ishan,

If you need to know more about the integration, check pages below:

<https://confluence.atlassian.com/display/BAMBOO/Ant>

<https://confluence.atlassian.com/display/BAMBOO/Getting+started+with+Java+and+Bamboo>

<http://ant.apache.org/manual/index.html>

Hope this helps. If not, please clarify your questions and let us know.

Cheers
how to do Ant Configuration in Bamboo
Asked by Ishan Thapa:

What is Executable..?

What is Executable Label..?

what is Environment variables..?


Answers:
author: Adalberto Schneider
body: Hi Ishan,

This documentation may help you.

<https://confluence.atlassian.com/display/BAMBOO/Ant>

Cheers,

Adalberto