youngmon/atlassian-qna huggingface dataset:
Are there any reasons why I wouldn't be able to download an artifact from a build?
Asked by Alexis Evans:

I noticed that, in some of my builds, the downloadable links for the artifacts aren't there. I'm seeing this when I click on a plan, then click on a build within that plan. Then, I'm going to the Artifacts tab to the right of Summary.

This shows a list of artifacts associated with the build. Under Artifact, it says the artifact name, and then to the right, it shows the file size.

For some of my builds, the names of the artifacts in this list are also links that, when you click on them, allow you to download the file. This is what is supposed to happen. But for some other builds, the name of the artifact is not a link, and you can't download anything.

What reasons can you think of that might prevent the links from being added, or otherwise cause this to happen? Maybe the files are being moved or aren't put in the place where Bamboo is expecting them to be? Is linking the files in this way native to Bamboo?


Answers:
author: Eduardo Alvarenga
body: Hello [@Alexis Evans](/t5/user/viewprofilepage/user-id/4997072)

Artifact download links will only be available for artifacts that are present. For artifacts that still have a reference in the database but are not present in the filesystem, the links will be greyed out.

In your case, the artifacts were either manually removed on the filesystem or were expired by a [Global](https://confluence.atlassian.com/bamboo/configuring-global-expiry-289277253.html) or [Plan](https://confluence.atlassian.com/bamboo/configuring-build-results-expiry-for-a-plan-289276917.html) based expiry configuration.

Cheers,

Eduardo Alvarenga  
Atlassian Support APAC

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

comments: author: Alexis Evans
body: Thanks for the reply! That makes a lot of sense.

If there is an artifact I want to download, but it seems to have already been deleted, is there anything I can do to get it back, or will I need to re-run the build in order to generate new artifacts?
I'm not able to link with bamboo
Asked by Adi:

I'm not able to link with bamboo getting following error "Failed to load data from Bitbucket. 401 Unauthorized"


Answers:
author: Eduardo Alvarenga
body: Hello [@Adi](/t5/user/viewprofilepage/user-id/5038981)

Welcome to **Atlassian Community**!

The provided description doesn't help us much in diagnosing the issue. Can you please let us know exactly what you were trying to do? Is that an Application Link issue? Have you tried initiating the Applink from Bamboo instead of Bitbucket? Do you have an user on both systems?

Please send a screenshot of the browser session so we can see the message and where you are.

Sincerely,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
Why doesn't the Bamboo audit log show the full changes?
Asked by Sojiro Leblanc:

When using the plan configuration to look at build plan audit logs, I'm curious why isn't the full log shown? Is there a reason for that? We have someone who misconfigured some scripts in the build jobs, which leads to several build failures, but nobody can spot the error.

It would be nice to see the full changelog of the old and new values on the audit page, so you can see what exactly changed.


Answers:
author: Eduardo Alvarenga
body: Hello [@Sojiro Leblanc](/t5/user/viewprofilepage/user-id/5034063)

Welcome to **Atlassian Community!**

Bamboo will log several traces of the Build Plan changes on the plan's "Audit Log" tab with "old_value" and "new_value".

If you can't spot the change naturally, you can try running a SQL that will return only the changes for that specific plan:

Please check the following KB article for examples:

* [How to search database for Audit Logs - Build plan audit logs](https://confluence.atlassian.com/bamkb/how-to-search-database-for-audit-logs-1077909306.html#HowtosearchdatabaseforAuditLogs-Buildplanauditlogs)

Kind regards,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
Is there is a way to run a job/task when a git branch is deleted?
Asked by Ben D'Herville:

We have a build plan (configured by bamboo yml file) that copies files to AWS S3. If a branch build runs it creates these files but we'd like to remove them when the branch is deleted.

We previously used gitlab and it had this ability but I haven't been able to find any hook or trigger in bamboo that would run a job/task just before the branch plan is deleted. Any ideas on how to do it?


Answers:
author: Eduardo Alvarenga
body: Hello [@Ben D'Herville](/t5/user/viewprofilepage/user-id/978362)

Bamboo will not trigger any actions once a Plan branch is deleted. Instead, it will disable the Plan branch immediately and queue a branch deletion according to the Plan configuration.

Data that is generated outside of Bamboo premises such as files on S3 buckets will not be touched by Bamboo.

We recommend you set an external script that will run the cleanup on your buckets on a daily basis (or even more/less often depending on your requirement). That script can be run as a different Plan from Bamboo based on a scheduled trigger or even outside of Bamboo scope as a cron job.

Best regards,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
Get a list of deployment project variables
Asked by Hien:

Hi,

How can I go about to get a list of variables of a Bamboo deployment project?

Appreciate if you could, please, specify the version you are using.

Thanks


Answers:
author: Eduardo Alvarenga
body: Hello [@HL](/t5/user/viewprofilepage/user-id/4981001)

To obtain a list of variables available on a Deployment project you can:

1. Add a script task to a Job within a Plan and run **env** on Linux or **SET** on Windows (or the equivalent PowerShell command)
2. Add a "[Dump variables to log configuration](https://confluence.atlassian.com/bamboo/configuring-a-variables-task-687213475.html#Configuringavariablestask-Dumpvariablestologtask)" task to your Plan

Both methods will print the environment variables that are accessible by Bamboo once the Plan is run.

You can then [consume those variables](https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html) in different ways.

Kind regards,

Eduardo Alvarenga  
Atlassian Support APAC

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

comments: author: Hien
body: Hi [@Eduardo Alvarenga](/t5/user/viewprofilepage/user-id/4365410) ,

Thanks for your response. Answer is accepted.

I thought the following might be useful for those who are looking for similar solution - I am using version 6.10.3 and Linux elastic agents. The **env** command "displays" all variables which include:

- standard Linux environment variables

- built in variables

- global variables

...

- and deployment project variables

Except the Linux environment variables, the Bamboo variables are prefixed with **bamboo_**

For example,

build 21-Sep-2022 12:57:45 bamboo_my_dummy_var1=val1  
build 21-Sep-2022 12:57:45 bamboo_my_dummy_var2=val2

where my_dummy_var1/2 and val1/2 are my deployment variables and values, respectively.

One might need to use the cut (or another util) command to capture the output of the env command.

Thanks again for your help!!


author: Eduardo Alvarenga
body: Thank you for the details [@HL](/t5/user/viewprofilepage/user-id/4981001) I hope you are having a good experience with Bamboo!

Thank you,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
Remote Agents stopped working after bamboo upgrade to 9.0
Asked by Rakesh Yadav:

We upgraded the bamboo to version 9.0. After the upgradation process, the remote agent stopped working.

Also, the link to download the remote agent jar file shows an internal server error.

Below is the error log while launching remote agent.


Answers:
author: Eduardo Alvarenga
body: Hello [@Rakesh Yadav](/t5/user/viewprofilepage/user-id/2790890),

It seems there is something else going on with your Bamboo instance. Your agent fails to retrieve information from the server with an HTTP 500 error:

```
INFO | jvm 1 | 2022/09/17 02:20:50 | com.atlassian.bamboo.agent.bootstrap.RemoteAgentHttpException: Response: [HTTP/1.1 500 ] received after manifest retrieval request.
```

Please check your Bamboo Server on ***\<bamboo-home\>/logs/atlassian-bamboo.log*** for any messages or stack traces that may give you a clue of what's going on.

If you can't locate anything obvious, please open a ticket with Atlassian at <https://support.atlassian.com/contact>.

Please do not post any private information here. This is a public forum and may expose your internal information.

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
Math Operation within Repository Tag Tag Name Possible?
Asked by Eduardo Wiputra:

Is there a way to perform a math operation within the "Tag Name" field when configuring "Repository Tag" task?

For example, I would like to add a git commit tag based on the current Bamboo build number. However, the build number should be subtracted by 5. So something like this:

0.0/0.0.(${bamboo.buildNumber}-5)

and when bamboo.buildNumber is equal to 16, the tag would be 0.0/0.0.11.


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

Welcome to **Atlassian Community**!

The "Repository Tag" task will not do mathematical operations whilst tagging a commit.

You can either:

1. Use a "Script task" and perform the tagging using a shell script + git command  
   *or*
2. Use a "Script task" to run your maths and create a properties file with a format such as *"custom_tag=0.0/0.0.11"* then add an "Inject Bamboo variables" task to consume that variable from the properties file you have just created and then use the custom variable in the "Repository Tag" task as "${bamboo.*custom_namespace* .*custom_tag*}" -- You have to define the namespace name whilst injecting the custom variable.

Kind regards,

Eduardo Alvarenga  
Atlassian Support APAC

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

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

Thank you very much for the replies! I wasn't aware of "Injection Task" before I asked the question. Since then, I've experimented with it and realized how powerful it can be.

Sincerely,

Eduardo


author: Eduardo Alvarenga
body: Thank you [@Eduardo Wiputra](/t5/user/viewprofilepage/user-id/5032999)


Tags: bitbucket
How can I get BP that is executing on the agent?
Asked by Valerii:

Hi Team,  
Could you help me please determine how can I get build plan that actually running on the agent now? Using REST API


Answers:
author: Eduardo Alvarenga
body: Hello [@Valerii](/t5/user/viewprofilepage/user-id/4984397)

There is no REST API that would provide you with the linked Build on a running agent. You can alternatively use SQL to extract that information.

Here's a KB article that provides a very nice SQL and brings Agent reports. You will need to customise it to match your specific Agent.

* [Generating Bamboo Agents counts from the database](https://confluence.atlassian.com/bamkb/generating-bamboo-agents-reports-from-the-database-1142234753.html)

Kind regards,

Eduardo Alvarenga  
Atlassian Support APAC

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

comments: author: Valerii
body: Thank you for help [@Eduardo Alvarenga](/t5/user/viewprofilepage/user-id/4365410), but it is not my way. I would like to use only REST API as a part of my script.


Tags: api

rest

rest-api
Can I make an API call to bamboo to rename my Agent
Asked by William Flow:

Hi All

So I have written an Ansible Playbook that creates a EC2 instance then makes that a Bamboo Agent, in my playbook I make an API call to my bamboo server that authorizes the new agent and enables it, but the name of the agent is the hostname it gets from aws so I wanted to know since i can't change the host name in my playbook for aws, is there a bamboo api call that i could do that with?


Answers:
author: Eduardo Alvarenga
body: Hello [@William Flow](/t5/user/viewprofilepage/user-id/4551025)

Assuming you are running [Remote Agents](https://confluence.atlassian.com/bamboo/bamboo-remote-agent-installation-guide-289276832.html) on an EC2 instance and not Elastic Agents which are Ephemeral by nature, you can use the following API call to modify the Agent's name:

* <https://developer.atlassian.com/server/bamboo/rest/api-group-admin/#api-admin-latest-config-agents-agentid-get>

```
curl --request PUT \ 
  --url 'http://{baseurl}/rest/admin/latest/config/agents/{agentId}' \ 
  --header 'Accept: application/json' \ 
  --header 'Content-Type: application/json' \ 
  --data '{ 
              "id": 131073, 
            "type": "local", 
            "name": "Default Agent", 
     "description": "This is a description", 
         "enabled": true, 
            "link": "https://baseurl/rest/admin/latest/agent/131073" 
          }'
```

The ***agentId*** can be obtained from ***\<bamboo-agent-home\>/bamboo.cfg.xml***

Regards,

Eduardo Alvarenga  
Atlassian Support APAC

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


Tags: agent
YAML SPEC Defined Repositories
Asked by BOB BOB:

Are YAML Spec defined repositories supported in deployment projects in Bamboo 8.2?

I can create build project YAML specs with defined repositories with no problem. However, it looks like it's not supported for deployment projects. Just want to confirm this.

Thanks!


Answers:
author: Santhosh Thokur Raghava
body: Hi [@BOB BOB](/t5/user/viewprofilepage/user-id/4990620) ,

Thank you for reaching out to Atlassian Community.

YAML specs can be used to create Deployment Projects as well. Please refer the [Bamboo YAML Specs](https://confluence.atlassian.com/bamboo0802/bamboo-yaml-specs-1103434118.html) and [Bamboo Deployment Project using Java](https://confluence.atlassian.com/bamboo0802/creating-deployment-projects-in-bamboo-specs-1103434111.html)

Please let us know if have any other question.

Thank You,  
Santhosh Thokur

Atlassian Support AMER

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

comments: author: BOB BOB
body: Thanks Santhosh for the response. However, I know how to create the deployment projects via YAML specs. The issues is not being able to define 'repositories' in the deployment projects. Without that being supported, we have to rely on GUI defined Linked Repositories for our deployment projects.

I just want confirmation that, in fact, you cannot define 'repositories' in deployment projects that are created via YAML specs.

Thanks again!
How do I get the user and their group whilst running a build
Asked by Dave Grandon:

I am trying to restrict the ability of developers to build the master branch, they need to be able to build, compile and test their branch(es) but not build against master database


Answers:
author: Eduardo Alvarenga
body: Hello [@Dave Grandon](/t5/user/viewprofilepage/user-id/1195779)

You can work externally on Bamboo to restrict the merger of changes to the master/main branch by implementing a Pull Request and approval mechanism. That way your developers will be able to push their changes to their own branches and only merge to master when a Pull request is approved and merged.

Another strategy you can adopt is to modify Bamboo in a way that the repository attached to a Plan does not have "master/main" as the default Branch. For that, you need to modify the repository settings and declare another branch as the default.

You can then modify the Plan permissions to allow developers to only run builds and not edit the Plan.

If you want to have full control over the changes to the Plan structure, you can consider migrating the plan to [Bamboo Specs (configuration as code)](https://confluence.atlassian.com/bamboo/bamboo-specs-894743906.html).

Best regards,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**
Defining environment variables
Asked by Karen West:

Hello - I want to define an environment variable in bamboo so that certain tasks are completed during execution. How do I do this through the web interface? bamboo_run script is looking for the value of this variable and I want to set it to true instead of false so that it performs the task from within bamboo.


Answers:
author: Eduardo Alvarenga
body: Hello [@Karen West](/t5/user/viewprofilepage/user-id/5031271)

Welcome to **Atlassian Community**!

In your Plan configuration, you can use a *[Script Task](https://confluence.atlassian.com/bamboo/script-289277046.html)* or any other task that would create a variables file, then add an [*Inject Variables*](https://confluence.atlassian.com/bamboo/configuring-a-variables-task-687213475.html#Configuringavariablestask-InjectBamboovariablestask) task that would consume that file.
> The Inject Bamboo variables task allows you to read the values for variables from a file, and create those variables in your build plan.
>
> The file should use a 'key=value' format. Note that starting from Bamboo version 5.14, you must provide relative paths to the property file.
>
> You can choose if those variables should have a local scope (in which case they cease to exist when the job finishes) or result scope (in which case they are persisted and passed into subsequent stages or related deployment releases).

Then, after the variables are set you can configure a [*Conditional Task*](https://confluence.atlassian.com/bamkb/conditional-tasks-in-bamboo-1077907046.html) to evaluate the new variable and then proceed with its execution in case it matches.

Thank you,

Eduardo Alvarenga  
Atlassian Support APAC

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

comments: author: Karen West
body: Thank you Eduardo. I will try that tomorrow and let you know if it solved my issue.

Cheers - Karen West
Does bamboo allow a plan variable to point to another variable referencing a system property?
Asked by Robins John:

In my build script I am referencing a system variable gradle_home. I want to substitute this with a bamboo variable so that I can override this value for a specific branch. However the build runs on different systems and the only way to reliably get the gradle_home for the system is via the system.gradle_home. So I am trying to get the bamboo variable to point to the system variable in normal case and to the new path in the overridden case. Is this possible?


Answers:
author: Eduardo Alvarenga
body: Hello [@Robins John](/t5/user/viewprofilepage/user-id/5029398)

Welcome to **Atlassian Community!**

Choosing which variable to use is up to the application, not Bamboo. What you can do is set a script task that would evaluate if the custom variable is set and then overwrite the system.GRADLE_HOME if needed. You can do something like this:

Assuming:

* ${system.GRADLE_HOME} (the one inherited from your OS)
* ${bamboo.GRADLE_HOME} (the one declared on the Plan)

Add a Script task that will evaluate the variable and call Gradle:

```
#!/bin/bash

if [ -n "${bamboo_GRADLE_HOME}" ] ; then
  export GRADLE_HOME=${bamboo_GRADLE_HOME}
fi

${GRADLE_HOME}/bin/gradle build
```

More information:

* [Bamboo variables](https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html)

Cheers,

Eduardo Alvarenga  
Atlassian Support APAC

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

comments: author: Robins John
body: Thanks Eduardo. Your input certainly helped!
Feature request for statuspage
Asked by Brian Katzen:

Can someone point me to a place to enter a feature request for Statuspage? I've looked in several places but unable to locate. Thanks!

Brian


Answers:
author: Talar Pavlovic
body: Hey there Brian,

Thanks for writing into Statuspage Community, I'm Talar from the Atlassian team, happy to help!

Our Statuspage Feature Request are currently only internally facing. If you would like to pop in a support ticket at <https://support.atlassian.com/contact> we'll be happy to create one for you, or let you know if there is one already for the feature you're looking for!

Regards,  
Talar


Tags: cloud
Can you have more than one Statuspage embed in your website?
Asked by Miguel Bezerra:

Hello!

I am managing a website that has two different Statuspages (which I have not access to) each with its own embed.

I have added both to the website and when running statusEmbedTest() I only get the ping from the last embed, even when I switch which one comes last. However, when I remove/comment out that one and I run the same command, the first embed shows up.

Based on the results, I know they are working individually, but I need to ensure that they are working when I have both on the page, regardless of the order. Could someone give me a hint on how I can know if they are both working?

Thank you!


Answers:
author: Rafael Meira
body: Hello Miguel, How's going?  

I believe you have to use the custom status embed, the default one is very bare bones.  

In case I find more information I will post it here for you.  

<br />

comments: author: Miguel Bezerra
body: Hello Rafael

So, would you say that both status embeds should be customized to ensure they work simultaneously?

Thank you for your answer


author: Rafael Meira
body: Hey Miguel,

You're welcome!  
I see that you opened ticket [SPSP-27264.](https://getsupport.atlassian.com/browse/SPSP-27264)

I will follow up on this ticket as well and add any information necessary there.  

Regards,


Tags: cloud
Subscribe to a specific incident priority
Asked by Lior Avni:

Hello

We have our templates for P1 / P2 / P3 and the components.

I want to allow my users to subscribe only to P1 / P2 incidents and not just to specific components.

Can I do that?

Thank you

Lior


Answers:
author: Howard Nedd
body: Hi Lior,

As far as I know, this is not possible via the subscription option within Statuspage. You can either subscribe on the page or on specific components depending on your page type.

Hope that helps.

Regards

Howard


Tags: cloud
What to do with decommissioned components?
Asked by Ken Szymanski:

We have physical network gear that's being removed and no longer need the notifications from statuspage, but removing the component also removes historical data.   

Is there a way to remove the component and stop the notifications, but keep the historical data?   

Much appreciated!


Answers:
author: Dave Mathijs
body: Hi [@Ken Szymanski](/t5/user/viewprofilepage/user-id/3801525)

Unfortunately, Jira Cloud does not (yet) support archiving components.

You can watch and vote for the suggestion here: [JRACLOUD-10507](https://jira.atlassian.com/browse/JRACLOUD-10507)

comments: author: Ken Szymanski
body: Thank you [@Dave Mathijs](/t5/user/viewprofilepage/user-id/2662590)


Tags: cloud