youngmon/atlassian-qna huggingface dataset:
Tough scenario to deploy
Asked by luis.dias:

Hello,

I am trying to uses bamboo in order to solve a deployment problem that we are havin.

The scenario is this:

We have a git repository with the code, a staging environment and a 3 servers load balanced production environment.

When we need to deploy, presently these are the steps:

* SSH login to the staging environment
* From the staging environment we need to connect via SSH to each of the production servers (these are only accessible from the client's network)
* In each of the production servers we perform a git pull.

This method is a pain and we were hoping to find an alternative using Bamboo.

Has anyone ever dealt with a scenario of this kind and have any suggestion?

Thank you in advance,

Luis


Answers:
author: Rich Duncan
body: 1. Create a Bamboo project that creates your releases by eventually pushing them to the git repo
2. Create an associated deployment project
3. The tasks of the production environment would:
   1. Create a file (or files) with the proper commands to run on the production servers
   2. Add a SCP task to copy the files to the staging enviornment
   3. Add an SSH task that uses SSH (or SCP/SSH) to execute the command files created in a.
Why is Sonar for Bamboo executing sonar-runner.bat instead of sonar-scanner.bat?
Asked by SrivathsanJ:

How to change it to run scanner and not runner.

Thanks


Answers:
author: Rich Duncan
body: If you're running the Sonar Bamboo by Milbex - <https://marketplace.atlassian.com/plugins/ch.mibex.bamboo.sonar4bamboo/server/overview>, there is a checkbox to tell it to run the 'newer' scanner not the runner.

-Rich


Tags: cloud
After Bamboo upgrade to 5.14.3.1, existing build plans cannot be run.
Asked by Michael Chidzik:

I upgraded a bamboo server from version 5.4.2 to 5.14.3.1 and now I cannot run existing build plans. Whenever I attempt to run one I get the following error:

"Error encountered while triggering manual build: Could not generate next build number for 'XXX-XX' Plan 'XXX-XX' did not start"

In the log there is a java.lang.RuntimeException: Could not generate next build number for 'XXX-XX'

...

Caused by: java.lang.IllegalStateException: No build numbers record for plan XXX-XX

Also, there is no entries in the BUILD_NUMBERS table.

Is there a work around that I can utilize to populate the BUILD_NUMBERS table?


Answers:
author: rsperafico
body: Hello Michael,

Please, raise a support request so we can help you.

---

Kind regards,

Rafael P. Sperafico  
Atlassian


Tags: bamboo-administration
Is there a way to test a patch build on Bamboo before actually pushing it?
Asked by Montes Claros:

Our code is built for many platforms and sometimes we break the build of another platform when we push it. We can see Bamboo report and then we fix the problem. Sometimes the fix will break another platform. This pollutes our repository with many fix patches. Building all platforms in our local machine is also not practical, it takes too long. Is there a way to send a patch for Bamboo to build it before actually pushing it?


Answers:
author: Przemek Bruski
body: The easiest way is to do your changes on a branch. Merge to master only if everything is green. To avoid multiple patches in the repo, flatten/squash the merge instead of merging individual changesets - some tools such is Bitbucket server offer that out of the box.

comments: author: Przemek Bruski
body: Oh, and obviously your VCS should let you remove that branch and prune the unlinked changesets.


author: Montes Claros
body: I don't think we can have one branch/developer but thx for your help. I think we may need some kind of patch build server.


Tags: bamboo-administration
Am I missing something?
Asked by Mark Wolff:

I was trying to force my Bamboo server to use SVN 1.7 and was struggling to find the files mentioned in this article. But then I noticed the "Repository Settings" under the admin panel to do this. (Bamboo 12.3). Can we get this article updated to help people with newer Bamboo versions?


Answers:
author: Mark Wolff
body: Yes, thank you.


author: rsperafico
body: Hello Mark,

Are you referring to this article? <https://confluence.atlassian.com/display/BAMKB/Setting+Bamboo+to+support+Subversion+1.7+Workspace+Format>

Please, have a look at:

image2017-1-25 21:58:7.png

---

Kind regards,

Rafael  
[](https://community.atlassian.com/t5/Bamboo-questions/Am-I-missing-something/qaq-p/348979?attachment-id=11483){#link_1166498cc4efc2}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/11067/1/image2017-1-25%2021%3A58%3A7.png){#display_1166498cc4efc2_0}


Tags: bamboo-administration
Elastic agent and licensing issue
Asked by Leonid Fot:

Hello everyone,

i came across an issue when an elastic agent is not connecting to a fresh new single remote agent licensed Bamboo server with following reason:

```
Caused by: com.atlassian.bamboo.license.BambooLicenseException:Cannot register additional remote agent. You have reached the limitfor the number of remote agents you can have. Please upgrade your license.
```

It looks to be similar to [BAM-3509](https://jira.atlassian.com/browse/BAM-3509) with only difference - it is the fresh installation of the Bamboo server and it is the first start of the agent in this environment. 10 min delay between first and second registration attempt didn't help.

Server/Agent version is 5.14.4.1

Does anyone have an idea how to fix/workaround this issue?

Best regards,

Leo


Answers:
author: Leonid Fot
body: Problem solved, i was using the "normal" agent distribution in custom AMI instead of special "elastic" one, that works trough the tunnel and license for which is reserved on the EC2 instance startup.

Here is the link to the elastic remote agent distribution:

<https://maven.atlassian.com/content/repositories/atlassian-public/com/atlassian/bamboo/atlassian-bamboo-elastic-image/>


author: Alexey Chystoprudov
body: Please contact support team at support.atlassian.com


Tags: bamboo-administration
Does Anyone Find This Article Helpful?
Asked by Jared White:

Has anyone used the information on this page to successfully link Bamboo and JIRA?


Answers:
author: Jared White
body: <https://confluence.atlassian.com/bamboo/integrating-bamboo-with-jira-applications-289276945.html>

Article 289276945. It's a tag in my question.


author: Sam Hall
body: Which page do you mean?


Tags: bamboo-administration
how to launch remote agent in bamboo without executing remote agent installer jar on agent.. Is there any other way to do this?
Asked by yogita dolas:

how to launch remote agent in bamboo without executing remote agent installer jar on agent.. Is there any other way to do this?


Answers:
author: rsperafico
body: Hello Yogita Dolas,

First, you must install the remote agent by running the command:

```
java -Dbamboo.home=/path/to/bamboo-remote-agent -jar atlassian-bamboo-agent-installer-X.X-SNAPSHOT.jar BAMBOO_SABE_URL/agentServer/
```

![information](/html/@4DF2F60CA30FBCA0CD7B960B5D0F871B/images/emoticons/information.png "information") Reference: <https://confluence.atlassian.com/display/BAMBOO/Bamboo+remote+agent+installation+guide>

After the agent is installed, you can start the agent by running:

```
cd /path/to/bamboo-remote-agent./bin/bamboo-agent.sh start
```

<br />

---

Kind regards,

Rafael  
Atlassian
How can I avoid clear text passwords when using curl?
Asked by Evan Stevens:

I want to avoid using a clear text password in my deployment project.

I have several interactions with the application server via curl. I created a service account on the app server and need to provide the password via http basic authentication.

So my script task in the bamboo deployment project calls curl -u and includes a variable containing the service account user:pass.

However, the service account password is visible to anyone who has access to the variables configuration screen on the environment. I want to make sure someone with root access to the bamboo server, admin access in bamboo, and full access to the code cannot retrieve this service account password.

Do I have any options to prevent any access to the service account password?


Answers:
author: Przemek Bruski
body: I want to make sure someone with root access to the bamboo server, admin access in bamboo, and full access to the code cannot retrieve this service account password.  
These are pretty strong requirements. With these, you obviously cannot store the password on the bamboo server, so they must reside on the agent.  
What you should do is you should use curl with a .netrc file that will store the password. The important step is to make the file unreadable to the bamboo agent user. So, assuming your bamboo agent user is, say bamboo_agent, create a new user called e.g. appdeployment.  
Secure your .netrc file like this:

```
sudo chown appdeployment?/SECURE_LOCATION/.netrc
```

sudo chmod 600 /SECURE_LOCATION/.netrc  
Make sure the bamboo agent cannot read that netrc file.  
Then either make sure your agent can run curl as appdeployment user (via sudo) or (which may be easier, but more fragile) create a suid (not suid root!) binary of curl and use it instead of curl:

```
cp /usr/bin/curl?/SECURE_LOCATION/suidcurl
```

```
sudo chown?appdeployment /SECURE_LOCATION/suidcurl
```

```
sudo chmod u+s?/SECURE_LOCATION/suidcurl
```

Oh, and either dedicate that agent to that deployment or add an agent capability password_to_my_app and require that capability in your deployment.

comments: author: Evan Stevens
body: Thanks for your help!


author: Alexey Chystoprudov
body: Hello @Evan Stevens,

As Rich mentioned if your variable has 'password' in the name it will be obfuscated in UI and build/deployment logs.

But there's workaround that user can create script task with

```
echo $password_var &gt; text.txt
```

and publish artifact with this file, then you should define that variable at deployment environment level and restrict access to that environment. It will not save you from administrator user.

Unfortunately it will not save against user with direct access to DB. In Bamboo 5.15 we added functionality to encrypt secret variables in DB to prevent unauthorized access to variables, repository credentials and shared credentials.

We are going to release Bamboo 5.15 within few weeks


author: Rich Duncan
body: You can use global, or environment variables. If they have 'PASSWORD' in the name, they will be obfuscated when they appear in the log.

-Rich
how do i keep the remote agents online
Asked by Hector Magnanao:

i have 2 remote agents that keep going offline. how do i keep it online


Answers:
author: Rich Duncan
body: Which OS are they running on? The agents default startup script will detect that they fail and restart them. If they are continually failing and restarting, check the agent log.

-Rich


author: Nic Brough -Adaptavist-
body: Read the log file to find out why they are stopping, and fix that.
Windows Remote bamboo agent terminates
Asked by Marek Leitl:

Hi all,

I have deployed new (and my first) Bamboo remote agent and currently I am trying to integrate it with existing Bamboo server in the company. The agent is started as a Windows service.

According to the log file the agent startup seems fine to me. But every time after approx. 5 minutes there is some exception related to JMS, the JVM is terminated and the agent must start once again.

The exception chain contains message "Error creating bean with name 'agentRegistrationBean'" and message "Could not access JMS invoker queue <queue://com.atlassian.bamboo.registrationQueue>\]"

There is the log containing complete 5 minutes from agent service startup until it fails:

Does anyone know what is going wrong there?

Thanks, Marek

Update: I am using Bamboo v5.9.7 (the same version as our existing Bamboo server)  
bamboo_long.log  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/7674/1/bamboo_long.log){#display_11664a11e82d64_0}


Answers:
author: Marek Leitl
body: Already found the solution. Bamboo Broker (JMS) communication was restricted on firewall. We just needed to open the port


author: Mike Friedrich
body: If you read the log carefully you will notice a reason given for the error:

```
java.net.ConnectException: Connection refused: connect
```

You can google, what it means.

My guess its you are either hit by bamboo reconnect bug. I believe there are still a couple of open tickets in the Bamboo jira. I solved this by adding implementing a restart delay of 5 minutes (in windows service settings for the agent). You need this for all agents, any agent can lock up / DOS the server, making it unresponsive.

Another reason could be an issue with your network or firewall.  
You may want to look at the server logs too.


Tags: bamboo-administration
How to change the Build Summary Duration to hours instead of minutes?
Asked by Pradeep S:

It is very difficult to read the long minutes in Bamboo (from Build Summary Duration). Is there any way to change it to hours than minutes.


Answers:
author: Alexey Chystoprudov
body: It's hardcoded and not configurable

comments: author: Pradeep S
body: Thanks for the reply. Do you or your team has any plan to change it since it is very difficult to read these. Example: 280 minutes or some more long minutes. It will be very simple to read for an example: 30 minutes/1 hr:15 minutes/2 hr: 20 minutes


author: Alexey Chystoprudov
body: We appreciate your attention to it. Unfortunately we don't have plans to address this status. You can create Improvement request at jira.atlassian.com and check if community is interested in this change. It's also possible to address this issue with custom plugin and little JS magic
Why don't setting users avatar in bamboo and crowd ?
Asked by carocy:

I had set same user avatar in JIRA confluence crucible?But can not be set in bamboo and crowd?  
[](http://fanyi.baidu.com/?aldtype=16047###)  
There is no option to change the user's Avatar

20170119162211.jpg20170119162348.jpg  
[](https://community.atlassian.com/t5/Bamboo-questions/Why-don-t-setting-users-avatar-in-bamboo-and-crowd/qaq-p/260219?attachment-id=4925){#link_11664a35b181fe}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/8258/1/20170119162211.jpg){#display_11664a35b181fe_0}  
[](https://community.atlassian.com/t5/Bamboo-questions/Why-don-t-setting-users-avatar-in-bamboo-and-crowd/qaq-p/260219?attachment-id=4926){#link_11664a35b181fe_0}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/8258/2/20170119162348.jpg){#display_11664a35b181fe_2}


Answers:
author: Alexey Chystoprudov
body: Bamboo supports avatars only from Gravatar. You can configure Confluence to be Gravatar server and use it in Bamboo

<https://marketplace.atlassian.com/plugins/net.vicox.confluence.plugins.gravatar/server/overview>

<https://confluence.atlassian.com/bamboo/configuring-gravatar-support-289277244.html>

comments: author: Stefan B?cherl
body: Bamboo still supports avatars only from Gravatar?


Tags: avatar

bamboo-administration

crowd
Automation Send Email "To" Error
Asked by Stacey Fontenot:

I am trying to add an email in the "To" portion of the Automation Send Emails. The email is captured in the Request as Personal Email Address. In the body of an Send Email, I can reference the custom field as {{issue.personal email}} and works great. But when adding this to the "To" field, I always get an error and the custom field is deleted.


Answers:
author: Luiz Ricardo Pereira da Silva
body: Hello [@Stacey Fontenot](/t5/user/viewprofilepage/user-id/5419392)  
If possible, include an image of the automation structure so we can analyze it better.  
Try changing the Smart Value to the field ID:  

**from** {{issue.personal email}} **to** {{issue.customfield_xxxxx}}  

The field ID is made up of at least 5 numbers and can be easily seen by accessing the field's global configuration in the URL itself.


Tags: cloud

jira-service-management

jira-service-management-cloud
please delete my acount
Asked by bryan_raynes:

Hello This account was made in error. please delete thank you


Answers:
author: Luiz Ricardo Pereira da Silva
body: Hello [@bryan_raynes](/t5/user/viewprofilepage/user-id/5419394)  
Your Atlassian account was probably created because your user has access to a cloud tool such as Jira, Confluence, among others.  
This process happens because every account linked to a tool is created globally as a member of Atlassian, allowing you to access the manufacturer's websites and official communities, for example.  
Deleting your account means losing access to the tool your user has access to.  
To have your account deleted, ask your corporation's Atlassian administrator to remove your access, if this access is inappropriate, or open a ticket with [Atlassian support](https://support.atlassian.com).

comments: author: Nic Brough -Adaptavist-
body: If the account is a personal account, and you know you do not need it to access any Atlassian systems (to add to Luiz's list, people don't realise Trello and this Community here are also accessed by your Atlassian account), then you can delete it yourself.

Log into <https://id.atlassian.com/manage-profile/account-preferences> with the account (the login process will not land you there, but once in, just paste in the URL again), and you'll see a delete button.


Tags: cloud

jira-service-management

jira-service-management-cloud
Jira Automation - Raise subtask after x months based on type
Asked by Mike Duncan:

Hello, I have a Jira automation question. I have a request type called 'Supplier Review,' and I want to set up automation to create a new sub-task 11 months after the approval and Resolved of the original manually created task/issue. The sub-task itself is meant to perform another 'Supplier Review

Any pointers would be great.


Answers:
author: Mikael Sandberg
body: Hi [@Mike Duncan](/t5/user/viewprofilepage/user-id/5419353),

Welcome to Atlassian Community!

I have a similar automation that sends our a reminder 90 days before renewal needs to be done. The way I am doing it is that when the original request gets approved a due date is set on it based on the contract length. The reminder automation is running on a schedule and compare the due date to now and the diff is 90 days a comment is added to the request and the renewal form is attached as well. Once the form is submitted a new request is created that is linked to the original one and the whole approval process starts again.

comments: author: Mike Duncan
body: Can you share how you setup and the logic?


author: Mikael Sandberg
body: This is what the automation looks like for the reminder:

![Screenshot 2024-01-31 at 10.16.59?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/303778i87CD551F09D35C49/image-dimensions/333x544?v=v2 "Screenshot 2024-01-31 at 10.16.59?AM.png")

The due date is set as part of a post function when the request is moved to approved status.


Tags: cloud

jira-service-management

jira-service-management-cloud
Creating custom resolution
Asked by Peter Grainger:

Hi,

So I've created 2 new projects in Jira Service Management. In order to get a better picture of the resolutions of the tickets, I have created new resolutions under Issues\>Issue Attributes\>Resolutions. I understand that I have to now edit the workflows to either include or exclude the resolutions I've created. I have yet to create the workflows for the request types as yet.

So say for example I have 4 different products and they all have different custom resolutions I want to use. I want to use the incident issue type for all of the tickets for these projects.

My questions is:  
Do I have to create multiple Incident issue types and rename them, Incident 1, Incident 2, Incident 3 for example, and then create a workflow for each and assign the custom issue types to them?

Or is there another method or process you can suggest that might get me the same result?

Any help or advice would be greatly appreciated!

Thanks

Peter


Answers:
author: Robert Wen_ReleaseTEAM_
body: Hello Peter:

Resolutions are independent of the workflow. They can get set when moving an Issue to Done manually through a Transition Screen, or automatically through a workflow post-function or automation.

If you're trying to have one workflow for your individual issue types, your best bet may be to create an automation that sets the Resolution based on the Request type and the transition.

(Edited answer to change condition. This allows you to have one Issue type for your 4 request types and use one workflow.)


Tags: cloud

jira-service-management

jira-service-management-cloud

transition

workflow
How to prevent internal comments that should be a reply to customer
Asked by Shaylyn Demidow:

We have cases where sometimes a service desk rep selects "add internal note" instead of "reply to customer". Is there a way to prevent this?

This rep does still need the option to add internal comments but we want to prevent the mistake in the future.


Answers:
author: Joseph Chung Yin
body: [@Shaylyn Demidow](/t5/user/viewprofilepage/user-id/4164259) -

When JSM agent adds comment against an issue (This is via the project UI), it is up to each agent to select the proper buttons (either Add internal note or Reply to customer)for the target audience for the comments -

![2024-01-31_9-31-19.png](https://community.atlassian.com/t5/image/serverpage/image-id/303569iB66DD0836DB33205/image-size/large?v=v2&px=999 "2024-01-31_9-31-19.png")

In our env, this is part of our standard training. There is no configuration that I am aware of to always default the comment to "Reply to customer" option. As the comment target audience process is an out of the box functionality.

Sorry.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

comments: author: Taranjeet Singh
body: [@Joseph Chung Yin](/t5/user/viewprofilepage/user-id/396739) I am wondering if this functionality works same for JSM DC/Server or does it have any default set for comments as either "Internal Comment" or "Customer comment" in JSM DC/Server?


author: Nic Brough -Adaptavist-
body: It is the same for DC.


author: Taranjeet Singh
body: Thank you for clarifying, [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454) !


author: Joseph Chung Yin
body: It is same for DC as stated by Nic...

It is not possible without custom development. I would not recommend this route because agents need to be trained properly to choose the target audience when he/she adds comments for the case in the issue UI.

A few years ago, Atlassian change the default behavior of commenting (it was originally defaulted to Shared with Customer") with the updated UI to provide the ability for agent to determine which button to choose when making a comment - <https://jira.atlassian.com/browse/JSDSERVER-1733>

Hope this helps.

Best, Joseph


author: Adam Schoenemann
body: Deleted my questions for a new forum post as this was answered.

My apologies :)


Tags: cloud

jira-service-management

jira-service-management-cloud