youngmon/atlassian-qna huggingface dataset:
Django tests
Asked by Dmytro Savchenko:

I'm trying to run test for my django app using Bamboo. So I made script task with this code:

```
#!/usr/lib64/python2.6 pythonpython manage.py test
```

But I'm getting this error after trying to run a build:

```
Traceback (most recent call last):  File "manage.py", line 8, in &lt;module&gt;    from django.core.management import execute_from_command_lineImportError: No module named django.core.management
```

What am I doing wrong here? Thank you for your help and time.

Edit: Django is installed on my ec-2 aws.


Answers:
author: Alexey Chystoprudov
body: Hello Dmytro,

Bamboo doesn't support shebang in script task yet. See <https://jira.atlassian.com/browse/BAM-13383> and <https://jira.atlassian.com/browse/BAM-10320>. You can add your vote and change your scripts to run correct python version without shebang usage


Tags: django

test
Jenkins import Exception
Asked by Daniel Ochrimenko:

"No resource was found for hudson.model.Messages"

or

"Job configuration directory not found in /bamboo-home/uploadedFiles/5192390267391032546_export.zip"

when importing zip file from jenkins home into Bamboo?


Answers:
author: Krystian Brazulewicz
body: Please contact our [Support](https://support.atlassian.com/servicedesk/customer/bsp). Attach Bamboo version, server logs and if possible file used to import Jenkins data into Bamboo
Collaborative Salesforce Development on Cloud
Asked by Bertrand CIROT:

Hi everyone,

Is it possible to apply everything for the Atlassian Cookbook for Collaborative Salesforce Development on Atlassian Cloud Solution (BitBucket, Bamboo Cloud, JIRA Cloud) ?

My doubts are on Bamboo and the need to install Ant Migration Tool and make extra configuration.

Thanks for your help,

Bertrand


Answers:
author: Melanie Wright
body: Hi Bertrand,

Thanks for asking!

It is possible to apply everything in the cookbook to Atlassian Cloud - most features are on par with our installed versions.

For the Bamboo jobs, we include the ant-salesforce.jar, build.xml and build.properties in our repos. You can do this by putting them in your code repo in a build folder, or in a separate repo for your build scripts, up to you. Bamboo jobs can pull from multiple repositories as needed.

When you configure your Ant task, you can set the *Working sub directory* to the folder that contains your build files/jar. Be sure to set your paths in your build.xml file to reflect where your metadata is relative to your build dir.

Cheers,  
Mel


author: Bertrand CIROT
body: Hi,

It's been a long time since your answer but it helped me and I'd like to thank you for that.

Have a good day,

Bertrand

comments: author: Melanie Wright
body: Thanks for letting us know Bertrand, glad to hear it!


Tags: cloud

salesforce
Any way to hide passwords in mercurial checkout?
Asked by km:

I have mercurial repository being checked out as part of my plan using password authentication. If I view ps -ef while the plan is running and repo is being checked out, I will see username and password in the python checkout command. Is there a way to mask passwords from being shown in ps -ef? I'm using RHEL.

Edit: Note that since bamboo uses built-in SVN library, there's no password leaking into ps list when checking out SVN repositories.


Answers:
author: Daniel Wester
body: use ssh keys instead of usernames/pw
How is deployed artifacts handled by expiration logic?
Asked by Johan Ferner:

I have a number of artifacts (unit test results, system test results) in build plans and I am using deployment plans.

Will the artifacts in the build plans expire if an artifact from that specific build is deployed to any environment?

I would like Bamboo to never expire the build results that are actively deployed.


Answers:
author: Felipe Kraemer
body: Hello Johan,

According to [this document](https://confluence.atlassian.com/display/BAMBOO/Configuring+global+expiry) the artifact expiry date is calculated this way:

* If there is no release associated with the build result, then use the build result creation date.
* Otherwise, if the build result has never been deployed, then use the creation date for the latest release that refers to it.
* Otherwise, use the creation date for the latest deployment.

If the age of the build or deployment artifact is equal to or greater than the **Expire after** age, then it is deleted when the expiry event occurs (assuming artifacts are configured for deletion).

In that same document it is also mentioned that if you want to keep specific build results, regardless of expiry date, you can [add labels to your builds](https://confluence.atlassian.com/display/BAMBOO/Working+with+labels) and specify these labels in the **Keep builds with the following labels**field.

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

comments: author: Kristian Svensson
body: Hi,

I'm reading the documentation, and I still do not feel assured that that following is true:

"If a release is deployed and deployment expiration is set to keep latest 2 deployed builds, is the build that the release is created from protected from being removed?"

Can you please confirm Yes or No to this question.

Regards,  
Kristian


author: Tarun Sachdeva
body: Hi Felipe. Are keep forever labelled builds counted in the minimum builds to keep count?

Example: My keep forever builds are 15 at present and my minimum builds to keep value is configured 20. So, can I have only 5 (20-15) builds besides keep forever builds or can I have 20 minimum additional builds?


Tags: bamboo-administration
How to manage/monitor multiple projects in Bamboo
Asked by currylm:

Hello,

An end-user of ours was looking to manage/monitor multiple related projects in a portfolio within Bamboo. We are aware you can [manage(ALL or one) project](https://confluence.atlassian.com/display/BAMBOO/Managing+deployment+projects). However, they are looking to manage a set of related projects. So for instance, portfolio A has projects AP1 and AP2 and AP3. They want to see the status of each, build time for each, etc. but on one dashboard within Bamboo.

Is this possible to do? Do we need to build our own using the REST api?

TIA,

Scott

P.S. our search here provided [this results](https://answers.atlassian.com/questions/5817/how-to-use-for-managing-developments-which-span-multiple-projects) and [this results](https://answers.atlassian.com/questions/220273/how-to-manage-a-release-with-multiple-projects-within-a-big-parent-project) but those do not apply to this situation.


Answers:
author: Felipe Kraemer
body: Hi Scott,

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-15715>

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).

In the meantime, you can try to develop your own [Web Panel Module](https://developer.atlassian.com/display/BAMBOODEV/Web+Panel+Module) plugin.

Another suggestion is to use [labels](https://confluence.atlassian.com/display/BAMBOO/Working+with+labels). Labelling a plan allows you to filter the plans displayed on the Dashboard or Wallboard. You may want to do this if you have set up a large number of plans in your Bamboo instance and want to highlight specific plans for attention.

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


Tags: advanced-roadmaps
Page can not be displayed up on accessing localhost:8085
Asked by Naveen:

Page can not be displayed up on accessing localhost:8085

How can i make sure that my bamboo start up procedure was correct?


Answers:
author: Krystian Brazulewicz
body: You can also contact our [Support](https://support.atlassian.com/servicedesk/customer/bsp) - do not forget to attach logs from your Bamboo instance.


author: rsperafico
body: Hello Naveen,

Thank you for your question.

First of all, please make sure you have followed the documentation:

* [Installing Bamboo on Linux](https://confluence.atlassian.com/display/BAMBOO/Installing+Bamboo+on+Linux)
* [Installing Bamboo on Windows](https://confluence.atlassian.com/display/BAMBOO/Installing+Bamboo+on+Windows)
* [Installing Bamboo on Mac OS X](https://confluence.atlassian.com/display/BAMBOO/Installing+Bamboo+on+Mac+OS+X)

Please, make sure you have what is required to run Bamboo:

* [Supported platforms](https://confluence.atlassian.com/display/BAMBOO/Supported+platforms)

> How can i make sure that my bamboo start up procedure was correct?

You could go through Bamboo logs and check if there are any ERRO or FATAL messages being thrown while Bamboo is running:

* *\<bamboo-install\>/logs/catalina.out*
* *\<bamboo-home\>/logs/atlassian-bamboo.log*

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support
Script task in Bamboo
Asked by Karthikeyan Kulasekaran:

We are setting up Bamboo in our company, We foresee a risk in Script task. This task gives a privileged to delete what ever folder in the server . How to over come this

Example : We have installed Bamboo in Linux server under /usr/local/bamboo . With Script task defined in a plan can delete this folder


Answers:
author: Krystian Brazulewicz
body: Bamboo is an application that runs stuff that users want it to run. Malicious commands can be run in a multiple ways because almost every build tool allows you to run some shell commands (maven, ant, grails). If you really don't trust your users then as Mike and Daniel proposed:

* use only remote agents
* run remote agents on non-privileged accounts

This way you'll limit your potential damage to the single agent.


author: Daniel Wester
body: Set up the agent to run as a non-privileged user. It's the nature of build servers. Doesn't matter if it's script. You have the same issue with ant, maven or any other build scripts.

You can lock down the permissions where the application installation is done and only allow the bamboo_home dir opened up for the user to write to. If you really want to protect yourself - don't use local agents. Then run the remote agents as non privileged users. That way if somebody does a rm -rf it would only be able to hurt that one agent.


author: Mike Friedrich
body: I believe that applies to agents only.

And even there I don't really see a problem. The person who writes the task anyway often needs admin access on agents.

But I aggree, there should be some optional protection.

comments: author: Mike Friedrich
body: Btw, the permissions depend on the account the agent or server runs under.


Tags: bamboo-administration
Hi, how do I configure a continuous integration setup using bamboo,stash and jira
Asked by Aakash Basnet:

Our company recently implemented and installed JIRA,Bamboo and Stash.Now our company has decided to do a practice of continuous integration using these tools along with Git.I have been given the responsible to do this task but I am little bit confused to get started with I mean where is the starting point?.I have a knowledge of JIRA, Bamboo and Stash administration. It would be a great help for me if you provide me the kind of general steps to complete the continuous Integration process.

Thank you very much in advance and your answer will be highly appreciated.


Answers:
author: Daniel Wester
body: That's a very general request that depends on what you're trying to accomplish. Continuous Integration process can be as simple running a tar command or as complex as running maven/grunt, spinning up servers etc.

Start off with making sure Stash/JIRA, Stash/Bamboo, Bamboo/JIRA are all integrated:

<https://confluence.atlassian.com/display/STASH/JIRA+integration><https://confluence.atlassian.com/display/STASH/Bamboo+integration><https://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+Atlassian+applications>

Once that's been done. Get your source into Stash. Set up a build in Bamboo [](https://confluence.atlassian.com/display/STASH/JIRA+integration)that links to Stash (that way things will "connect". <https://confluence.atlassian.com/display/BAMBOO/Creating+a+plan> Basically recreate the steps that you would do command line in Bamboo.

Once you've done all of that - if you commit and push to Stash and have the JIRA Key in the commit message, Bamboo should automatically trigger and you should get an artifact at the end and the build should show up in JIRA.

comments: author: Aakash Basnet
body: I did all those steps as you mentioned above it looks good so far. but now I am getting confused on how to create a build plan for the git flow branching model. I have a project with git flow branching model

SO what is the best way to configure a build plan for this branching model?

Thank you in advance


Tags: bitbucket-server

jira
Are non-admins able to view Agent capabilities?
Asked by Mark Hirota:

One of the gripes I hear from users of Bamboo that are adding and configuring build Plans and the Jobs within them is that they cannot view the capabilities on the Agents.

Is there some way for non-admins to view this (read-only)?


Answers:
author: Benito Picarelli
body: Hi Mark,

No, only agents and admin can do it. I believe it works the same as JIRA - in which if a User is not a System Admin, it can't even see the Global Permission "JIRA System Administrator".


author: Daniel Wester
body: I don't think so... They can though see how many agents have the requirement combination that they've selected.
java jdk 1.8
Asked by Chad Adams:

In trying to setup a build plan I noticed only 1.7 was currently available ... we already have some requirements on 1.8. Will it become available soon?


Answers:
author: Daniel Wester
body: You can install java 1.8 for the remote agents as a JDK version for them to use.


author: Krystian Brazulewicz
body: We expect Bamboo Cloud to ship with images that will provide JDK 1.8 before the end of March


Tags: cloud

maven
No agents meet this job's requirements.
Asked by Chad Adams:

First time user following guide <https://confluence.atlassian.com/display/BAMBOO/Getting+started+with+Java+and+Bamboo>

First I make it to step 3, but I did not see a dialog/option for setting up the trigger, but assume I can just do manual for now.

I add maven 3.2 builder task, slightly modify the target to "clean install", enable the plan and create it.

It queues but never runs ...

I look though my running instances (aws account is used for other things), no "bamboo" created instances.

What am I missing in this first time plan tutorial/setup?


Answers:
author: Marcin Gardias
body: 1) In Administration -\>Elastic Bamboo -\> Configuration, what are your settings under "Automatic elastic instance management". You can set conditions under which Bamboo automatically starts instances there.

2) You can always go to Administration -\> Elastic Bamboo -\> Instances and manually start/stop elastic instances.


Tags: cloud
Checking for workspace id availability
Asked by Peter Bys?e:

I have a workspace:

bitbucket.org/my_workspace

and want to change to my_workspace2

How do I know if my new workspace id (my_workspace2) is available before i hit the change button (A red button that will change my 236 repositories urls)? And how do I know that its not already taken?

There's no info when i type in my new workspace id on whether or not the id is available


Answers:
author: Patrik S
body: Hello [@Peter Bys?e](/t5/user/viewprofilepage/user-id/2808164) ,

Thank you for reaching out to Atlassian Community.

In case the workspace name you are trying to change to is already taken, the change will not be completed and your workspace will be left intact.

So you can follow the steps below :

1. Click on the red **Change**button,
2. A new prompt will be shown asking if you are sure about the change, and you can click on the red button **Change workspace ID**
3. If the workspace id is already taken, you will be returned to the first screen with the error message "This workspace ID is not available." and your workspace ID will keep the same. In case the workspace ID is available, after clicking on **Change workspace ID**the change will take effect.

Hope that helps to clarify your questions. Let me know in case you have any doubt.

Thank you, [@Peter Bys?e](/t5/user/viewprofilepage/user-id/2808164) .

Kind regards,

Patrik S

comments: author: Peter Bys?e
body: Yes indeed a second prompt, nice. My new workspace ID is available. thanks for the answer. Would be nice with some kind of confirmation on the first page that there will be a second prompt to do the final confirm.

Thanks!


Tags: bitbucket-cloud

cloud
Self-hosted pipeline No such image bitbucket-pipelines-dvcs-tools:prod-stable
Asked by Charcoa1:

I've just updated my local self-hosted pipeline, after running into some issues with Docker pull rate limits.  
The pull rate limits seem to have been solved, but now the new self-hosted pipeline is throwing this error when I try to build a project:

```
Status 404: {"message":"No such image: docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-dvcs-tools:prod-stable"}
```


Answers:
author: Patrik S
body: Hello [@Charcoa1](/t5/user/viewprofilepage/user-id/4928143) ,

Welcome to Atlassian Community!

I went ahead and tried to reproduce this error on my side, but the image was pulled successfully. In this case, would you please try pulling the image directly from the terminal using the following docker command in the same environment where you run the self-hosted runner?

```
docker pull docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-dvcs-tools:prod-stable
```

Also, could you please make sure you are using the latest runner's image available? You can update the runner's image in your environment by executing the below command :

```
docker pull docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner:1
```

Once you have the images updated please restart the runner container, try running the build again and let us know how it goes.

Hope that helps! Let me know in case you run into any issues.

Thank you, [@Charcoa1](/t5/user/viewprofilepage/user-id/4928143) .

Kind regards,

Patrik S

comments: author: Charcoa1
body: Hi Patrik!  

I'm guessing for some reason the image wasn't available for about the hour I was trying to get it.  
I tried running another pipeline about 8 hours ago and it worked. This was with the same runner container version that didn't work before.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

server
Disable email notifications for all my users
Asked by Ariel Ben Abu:

Hi everyone,

We recently created a bot that can read code from bitbucket and add some comments on pull requests. The number of comments can sometimes be overwhelming and it is something that we can live with, but we get hundreds of emails for all of those comments and sometimes even throttle issues notifications from Gmail.

So we decided we're ok without email notifications for comments on pull requests but I couldn't find any way to disable it for the entire department. Only the users can change their own notification settings which is less than practical for us.

Is there any existing solution to disable email notifications for an entire group?


Answers:
author: Patrik S
body: Hello [@Ariel Ben Abu](/t5/user/viewprofilepage/user-id/4849962) ,

Thank you for reaching out to Atlassian Community.

I'm afraid it's currently not possible to manage the notifications for all the users in a given workspace because the notifications settings are considered personal settings configured at the user account level.

That said, I went ahead and created a feature request to implement this functionality, which you can find in the link below :

* <https://jira.atlassian.com/browse/BCLOUD-21907>

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with this policy in mind: <https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html>

While this feature is not implemented, each user who does not want to receive the notification from Pull Requests would indeed have to go to **Personal settings \> Notifications** and change their preferences for notifications.

Hope that helps to clarify your questions.

In case you have any other questions related to this topic, please let me know.

Thank you [@Ariel Ben Abu](/t5/user/viewprofilepage/user-id/4849962) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
Bitbucket down?
Asked by Faye:

Hey, all my repo's seem to be down. Is there an issue with BitBucket?

Would tell atlassian, but there's literally no way to contact them about it.

![Icon1.png](https://community.atlassian.com/t5/image/serverpage/image-id/197427i7E503B4A2A7A1774/image-size/large?v=v2&px=999 "Icon1.png")


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Faye](/t5/user/viewprofilepage/user-id/4927664) ,

based on the Atlassian Status (<https://bitbucket.status.atlassian.com/>) all seems ok. Please raise an issue to Atlassian support <https://support.atlassian.com/contact/>

Hope this helps,

Fabio

comments: author: Faye
body: That is a terrible answer lmao

It seems to be fixed again, and raising an issue does not work, I have an open source license, and that seems to fall under the "Free" category. See image.

![Icon1.png](https://community.atlassian.com/t5/image/serverpage/image-id/197448iBBF4110D5C0112F2/image-size/large?v=v2&px=999 "Icon1.png")


Tags: bitbucket-cloud

cloud
cache is downloading for each step in pipeline
Asked by Joel Stephen:

I am using my docker image for the build, For each step, the cache is downloading and that takes much time. How to resolve the issue?


Answers:
author: Raul Gomis
body: [@Joel Stephen](/t5/user/viewprofilepage/user-id/4911432) , would you mind sharing more information (and maybe a public repository) in which you can reproduce the slowness downloading artifacts? Our team will have a look. Thanks!

comments: author: Joel Stephen
body: [@Raul Gomis](/t5/user/viewprofilepage/user-id/1161754) Cache is working properly my mistake thanks for the answer.


Tags: bitbucket-cloud

cloud
How to migrate one bitbucket cluster data to another Bitbucket cluster
Asked by ajain1:

Hi Team,  

We need to do bitbuket migration from one cluster to other cluster including users,groups, projects and repositories.  

<br />

How do we handle the data migration from one box to a cluster hosted on Kubernetes  
Will we have any data loss scenarios, also we need to know if we can take a backup for the same before we do the initial migration

It would be great if you help on this ASAP

Regards,  
Aayushi


Answers:
author: Yevhen
body: I'd say you need to backup your shared home and the database. Once done, restore it to a new database and a new shared home in your Kube cluster.


author: Piotr Biegun _Gitprotect_io_
body: Hi Aayushi, if you are looking for Bitbucket backup you could check [https://marketplace.atlassian.com/apps/1225728/gitprotect-io-backup-for-bitbucket?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1225728/gitprotect-io-backup-for-bitbucket?hosting=cloud&tab=overview).   

<br />


Tags: bitbucket-cloud

cloud