youngmon/atlassian-qna huggingface dataset:
for loop with java spec task
Asked by Robert:

I'm trying to add tasks to a java spec job with a for loop, but there doesn't seem to be an easy way to do it.

I was hoping there was something like

    job.addTask(new VcsCheckoutTask().addCheckoutOfDefaultRepository());

so that I could add tasks from a loop like this

    String[] FILES = "${bamboo.REPOS}".split(","); 
    for (int i = 0; i < FILES.length; i++) {
     job.addTask(new ScriptTask().fileFromPath(FILES[i]));
    }

Any ideas?


Answers:
author: Alexey Chystoprudov
body:     String[] FILES = "${bamboo.REPOS}".split(",");
    ScriptTask[] tasks = Arrays.stream(FILES).map(
    file -> new ScriptTask().fileFromPath(file)
    ).toArray(ScriptTask[]::new);

    job.tasks(tasks);

By the way, **${bamboo.REPOS}** will not be resolved during specs processing. It should be part of your code

comments: author: Robert
body: What if I want to combine different types of tasks like ScriptTask and VcsCheckoutTask into a single job with this method?

How would I pull in a Bamboo global variable if that is not going to be resolved?


author: Alexey Chystoprudov
body: ```
Task[] tasks = new Tasks[10];
tasks[0] = new VcsCheckoutTask...
tasks[1] = new ScriptTask....
job.tasks(tasks)
```

There's no way to pull in Bamboo variables when Bamboo process specs file. You have to keep that variable at your code, not Bamboo. The reason is that you can run specs processing from your workstation with **mvn -Ppublish-specs** to update Bamboo server configuration without code commit to repository


author: Robert
body: Well then the documentation on Java specs isn't very clear. Specifically this section regarding variables:

<https://docs.atlassian.com/bamboo-specs-docs/9.1.1/specs.html?java#variables>


author: Alexey Chystoprudov
body: Section about variables you mentioned is about variables available for plans and deployments.
> Variables can be used in configuration fields of tasks

Maybe we should improve it to say that variables are not available for Specs logic. All environment available for Specs is reachable through <https://docs.atlassian.com/bamboo-specs-docs/9.1.1/specs.html?java#java-specs-utilities>
Getting an error while trying to add a bitbucket repo in bamboo server/stash
Asked by Usharani:

Hi I am new to Bamboo ,trying to create a plan and link a bitbucket repository to it but i am facing the below error while saving the repository

can someone pls help on this.

error:

Could not check if existing access key is valid: java.lang.RuntimeException: java.io.IOException: Could not create file: C:\\Program Files\\Bamboo\\temp\\bamboo-ssh.8f69d965.bat

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


Answers:
author: Helen
body: OK, I've solved this on my system! It's permission related. I turned on some debug level logging for Bamboo and found that there were log messages "unable to detect changes" and "git credentials storage exception".

My Bamboo service runs as an active directory user. Using Process Monitor I could see that there were differences in the processes run depending on whether Bamboo was run as the AD user, or as the local system account. Specifically, when Bamboo is run as the local system account, there were a stack of git.exe and sh.exe processes that weren't present when running as the AD user.

I had set up full control for Bamboo's AD user on both the Bamboo installation and home directories, \*however\* instead of giving the user permissions directly, I had added them to an AD group and provided permissions to the group. This was the source of the problem.

To fix the issue I added the AD user to the directories with full control (and removed the group). After restarting, Bamboo worked like a charm.


author: Lee li
body: Try to run Bamboo with administrator permissions.


author: Helen
body: I'm afraid I don't have any answers to offer, just wanted to say I'm encountering the same problem!

What's your set up like? I'm using Bamboo 8.2.5 and Bitbucket 7.21.3, and all my atlassian products are configured behind Apache, access via https.
Suddenly, after JAVA upgradation to 8.341, BAMBOO as windows server not starting at all
Asked by Devendar Gangapuram:

Hi Team,

Earlirer, our BAMBOO was running perfectly as windows service,. Rrecently, after JAVA upgradation to 8.341, and Open JDK jdk8u345 not starting BAMBOO as windpws servicw at all. It gives below error 1053

Error: Windows could not start Bamboo as windows service on local computer.

error:1053: The service didn't respond to start or control request in a timely fashion.

![Bamboo as windows service Error.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/235798iC4DEBD3149A5AC32/image-size/large?v=v2&px=999 "Bamboo as windows service Error.PNG")

*To resolve this issue , I have already referred the link**: [Configuring your system properties \| Bamboo Data Center and Server 9.1 \| Atlassian Documentation](https://confluence.atlassian.com/bamboo/configuring-your-system-properties-289277345.html)***

*Performed the above configurations and checked but still no luck, please help to resolve this issues and where I am doing the mistake.*

*Thank you,*

*Dev G*


Answers:
author: Eduardo Alvarenga
body: Hello [@Devendar Gangapuram](/t5/user/viewprofilepage/user-id/2497518)

Maybe after upgrading your JDK, the JAVA_HOME was not updated? Or the java binaries are not found on the PATH environment variable?

You will have to search the **\<bamboo-home\>/logs/atlassian-bamboo.logs** and **\<bamboo-install\>/logs/catalina.out** to find out what happened after the JDK upgrade.

Sincerely,

Eduardo Alvarenga  
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful--
Configure AWS Cross-account for Elastic Bamboo
Asked by Sam:

Is there away to configure multiple AWS account for Elastic Bamboo?


Answers:
author: Steffen Opel _Utoolity_
body: Hi [@Sam](/t5/user/viewprofilepage/user-id/5124975) welcome to the Atlassian Community!

Unfortunately there is no way to achieve that, please watch and vote for the following issue to raise Atlassian's awareness of this notable gap for Enterprise customers following [AWS multi-account best practices](https://aws.amazon.com/organizations/getting-started/best-practices/):

* [Allow users to configure more than one AWS account for Elastic Bamboo (BAM-13536)](https://jira.atlassian.com/browse/BAM-13536)

That being said, as you can infer from this issue being ignored since 2013, despite a solid number of votes and Enterprise relevance, I consider it highly unlikely that this will ever be tackled, because Atlassian effectively stopped improving Elastic Bamboo beyond [basic maintenance](https://jira.atlassian.com/issues/?jql=project%20%3D%20BAM%20AND%20component%20%3D%20%22Elastic%20Bamboo%22%20ORDER%20BY%20%20created%20DESC) quite some time ago.

#### Potential workaround {#toc-hId-205527632}

I haven't tried this myself, but depending on your scenario, Andrew Hemming's slightly [hacky workaround](https://jira.atlassian.com/browse/BAM-13536?focusedCommentId=913773&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-913773) might help:
> I managed to solve this problem using cross-account IAM roles and STS credentials.
>
> <http://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html>
>
> <http://docs.aws.amazon.com/STS/latest/APIReference/Welcome.html>
>
> Basically, I make an STS call at the beginning of the job that obtains the credentials for the role I need to assume, then I either write those credentials to a config file and/or expose them as environment variables.
Tag trigger on bamboo is not working?
Asked by fnc11:

I am configuring a bamboo plan to automatically create a release branch from the master as soon as there is a new tag in the branch. For this, I am using the tag trigger in bamboo triggers. I have set up this trigger according to the given instructions on the bamboo site ( <https://confluence.atlassian.com/bamboo/tag-triggering-1031180298.html> ). My repo is on the bitbucket server, do I need to configure something on the repository side as well something?

The repository commit trigger is working for me, without any special changes on the repository side, so now I am not sure why the Tag trigger is not working.


Answers:
author: fnc11
body: Okay, a silly mistake on my part, didn't know we have to push tags explicitly to the remote repo.


Tags: bitbucket
Grant admin access for create the user account only
Asked by Nam Lam:

Hello Community

Is there a way that I can set up a colleague with access permission to create/manage the user accounts only without any other admin access?

Thanks.

Nam


Answers:
author: Eduardo Alvarenga
body: Hello [@Nam Lam](/t5/user/viewprofilepage/user-id/1486606)

The is no such "User manager-only permission" in Bamboo. To manage local users you must be an Administrator.

Alternatively, you can connect Bamboo to an external User database such as AD, LDAP, Crowd, etc and grant privileges to that user from there so the "User Admin" doesn't even have to have access to Bamboo to manage its users.

* [Integrating Bamboo with LDAP](https://confluence.atlassian.com/bamboo/integrating-bamboo-with-ldap-289277210.html)

Best regards,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**


Tags: administration
Bamboo tag triggers multiple plan branches
Asked by oscarmateu:

Hello everyone,

I have a bamboo plan with several branches and a triggering tag configuration like this .\*$ for all of them (=any tag triggers the execution). The moment I create a tag in the repository, the plan is executed for all branches instead of the branch where the commit with the assigned tag is. But the most curious thing about the case is that all branches use the same git branch, even having other branches assigned. I.E.

Plan for X with tag triggering .\*$

* Bamboo Branch DEV uses git repository X branch dev
* Bamboo Branch Release uses git repository X branch release

Then I commit changes into repository X branch dev and after I create a tag and assign it to this commit. What happens is:

* Bamboo Branch DEV is executed using git repository X branch dev (which is correct)
* Bamboo Branch Release is executed git repository X **branch dev**(which I don't want to start, and additionally, is using a wrong source code branch)

Any idea how to prevent all the plan branches being executed when a tad is used in a particular git branch?

Thanks


Answers:
author: Eduardo Alvarenga
body: Hey [@oscarmateu](/t5/user/viewprofilepage/user-id/5078277),

Welcome to **Atlassian Community**!

Can you confirm if you are following this workflow?

1. Create branch
2. Commit to the files
3. Add a Tag
4. Push Tag

If you are skipping #2, the tag may be shared between the "old branch" and the branch you had just created, making Bamboo trigger multiple builds that still refer to the last revision that the tag is linked to.

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**

comments: author: oscarmateu
body: Hi Eduardo,

yes, I do it exactly as you described.

Thanks


author: Eduardo Alvarenga
body: Hey [@oscarmateu](/t5/user/viewprofilepage/user-id/5078277)

If the Git revision is unique, Bamboo should consider the tag and only trigger that specific Plan branch as it will be only part of that revision. Could it be the case that the Plan Branch you are referring to is actually pointing to the "release" branch instead of the expected "dev" branch?

Please review the Plan branch setup by selecting the Plan Branch configuration \>\> Repositories and make sure that the selected Branch matches the desired Branch you want to trigger the build from.

Kind regards,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
Bamboo Release with Tomcat version greater than 8.5.84
Asked by Bill Parlock:

We are currently running Bamboo Data Center version 8.0.10. Could anyone tell me what would be the next closest release that is bundled with an Apache Tomcat version that is greater than 8.5.84 ?


Answers:
author: Alexey Chystoprudov
body: Bamboo team is going to release 8.2.7 in a few days which will use Tomcat 8.5.84

comments: author: Bill Parlock
body: I have checked the release notes for 8.2.7. It looks like the Tomcat Version is updated to 8.5.83. Is that correct?


author: Alexey Chystoprudov
body: Tomcat is updated to 8.5.84 in Bamboo 8.2.7


author: Bill Parlock
body: Ok, thank you.


author: Eduardo Alvarenga
body: Hello [@Bill Parlock](/t5/user/viewprofilepage/user-id/3734252)

The next minor release of Bamboo 8.0.12 will embed Tomcat 8.5.84. That is the current information from today 14/01/2023, it may change until the release is finished. There is still no ETA for the release date.

Check [@Alexey Chystoprudov](/t5/user/viewprofilepage/user-id/781646) comment below.

You can also use Tomcat 9 by switching to Bamboo 9.0 and 9.1.

If can also update Tomcat on Bamboo at your own risk by following this KB:

* [How to upgrade Apache Tomcat version used by Bamboo](https://confluence.atlassian.com/bamkb/how-to-upgrade-apache-tomcat-version-used-by-bamboo-1115656288.html)

Cheers,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**

comments: author: Bill Parlock
body: Thank you for a very quick response.


Tags: server
BAMBOO SCAN successfull but bitbucket code changes not showing in Bamboo tasks
Asked by Devendar Gangapuram:

Hi Team,

We are using Bamboo specs using Bitbucket repos. Each change merged to "Master" branch and eahc change merge triggers Bamboo scan and imports all the tasks to Bamboo. This is we are using form last 2 years, but today suddenly its not showing newly made changes in Bamboo's View Tasks section.

Could you let me know wha twould be the issue?![View Tasks.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/234199i35ADAC1BD3974829/image-size/large?v=v2&px=999 "View Tasks.PNG")

Thank you,

Dev G


Answers:
author: Devendar Gangapuram
body: Please some expain me where could be the issue is.

Thank you,

Dev G

comments: author: Devendar Gangapuram
body: Hi,

Linked repo was misconfigured, now I have fixed and everything was worked fine.

Thank you,

Dev g


Tags: bitbucket

spec

task

trigger
Is there a Bamboo DC Installation Guide for GCP?
Asked by Humberto Ramirez Antonio:

Is there a manual to understand how to install Bamboo Data Center on GKE at least with the following requirements:

* At least 2 Nodes
* With at least 5 Agents
* Storage
* Data Base
* Networking, Nat, Firewall, Balance, etc

I have search info on Atlassian Document site, but I haven't found something specific.

I'll really aprecciate if you can help me with a terraform file or a similar template


Answers:
author: Steffen Opel _Utoolity_
body: There is also a guide on [Running Bamboo Data Center on a Kubernetes cluster](https://confluence.atlassian.com/bamboo/running-bamboo-data-center-on-a-kubernetes-cluster-1108673465.html) meanwhile (essentially the supported part of the developer focused and unsupported [Deployment Automation for Atlassian DC on K8s](https://atlassian-labs.github.io/data-center-terraform/) solution you found already, i.e. just the Helm charts w/o Terraform).


author: Humberto Ramirez Antonio
body: I've found the following information that has gave me a clear ideo from where to start with a Bamboo Data Center Installation on K8

I hope the link could help somebody else: <https://community.developer.atlassian.com/t/terraform-ga-available-for-bamboo-dc-apps-performance-testing/55522>


Tags: google

install
Trigger email again once incident is resolved
Asked by Katrina Pambid:

Once the ticket is resolved, and there's update in the description, is it possible to trigger the email again?


Answers:
author: Rafael Meira
body: Hey [@katrina](/t5/user/viewprofilepage/user-id/3781580) Happy to help!  

Alan already gave the answer below to your question. :)   

Best,  
Rafa


author: Alan Violada
body: Hey Katrina, Alan from the Statuspage support team here, thanks for reaching out with this question. If I understand correctly, you would like to send additional notifications to subscribers related to an incident that has already been closed? If so, I believe your best option would be writing and publishing a **postmortem** with whatever information you wish to send to your subscribers, more details on the documentation below:

[Statuspage postmortem documentation](https://support.atlassian.com/statuspage/docs/create-a-postmortem/)

Let me know if this helps, and if you have any more questions!

Regards,

Alan


Tags: cloud
Is it possible to merge two components?
Asked by Kathryn Pearlman:

We are in the process of migrating users from one API integration to another. At the time we set up Statuspage, we set up separate components for each integration, since we had users on each one. As we move more and more users to the new integration, and ultimately sunset the old integration, we'd like to merge the two components within Statuspage.


Answers:
author: Howard Nedd
body: considered using a component with sub-components (component groups?)

Regards

Howard


Tags: cloud
Statuspage: Audience-Specific Users vs. Team Members Login Credentials
Asked by Scott Palgon:

Apologize if this has already been asked...cannot find this in the community or documentation.

For an Audience-Specific Statuspage configuration, do "Team Members" that have login credentials for the "Manage" site need to also have a ++separate++ set of "Audience-Specific User" login credentials in order to view the external Statuspage site?

IOW, is it possible to utilize only the "Team Member" login credentials to access ++both++ the "Manage" site and external "Audience-Specific" sites?

I believe that both sets are required, but wanted to double-check in case I missed it.

Thanks.


Answers:
author: Muhammad Zeeshan
body: Hey [@Scott Palgon](/t5/user/viewprofilepage/user-id/5076305) ,

Thank you for raising your query and yes you do need to have a separate set of credentials for accessing the 'Manage' site and the external Statuspage for an Audience-Specific Statuspage.

You can be a part of the Team Members list for your page but if you are not part of the 'Audience' list you cannot access the external Statuspage site.

Best regards,


Tags: cloud

user
Move Legend Above Componenets
Asked by Logan Dykema:

Hello!

Is it possible to move the status legend above the list of components?

Thanks,

Logan


Answers:
author: Abraham Musalem
body: Hey Logan,

Abraham here from Statuspage Support, thanks for reaching out. While we don't have a specific way to do it, it should be possible using custom CSS/HTML. You can check out this knowledge article that gives you some good starting points:  

- <https://support.atlassian.com/statuspage/docs/css-and-javascript-snippets-for-customizations/>  

Regards!   
- Abraham


Tags: cloud
Add Slack subscription through the API
Asked by Pierre-Nicolas Theisen:

Hello,

We have removed from our public facing status page the ability for users to self-subscribe.

I'm looking for any possible means to add Slack subscribers other than re-enabling this option for public users.

By looking at the documentation, all three ways to add subscribers do not support Slack subscriptions: admin management page, bulk CSV import and add subscribers via API :

* <https://support.atlassian.com/statuspage/docs/add-single-subscribers/>
* <https://support.atlassian.com/statuspage/docs/import-subscribers-via-csv/>
* <https://developer.statuspage.io/#operation/postPagesPageIdSubscribers>

How can we add Slack subscribers? Isn't there an API endpoint used by public subscribers that we could be using?

Thanks in advance.


Answers:
author: Shivam Naik
body: Hi [@Pierre-Nicolas Theisen](/t5/user/viewprofilepage/user-id/5063725) ,

Happy to help!

Unfortunately this isn't currently possible due to the Oauth sequence requiring separate confirmation of the subscription by the user in Slack. As part of the process:   

"The page viewer is taken to sign in to their workspace to Slack, then allows Slack the permissions it needs to access the workspace."  

Meaning the subscription flow requires interaction on the part of the person subscribing. So there isn't a way via the API or CSV to skip over that interaction to confirm it.

While this is a current limitation, I would recommend submitting a Support Request to us so that we can create a Feature Request and add your Organization to it for updates. It may be possible for Engineering to find a way around this in future releases, and that Feature Request would be one of the best methods to stay updated on the progress and potential for addition to the product.

Please let me know if you have any follow up questions!

comments: author: Pierre-Nicolas Theisen
body: Thanks Shivam, thought so.  
I've created the support request.

<br />

Thanks again!  


Tags: cloud

slack

subscription
Hey There Nithin Here , I wanna use statuspage to get the health of my azure log analytics data.
Asked by Nithin Paul:

I want to get help in integrating azure log analytics data to atlasssian status page


Answers:
author: John M
body: Hi [@Nithin Paul](/t5/user/viewprofilepage/user-id/5119702) ,

It sounds like System metrics may be what you're looking for:

<https://support.atlassian.com/statuspage/docs/what-are-system-metrics/>

If you want to use a custom source like Azure, you can use the metrics API:  

<https://developer.statuspage.io/#tag/metrics>


Tags: cloud
List statuspage api-keys using an API
Asked by Per-Ola Gustafsson:

Hello,

Is it possible to list all api-keys by name programmatically for a status pages?

We would like to run a script that lists api-keys by name.

Br.

Per


Answers:
author: Jesse Klein
body: Hello!

This is Jesse from the Statuspage support team. Welcome to the community and thanks for the question.

Unfortunately, there is not a way to programmatically list all the API keys. The only spot that has the API keys would be from clicking your avatar in the top right of the Statuspage and clicking the API Info section. If you are a product admin for Statuspage, you can see all the API keys there. This would be the only place to get them at this time. Please let me know if you have any questions at all around this.

Regards,  
Jesse


author: Darryl Lee
body: Hi [@Per-Ola Gustafsson](/t5/user/viewprofilepage/user-id/5117684),

This is Darryl. I am here to help. ?

For security reasons, there is no such API endpoint to interact with for listing all API Keys associated with a Statuspage.

Hope this makes sense.

Kind regards,   
Darryl Lee  
Support Engineer, Atlassian


Tags: cloud