youngmon/atlassian-qna huggingface dataset:
Is it possible to auto detect remote agent OS to use as requirement of a job?
Asked by Matthew McAtamney-Greenwood:

I am trying to create a job that requires stages to build on both Linux and Windows.

Ideally I don't want to "dedicate" agents to the jobs, and instead I would like the jobs to auto select an available agent with the correct OS.

How can this be achieved?


Answers:
author: Eduardo Alvarenga
body: Hello [@Matthew McAtamney-Greenwood](/t5/user/viewprofilepage/user-id/4941664), welcome to **Atlassian Community!**

There is no embedded method that would allow Bamboo to identify the host Operating system of the Agent. But you can assign custom "Operating system" capabilities to your Agents and set them as Requirements on your Jobs.

* [Defining a new custom capability](https://confluence.atlassian.com/bamboo/defining-a-new-custom-capability-289277149.html)
* [Configuring a job's requirements](https://confluence.atlassian.com/bamboo/configuring-a-job-s-requirements-289277064.html)

You can also make the Agent report its capability back to Bamboo by using a**bamboo-capabilities.properties** file:

* [Configuring remote agent capabilities using bamboo-capabilities.properties](https://confluence.atlassian.com/bamboo/configuring-remote-agent-capabilities-using-bamboo-capabilities-properties-289276849.html)

In case you are using Elastic Agents:

* [Configuring elastic agent capabilities](https://confluence.atlassian.com/bamboo/configuring-elastic-agent-capabilities-289277140.html)

Regards,

Eduardo Alvarenga  
Atlassian Support APAC

comments: author: Matthew McAtamney-Greenwood
body: This is now what I have done thanks.

However, it would be nice if it was possible to be able to add requirements that were based on the already know "system properties" of the agents as well as the capabilities.  
As that would remove the need for me to make custom capabilities for information that is already known.

(see: Agent System Properties: "Operating System \& Operating System Architecture)


Tags: agent

remote-agent
Condition in bamboo task
Asked by Steven Rankin:

I see now we have the ability to run tasks based on some condition.

Let's say I have several stages with different jobs. I only want to run a particular stage (e.g. for UI tests) if the branch is master.

I'm guessing I could set a condition on the first task but the rest of the tasks would run? Is it possible to skip all the tasks based on one condition, rather than setting the condition on all tasks?


Answers:
author: Alexey Chystoprudov
body: Add Stop job task and make it conditional

comments: author: Steven Rankin
body: I can do that, but let's say I want to stop the job for all branches except for the release branch.

The release branch will be called:

'release-137' for example.

So my stop job task would need to be:

Stop job if the branch name doesn't contain 'release'.

There is a 'matches' condition, but no 'does not match' condition.


author: Alexey Chystoprudov
body: Matches condition supports negate regex
Bamboo planbranch setting to prevent deletion pendant in database Part 2
Asked by HeWi:

Hello [@Eduardo Alvarenga](/t5/user/viewprofilepage/user-id/4365410),  
I have already accepted the answer to my previous question ([Bamboo planbranch setting to prevent deletion pendant in database](https://community.atlassian.com/t5/Bamboo-questions/Bamboo-planbranch-setting-to-prevent-deletion-pendant-in/qaq-p/2029328) ), because I was able to find the setting in the column you have described.  
Unfortunately, after changing the setting "Clean up plan branch automatically" of a specific planbranch, it has no effect on the XML_DEFINITION_DATA column. Even after creating a new plan branch having a different setting, the element \<disabled\> always has the value "false".  
So, this column seems to be deprecated, and there has to be another field/file, where this information is getting stored.  
Could you please reevaluate the information?


Answers:
author: HeWi
body: EDITED


author: Eduardo Alvarenga
body: Hey [@HeWi](/t5/user/viewprofilepage/user-id/3583857), Good to help you again!

The **XML_DEFINITION_DATA** column is updated on the **BUILD_DEFINITION** table whenever you enable or disable the "*Clean up plan branch automatically*" setting on a Plan Branch. That column is not deprecated.

#### Examples {#toc-hId-148094300}

When **enabled**:

```
<branchConfiguration>
  <cleanup><disabled>false</disabled></cleanup>
(...)
</branchConfiguration>
```

When **disabled**:

```
<branchConfiguration>
  <cleanup><disabled>true</disabled></cleanup>
(...)
</branchConfiguration>
```

I recommend you reach out to [Atlassian Support](https://support.atlassian.com/contact) and open a ticket if your issue still persists.

Regards,

Eduardo Alvarenga  
Atlassian Support APAC

comments: author: HeWi
body: Yes, okay, correct, [@Eduardo Alvarenga](/t5/user/viewprofilepage/user-id/4365410),

the XML_DEFINITION_DATA gets changed after saving the planbranch settings, BUT:

There has to be another value/table effecting the checkbox, because when the value of planbranch A (disabled: false) gets updated via SQL statement in the column XML_DEFINITION_DATA with the value of planbranch B (disabled: true), Bamboo still shows the checkbox of planbranch A being enabled, even after reloading the buildplan page.

Can you explain, why that is happening and which other value is being responsible for the checkbox in Bamboo showing the effect of updating the database value? Only after restarting the bamboo service, the setting takes effect. Why does it work when initiated via the buildplan settings in the Bamboo GUI (without restarting the bamboo service).

Why is not Bamboo applying the updated database values after reloading the buildplan page? What has to be done? Is Bamboo using some kind of cache?


Tags: housekeeping

plan
Bamboo Expiry Scheduler database settings
Asked by HeWi:

In which table of the Bamboo database do the global expiry settings (scheduler running period and time) get stored?


Answers:
author: Eduardo Alvarenga
body: Hello [@HeWi](/t5/user/viewprofilepage/user-id/3583857),

The Bamboo Global expiry settings are currently located on the following path:

* ***\<bamboo-home\>/shared/configuration/administration.xml***

You will find the settings under the following XML tags:

* ***\<myBuildExpiryConfiguration\>***

  * ***\<cronExpression\>***

Regards,

Eduardo Alvarenga  
Atlassian Support APAC

comments: author: HeWi
body: Hello [@Eduardo Alvarenga](/t5/user/viewprofilepage/user-id/4365410)

thanks for pointing me to the corresponding configuration file; I wouldn't have found the settings by myself, great.

Kind regards,

HeWi


Tags: expiry

schedule
how to get bamboo version
Asked by can ma:

how to get bamboo version


Answers:
author: Ollie Guan
body: Hi [@can ma](/t5/user/viewprofilepage/user-id/4936059) ,

Do you mean how to know the version of bamboo you have deployed locally?

comments: author: can ma
body: yes. how to check?

can


author: Ollie Guan
body: <https://confluence.atlassian.com/bamkb/how-to-identify-bamboo-release-from-buildnumber-964972788.html>


author: Eduardo Alvarenga
body: Check the bottom of the Bamboo initial page.

**For example:**

* "*Continuous integration powered by Atlassian **Bamboo version 8.2.1 build 80206 - 09 Apr 22***"

**You can also find it directly on the server by running:**

* Linux: *\<bamboo-install\>/bin/catalina.sh version*
* Windows: *\<bamboo-install\>\\bin\\catalina.bat version*

Or even checking the contents of *\<bamboo-install\>/bin/bamboobanner.txt*

Regards,

Eduardo Alvarenga  
Atlassian Support APAC


author: can ma
body: thanks a lot!!

can ma
Log4J vulnerability
Asked by Rakhita.Kumarawadu:

We have a self-managed instance of Bamboo, which is currently on version 8.1.3. Our security scans have picked up this version has log4j-1.2.15.jar (bundled in atlassian-nav-links-plugin-3.3.9.jar), which has multiple vulnerabilities (e.g. CVE-2021-44228). Atlassian has confirmed self managed instances that maintain fork of log4j-1.2.17.jar is not vulnerable for some of these (link below) but there's no mention of log4j-1.2.15.

[https://confluence.atlassian.com/security/multiple-products-security-advisory-log4j-vulnerable-to-remote-code-execution-cve-2021-44228-1103069934.html#:\~:text=Summary%20of%20Vulnerability%20Multiple%20Atlassian%20products%20use%20the,attacker%20controlled%20LDAP%20and%20other%20JNDI%20related%20endpoints](https://confluence.atlassian.com/security/multiple-products-security-advisory-log4j-vulnerable-to-remote-code-execution-cve-2021-44228-1103069934.html#:~:text=Summary%20of%20Vulnerability%20Multiple%20Atlassian%20products%20use%20the,attacker%20controlled%20LDAP%20and%20other%20JNDI%20related%20endpoints).

Can you please advise if self-managed instances that maintain a fork of log4j-1.2.15.jar has any known vulnerabilities? Also advise if there's a way to update the log4j-1.2.15 to 1.2.17. Current version of Bamboo (8.2.3) doesn't seem to solve this issue.

Feel free to get back to me if you require further information. Thanks.


Answers:
author: Eduardo Alvarenga
body: Hello [@Rakhita.Kumarawadu](/t5/user/viewprofilepage/user-id/3750966),
> We have a self-managed instance of Bamboo, which is currently on version 8.1.3. Our security scans have picked up this version has log4j-1.2.**15**.jar

Bamboo 8.1.3 bundles **log4j-1.2.17-atlassian-*15*** and not **log4j-1.2.15** -- Notice that the version is 1.2.**17** , whilst the patch is "**-15**".

* [How to find the version of bundled software in Bamboo](https://confluence.atlassian.com/bamkb/how-to-find-the-version-of-bundled-software-in-bamboo-1115668736.html)

If you are looking to update it to **log4j-1.2.17-atlassian-*16***(latest by today, 08/Jun/2022) you will need to upgrade Bamboo to any of the following versions as listed on the provided FAQ:

* Bamboo 8.0.7
* Bamboo 8.1.4
* Bamboo 8.2.1

Kind regards,

Eduardo Alvarenga  
Atlassian Support APAC
Specs User Notification for bamboo plan
Asked by Ilya Bryukhov:

I try append UserRecipient to recipients and have an error when use Plan Vairable for userName ("${bamboo.userName}").

```
[INFO] ------------------------------------------------------------------------[INFO] BUILD SUCCESS[INFO] ------------------------------------------------------------------------[INFO] Total time:  2.334 s[INFO] Finished at: 2022-06-01T12:06:24Z[INFO] ------------------------------------------------------------------------User "${bamboo.userName}" doesn't exist???
```


Answers:
author: Eduardo Alvarenga
body: Hello [@Ilya Bryukhov](/t5/user/viewprofilepage/user-id/4954539) Welcome to **Atlassian Community!**

It is not clear how you are invoking your build process, is this a Maven? Shell script?.

It appears the *${bamboo.userName}* variable is not being expanded. Can you share how you are invoking it? Is it quote, double-quoted?

I would recommend you also try using the "bash-style" invocation:

```
${bamboo_userName}?
```

More information:

* [Bamboo variables - Using variables in bash](https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html#Bamboovariables-Usingvariablesinbash)

Regards,

Eduardo Alvarenga  
Atlassian Support APAC


Tags: notification
Log file of Visual Studio buildtools contains all plan variables even "secret" ones!!!
Asked by farhad0987654321:

Hi,

I am trying to build my test database project using Bamboo and Visual Studio 2022 Build Tools. I want to generate a log file containing build logs.

My build script is something like below:

"C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\MSBuild\\Current\\Bin\\MSBuild.exe" \^  
C:\\bamboo-home\\local-working-dir\\P1-PL1-BDJ\\DbSource\\Database3.sln /maxCpuCount /t:Rebuild /p:Configuration=Release /fileLogger1 /fileLoggerParameters1:LogFile=C:\\bamboo-home\\local-working-dir\\P1-PL1-BDJ\\DbSource\\MSBuildLog.txt;Append;Verbosity=diagnostic;Encoding=UTF-8

After the execution, the generated MSBuildLog.txt contains all plan variables' value unencrypted! They are even not used for this build task.

![Screenshot 2022-05-30 075952.png](https://community.atlassian.com/t5/image/serverpage/image-id/199745i438E050C4A4D8954/image-size/large?v=v2&px=999 "Screenshot 2022-05-30 075952.png")

Why is this happening? How can I prevent these irrelevant information from being logged?

Thanks


Answers:
author: Eduardo Alvarenga
body: Duplicate of <https://community.atlassian.com/t5/Bamboo-questions/Log-file-of-Visual-Studio-buildtools-reveals-all-plan-variables/qaq-p/2041646>


Tags: visual-studio
Log file of Visual Studio buildtools reveals all plan variables even the "secret" ones!!!
Asked by farhad0987654321:

Hi,

I am trying to build my test database project using Bamboo and Visual Studio 2022 Build Tools. I want to generate a log file containing build logs.

My build script is something like below:

"C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\MSBuild\\Current\\Bin\\MSBuild.exe" \^  
C:\\bamboo-home\\local-working-dir\\P1-PL1-BDJ\\DbSource\\Database3.sln /maxCpuCount /t:Rebuild /p:Configuration=Release /fileLogger1 /fileLoggerParameters1:LogFile=C:\\bamboo-home\\local-working-dir\\P1-PL1-BDJ\\DbSource\\MSBuildLog.txt;Append;Verbosity=diagnostic;Encoding=UTF-8

After the execution, the generated MSBuildLog.txt contains all plan variables' value unencrypted! They are even not used for this build task.

![Screenshot 2022-05-30 075952.png](/t5/image/serverpage/image-id/199746iD6398FD3A6860437/image-size/large?v=v2&px=999 "Screenshot 2022-05-30 075952.png")

Why is this happening? How can I prevent these irrelevant information from being logged?

Thanks


Answers:
author: Alexey Chystoprudov
body: Bamboo makes all variables available for executed commands and scripts so user could use them during build process. It has logic to hide them at build logs, but have no control over other apps. It's by design

comments: author: farhad0987654321
body: Sure, but these variables have no use here and do not exists or placed in the executing script. I don't know why they are there as the task don't use them.


author: Eduardo Alvarenga
body: Hello [@farhad0987654321](/t5/user/viewprofilepage/user-id/4938737), these are either Plan, Project or Global variables. Check the following documentation:

* [Defining custom variables](https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html#Bamboovariables-Definingcustomvariables)

Eduardo Alvarenga  
Atlassian Support APAC


author: farhad0987654321
body: Thank you guys, [@Eduardo Alvarenga](/t5/user/viewprofilepage/user-id/4365410) and [@Alexey Chystoprudov](/t5/user/viewprofilepage/user-id/781646)

I solved it. I know about Bamboo variables, but I wrongly configured the MSBuild logger in diagnostic mode which logs out all variables.


Tags: visual-studio
I want to track the times it takes to deploy a project to see a trend or alert on outliers
Asked by Aaron Johnson:

I want to track the times it takes to deploy a project. (self-hosted Bamboo)

Through the web I can look at the logs and see who started(or stopped) a deploy, when it started, how long it ran, and if it succeeded or failed. All great stuff!

I want to find this data either in a report built in, or point me to where I can get physical access to these logs so that I can parse them and get the data/trending myself.

What I want to do is see how the changes we make affect the deployment runtime. Did the change I just made significantly change the deploy time? Are the times getting progressively longer? Etc. Bonus would be to also see if it succeeded or Failes and if it was manually stopped.


Answers:
author: Eduardo Alvarenga
body: Hello [@Aaron Johnson](/t5/user/viewprofilepage/user-id/4946021),

Welcome to **Atlassian Community!**

You can try the following SQL. It works on PostgreSQL.

```
SELECT DR.VERSION_ID       Version_id,
       DP.DESCRIPTION      Proj_description,
       DP.NAME             Proj_name,
       DE.NAME             Env_Name,
       DE.DESCRIPTION      Descr,
       DR.VERSION_NAME     Release_Name,
       DP.PLAN_KEY         Source_Build_Plan,
       DR.STARTED_DATE     Started_date,
       DR.QUEUED_DATE      Queued_date,
       DR.EXECUTED_DATE    Exec_date,
       DR.FINISHED_DATE    Finished_date,
       DR.DEPLOYMENT_STATE Result_State
FROM   DEPLOYMENT_ENVIRONMENT DE
       JOIN DEPLOYMENT_RESULT DR
         ON DR.ENVIRONMENT_ID = DE.ENVIRONMENT_ID
       JOIN DEPLOYMENT_VERSION DV
         ON DV.DEPLOYMENT_VERSION_ID = DR.VERSION_ID
       JOIN DEPLOYMENT_PROJECT DP
         ON DP.DEPLOYMENT_PROJECT_ID = DV.PROJECT_ID
WHERE  DR.EXECUTED_DATE = (SELECT Max(EXECUTED_DATE)
                           FROM   DEPLOYMENT_RESULT
                           WHERE  VERSION_ID = DR.VERSION_ID
                           AND ENVIRONMENT_ID = DE.ENVIRONMENT_ID)
       AND ( ( DR.EXECUTED_DATE <= '2023-01-01 00:00:00' )
              OR DR.EXECUTED_DATE IS NULL )
ORDER  BY DR.EXECUTED_DATE DESC,
          DR.DEPLOYMENT_STATE DESC
```

It has a date filter (current set to 2023 it will capture anything) but you can set it to a specific period to ease the filtering.

Then, you will need to understand the values from the ***\*_date*** tables and do your reporting.

Regards,

Eduardo Alvarenga  
Atlassian Support APAC

comments: author: Aaron Johnson
body: Wonderful! This looks like it will answer my need. I will give it a whirl and see how it goes.


author: Eduardo Alvarenga
body: Thank you [@Aaron Johnson](/t5/user/viewprofilepage/user-id/4946021). Don't forget to mark the answer as accepted.


author: Aaron Johnson
body: Sorry for the delay in "accepting" It took me a while to gain access to the Pastgresql db to confirm.

Thank you very much!
How do I add buttons next to my child components
Asked by Takkuri_ Pruthviraj:

I wanted add couple buttons next to my child components as shown in RED in attached image. Please provide me any example CSS/HTML which will match my requirement. Also, where should I modify/add the custom CSS/HTML?

Thanks,  
Raj

![SEL2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/185202i22DF76235B80EC7C/image-size/large?v=v2&px=999 "SEL2.PNG")


Answers:
author: Abraham Musalem
body: Hey Takkuri,  

Abe with SP support. You can get started with customizations by looking at this page:   
\* <https://support.atlassian.com/statuspage/docs/css-and-javascript-snippets-for-customizations/>  

In order to use custom code, ,you'll need to set up a custom domain:<https://support.atlassian.com/statuspage/docs/set-a-custom-domain-and-ssl/>  

Once that is done, you can edit code by going to Your Page \> Customize Page and emails \> Customize HTML and CSS.   

Best,
How to subscribe to a component in free trial statuspage ?
Asked by Sebastien Fid:

Hello everyone,

I would like to know how an user could subscribe to a new component in the statuspage please ?

I see how to subscribe to a new incident or event but to a component I didn't see the tool.

I activated the option to allow each user to subscribe to individual component.

Thank you,

Kind regards,

Sebastien.


Answers:
author: John M
body: Hi Sebastien,

You, as the page admin can change the components for a subscriber by clicking on the individual subscription, from the "Subscribers" page and editing the components for that subscriber on the "Manage subscriptions" tab:

![Image 2-25-2022 at 5.00 PM.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/185547i35AF7E5E138A67B2/image-size/large?v=v2&px=999 "Image 2-25-2022 at 5.00 PM.jpg")

If the subscriber themself wants to edit the components they are subscriber to, they can use the "manage your subscription" link at the bottom of the confirmation email they will receive when they first subscribe to the page:

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

They can also enter their email in the "Subscribe to updates" form again. If a person is already subscribed and they enter their email a second time, it will take them to the page where they can manage their subscription:

![Image 2-25-2022 at 5.02 PM.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/185551iEB90B2309EDB2F27/image-size/large?v=v2&px=999 "Image 2-25-2022 at 5.02 PM.jpg")

comments: author: Sebastien Fid
body: Hi John,

Thank you much for your response.

Best regards,

Sebastien.


Tags: component

subscription
statuspage sql vulnerability
Asked by linda_white:

I received an alert from a 3rd party security vendor who scans my environment indicating my company status page has a vulnerability "SQL injection may be possible" and tagged it as a high risk.

Need to confirm this is an issue, remediation efforts or a false positive.

Thank you.


Answers:
author: Joshua Sneed Contegix
body: Hi Linda,

You should try <https://support.atlassian.com/contact/>. Cheers!


Tags: sql

vulnerability
Scehuling Maintenace through automation email
Asked by Daniel Michaels:

I would like to be able to created a scheduled maintenance for a component on my status page using outlook to send using my components automation email address, and I am not sure how to do that, and my trial and error attempts have been unsuccessful.

Is there a way to accomplish this?


Answers:
author: Abraham Musalem
body: Hey [@Daniel Michaels](/t5/user/viewprofilepage/user-id/4773991) ,

Thanks for reaching out. Abe with Statuspage support. Unfortunately there is no way to do this via email. You'll have to either use the [API](https://developer.statuspage.io/#operation/postPagesPageIdIncidents) or the UI in Statuspage admin console to create an maintenance.   

Cheers,


Tags: automation

email
StatusPage Template to filter services for notifications
Asked by Anuj Tyagi:

Is it possible to filter PagerDuty services or filter PagerDuty incident priority for sending incidents notifications?

Example, if I want to send only Pagerduty Priority 1 tickets to be received by StatusPage, meaning show only P1 incidents in incident tab of statuspage and send notification for them. Is there any way to do it through StatusPage?


Answers:
author: Abraham Musalem
body: Hey Anuj,

Thanks for reaching out. Abe with SP support. Unfortunately this is not possible through SP. You'll have to do this via Paged Duty or some sort of monitoring software such as OpsGenie or PagerDuty.   

Cheers,
Bulk import of Audience Specific Pages users fails to import SMS number info
Asked by James Collins:

Hello,

I've an Atlassian ticket open on this too but as I've heard nothing helpful back, trying the Community.

When I utilize the Audience Specific Pages import mechanism as described here:

<https://support.atlassian.com/statuspage/docs/import-users-for-audience-specific-pages/>

I find the the SMS subscription information is not imported for the users, rather only the email shows up after they are created.

Can any member of the community provide the following:  
\* An example Audience Specific Page User import CSV file which has worked, including importing SMS subscription information  
\* A script which instead uses the Statuspage API to create an Audience Specific Page User, including both email and SMS subscription information  

Greatly appreciated,  
- James


Answers:
author: Jesse Klein
body: Hello James,

I believe we are already talking on the ticket together around this but to add some more context here:

When you use the CSV to add page access users and you add their email and SMS information, it should create the user and then subscribe them. To find out if they are subscribed, you can go to Audience and click on a user \> edit user and then find subscriptions. This should show the email and the SMS they used.

One important thing to note about page access users and subscriptions is that they are separate things and the piece that ties them together is the email address. You can have a page access user with no subscriptions at all.

The reason I bring this up is around scripting. It might be possible to do but it would require creating the page access user and then updating their subscription, which might be more challenging in the API.

Hopefully that extra context helps. I will continue to work with you on the ticket you have open with us.

Regards,  
Jesse