youngmon/atlassian-qna huggingface dataset:
Periodic Artifacts
Asked by Adel Aljalam:

Hi,

I was wondering if there is a way to configure artifacts in a periodic way, daily or weekly artifacts for example, or even manually instead of generating the artifacts automatically at each plan execution which consumes a lot of memory space.

Thank you for your help in advance.

Best regards,

Adel


Answers:
author: Alexey Chystoprudov
body: Hello Adel,

There is no build-in features by your requirements. You can configure your builds to skip placing artifacts at necessary places. So add some script as last part of your job which will remove artifact from disk depending on day of the week. Then Bamboo will not be able to find artifact nor store it. One drawback of this solution is that if there are builds depend on these artifacts then build will fail


Tags: artefact
Choosing a specific Dockerfile
Asked by cclosemudbath:

*This question is in reference to Atlassian Documentation: [Configuring the Docker task in Bamboo](https://confluence.atlassian.com/pages/viewpage.action?pageId=737184098)*

Hi,

Is there a way to choose a particular Dockerfile to build? I have different Dockerfiles which I use for testing + deployment, in the same repository, and sitting at the same level in the filesystem (i.e. they have the same context.)


Answers:
author: Steffen Opel _Utoolity_
body: Choosing a particular Dockerfile is not yet supported by Bamboo's [Docker task](https://confluence.atlassian.com/bamboo/configuring-the-docker-task-in-bamboo-720411254.html) - please watch/vote/comment on the following issue to raise awareness for this limitation:

* <https://jira.atlassian.com/browse/BAM-17097>


Tags: docker

documentation
Does Sonar for Bamboo support the MSBuild scanner?
Asked by Matt Michal:

Is the [SonarQube Scanner for MSBuild](http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+MSBuild) supported in the Sonar for Bamboo plugin? It's not explicitly stated as unsupported in the documentation of the plugin but it appears as though it's not supported because two steps are required ("begin" and "end") and no such examples are provided.


Answers:
author: Mibex_Software
body: Hi,

It is not yet supported, but I think it would be a nice and important feature. Could you please create a feature request for it in our bug tracker at <https://mibexsoftware.atlassian.net/browse/SONARBOO> ?

Thanks in advance,

Michael (author of the plug-in)

comments: author: Matt Michal
body: <https://mibexsoftware.atlassian.net/browse/SONARBOO-33>, thanks.


author: Michael R?egg _Mibex Software_
body: [@Matt Michal](/t5/user/viewprofilepage/user-id/510047)Hi. Just wanted to let you know that we now support both the MSBuild and the .NET Core Scanner.


Tags: addon-ch.mibex.bamboo.sonar4bamboo

sonarqube
Running many identical Bamboo agents with Docker
Asked by Alex Campos:

We're trying to run many unit-test jobs in parallel. Our Bamboo plan consists of one build job, followed by many (up to 40) unit test jobs, that may take long (up to 30 minutes each or more). We want to drastically reduce the time it takes to run these tests by having a lot of Bamboo agents running them in parallel.

We're using docker to spawn light-weight VMs, but we are wondering how to best use it:

Option 1) Many Bamboo agents running on the host machine. Each agent spawns a Docker container (Docker task in Bamboo), runs the test and then shuts down the container.

Option 2) Many detached Docker containers on the host machine, each running one Bamboo agent. We don't use the Bamboo Docker task, we just run the executable in each agent.

Have you faced the same problem? What option do you think will work best in the long term?


Answers:
author: Przemek Bruski
body: In Option 1, your builds will always start in a clean environment, so checkouts, Maven fetches etc will take longer to complete. This may be an advantage (stable builds) or a disadvantage. Option 2 has the reverse property.

In Option 2, you get the agent process isolation without modifications to your plans, which Option 3.

Note that you can also run multiple agents on the same host without Docker, just provide them with a separate home dir.


Tags: bamboo-administration
Is it possible to use Bamboo Cloud with Golang projects?
Asked by Jonathan Guthrie:

I can't see a good way to use Bamboo with Golang projects.

Am I missing something?

Thinking of moving back to Jenkins if I can't, and yet I hate Jenkins!


Answers:
author: Aleks Yenin (Polontech)
body: Hi Jonathan,

You may try <https://marketplace.atlassian.com/plugins/com.handcraftedbits.bamboo.plugin.go/server/overview>  
plugin for Bamboo Cloud.  

comments: author: Jonathan Guthrie
body: Unfortunately it doesn't look like it works on the cloud version... Unless I am missing something?


author: Sergey Podobry _Stellarity Software_
body: Bamboo Cloud doesn't support 3rd-party plugins.


author: Jonathan Guthrie
body: So, am I right then that my best option would be to spin up a new VM and run Bamboo that way?


Tags: cloud
git-lfs smudge %f failed 2
Asked by Neal Culiner:

Hello,

We have .sqlite files under LFS in our iOS project. Today we updated the repo with changes and now Bamboo is throwing an error.

```
30-Mar-2016 11:56:47Use `git lfs logs last` to view the log.30-Mar-2016 11:56:47error: external filter git-lfs smudge %f failed 230-Mar-2016 11:56:47error: external filter git-lfs smudge %f failed30-Mar-2016 11:56:47fatal: APDL.iOS/Databases/AppData.sqlite: smudge filter lfs failed30-Mar-2016 11:56:47Checkout to revision 2e740a67f94fcca0ae4044916e8decd3cb2e9ce5 has failed.
```

Any ideas how to resolve this? Bitbucket server has git lfs enabled and the Windows Server 2012 R2 server has the latest git and git-lfs installed.

Thank you.


Answers:
author: Neal Culiner
body: It looks like Bitbucket Server supported Git LFS before their CI system did. Bamboo does not support Git LFS (or NUnit 3, etc. etc.) and is just so far behind these days it's unfortunate!

<https://jira.atlassian.com/browse/BAM-17160>


author: sgoo
body: Hey Neal,

Would you be able to access the build agent and run `git lfs logs last `it should give you a more clear reason for why the smudge failed.

Thanks  
Scott.


Tags: bamboo-administration

bitbucket-administration

git

git-lfs
codedeploy fails running bash script
Asked by Jeff Pittelkow:

Hi guys,

I use Amazon CodeDeploy for my Bamboo build process. Out of the blue, CodeDeploy is failing when it runs my 'AfterInstall' bash scripts. What's odd is that this was working fine, and then suddenly it stopped working. Also, if I run CodeDeploy from within the AWS console, it works fine. The issue is only when Bamboo triggers CodeDeploy.

Again, the issue started out of the blue when the process was working and no changes were made.

CodeDeploy is finding and running the Bash file, but it throws this error and fails: **\[stderr\]/usr/bin/env: bash : No such file or directory**

Again, this works fine if I run it from CodeDeploy directly. Any idea of what could be going on or know of any changes in how Bamboo calls CodeDeploy?

Thanks!

-Jeff


Answers:
author: Jeff Pittelkow
body: FYI, this was caused by my elastic instance changing from a Linux image to a Windows image. Because of this, the file changed from a LF to a CRLF and added carriage returns to my bash files.

I fixed this 2 differnet ways:

1. I disabled all Windows options in my 'Image Configurations'.

2. In .gitattributes i added the line

   ```
   *.sh eol=lf
   ```


Tags: aws-code

cloud
No agents meet this job's requirement
Asked by Hui Zhao:

I have two tasks in the build plan. The first one is "Source Code Checkout". It worked well. Then I added the second task for docker.Then I got "No agents meet this job's requirement" error.

Agent.PNG  
[](https://community.atlassian.com/t5/Bamboo-questions/No-agents-meet-this-job-s-requirement/qaq-p/190829?attachment-id=6659){#link_11711fd3a6847a}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/6085/1/Agent.PNG){#display_11711fd3a6847a_0}


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: For docker to work, you might need an agent that has docker installed. Or might need other dependencies. Check the requirements tab to find out the capabilities needed.

comments: author: Hui Zhao
body: I clicked the requirement. There is a drop down menu. There is a Docker, should I select "exists" then ADD?


author: Jobin Kuruvilla [Adaptavist]
body: The tab is specifying the requirements for the build. You also need to have an agent that satisfies those requirements.


author: Hui Zhao
body: Local agent or remote agent? I want to push my code from my desktop to the remote Linux sever. The Linux server has docker API installed already.


author: Jobin Kuruvilla [Adaptavist]
body: It can be a local or remote agent, as long as it has all the required capabilities. Note that the docker job is used on a server where docker is installed. In this case, sounds like your remote linux server is the one!
Unable to find executable file
Asked by Hui Zhao:

I have a task which is to execute a PowerShell script. However the system can not find it.

```
Unable to find executable at C:\Source\dockerdemo\DockerDemo\src\DockerDemo\CustomDockerProfile.publish.ps1. Will try to run it anyway.
```

See the plan image.

script.PNG

After read <https://answers.atlassian.com/questions/11962663>

I used a command task. I got a different error:

E:\\bamboo-home\\xml-data\\build-dir\\DOC-DOC-JOB1\\CustomDockerProfile.publish.ps1

: The term 'E:\\bamboo-home\\xml-data\\build-dir\\DOC-DOC-JOB1\\CustomDockerProfile.

publish.ps1' is not recognized as the name of a cmdlet, function, script file,

or operable program. Check the spelling of the name, or if a path was

included, verify that the path is correct and try again.  
[](https://community.atlassian.com/t5/Bamboo-questions/Unable-to-find-executable-file/qaq-p/201141?attachment-id=2426){#link_116763f926e0e0}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/6376/1/script.PNG){#display_116763f926e0e0_0}


Answers:
author: Felipe Kraemer
body: Hi @Hui Zhao,

At the first glance it looks like this is a user permission issue. Can you please check if the system user running Bamboo has read/write/execute permissions in the script you're trying to run?

If you run Bamboo as Windows Service, please ensure that the [account configured in the service](https://confluence.atlassian.com/bamboo/running-bamboo-as-a-windows-service-as-the-local-user-416580754.html) has read/write/execute permissions.

I hope this helps!


author: pradeep_bitb
body: Adding a small point further, on the 'Log on as a service' window, remove your username and then add again. Worked for me. Thanks.


Tags: powershell
I want to write small description about my plan variables for other users or future reference, because sometimes name of the variable is not enough to describe its function.
Asked by Pardeep Bansal:

*This question is in reference to Atlassian Documentation: [Defining plan variables](https://confluence.atlassian.com/pages/viewpage.action?pageId=289276859)*

I want to write small description about my **plan variables** for other users or for future reference, because sometimes name of the variable is not enough to describe its function. Is there any way, that I can put some description comment about the plan variable?


Answers:
author: Bob Swift (personal)
body: See <https://jira.atlassian.com/browse/BAM-13140>.


Tags: plan

variable
How to keep Bamboo agent always online?
Asked by Wayne Chen:

*This question is in reference to Atlassian Documentation: [Locating important directories and files](https://confluence.atlassian.com/pages/viewpage.action?pageId=792305900)*

Hi there,

I am new to Bamboo cloud. And I just setup the remote agent in my build server. Somehow, I found it will automatically go offline aound 15 minutes. Did I miss anything or do anything wrong? My question is...

1. Is that normal for the agent goes offline automatically? How can I fix it?
2. Is there any way to restart it? Now I just use the installation command line everytime to restart it.

Thanks.

Regards,

wayne651x


Answers:
author: Wayne_MG
body: Thank you guys. I just figured out the problem by myself. Actually, what I need to do is just execute the command line "bamboo-agent-home/bin/bamboo-agent.sh start" to start the bamboo background process. Otherwise, the process will be stopped automatically if it is auto started by the installation.

Hope this also can helps others new to Bamboo. :smile:

comments: author: neha.chauhan
body: Hi Wayne,

I am facing the same issue where the bamboo remote agent goes offline after a specific interval resulting into job failures.

However, in my case, when I stop the services of 'Bamboo Remote Agent' from backend (services.msc), it is activated for a long time (during my working hours) and then it goes offline in my off time.

Could you please help with the steps to keep the remote agent always active?

Any help would be appreciated, I am so stuck right now.

Regards,

Neha


author: nagabalajiv
body: Hi neha,   

The same solution which I am also keep tracking. Did you find the solution now?


author: Luke Peterson [finder.com.au]
body: Are you using your own remote agent or an Elastic Bamboo agent? If it's the latter, then it sounds like expected behavior as the default timeout for idle Elastic Bamboo EC2 instances is set at 10 minutes. This can be modified in the **Elastic Bamboo configuration** screen under **Automatic elastic instance management**.


author: Jobin Kuruvilla [Adaptavist]
body: What do you see in the agent logs?


Tags: remote-agent
SQLPLUS Command Exit
Asked by Renjith:

Hi there everybody.

This question might be simple, but i tried searching and not getting the answer.

How do i tell sqlplus (configured as executable) in bamboo to exit when it is done executing the sql file?

I know that i can put an exit inside the sql file, but i want the sql file to be reusable also when included in a batch of sql files to be run. so i cannot put the exit inside a single file.

Is there a way to tell sqlplus to exit from the argument itself?

Thank you.


Answers:
author: rverschoor
body: Maybe this is helpful?

* <http://serverfault.com/questions/87035/run-oracle-sql-script-and-exit-from-sqlplus-exe-via-command-prompt>  


Tags: bamboo-administration
How to get release id in bamboo
Asked by Subramanian Olagappan:

Hi,

I have a deployment project with DEV/QA env and created releases in the project. Before deploying any build, I want to check if the release is approved.

Has anyone done this. Can you throw some light on how to achieve this.

I got the REST URL to find the status of any release using

/latest/deploy/version/{id}/status

This query required id and I am unable to find the ID for my release string (eg: 1.0.0-dev ). what i understood is release id is a unqiue id created for the deployment project / env and it is stored in database.

Any help is appreciated.

Thanks,

Subbu


Answers:
author: Subramanian Olagappan
body: Hi Alex,

Thanks.. had this in mind. I was looking for a clean way to get this done.

Regards,

Subbu

comments: author: Alexey Chystoprudov
body: What do you mean clean way?

You can call such REST calls

```
curl 'http://localhost:9087/bamboo/rest/api/latest/deploy/project/all' -u admin:admin -H "Accepts: application/json"
```

to get list of deployment projects and see what project id has each deployment project

Then

```
curl 'http://localhost:9087/bamboo/rest/api/latest/deploy/project/{deploymentProjectId}/versions' -u admin:admin -H "Accepts: application/json"
```

to get list of versions


author: srikanth
body: hi Alex/Subramanian,

I have the same requirement. In my opinion, what subramanian wanted was for next release , we could have used bamboo environment variable for getting the release versionId. I am not sure whether {deploymentProjectId} gets the versionId value at runtime.


author: Alexey Chystoprudov
body: Hello @Subramanian Olagappan,

Open created release details at Bamboo UI and look at URL: deploy/viewDeploymentVersion.action?versionId=1440874497

There you can get release id for REST call
Hide a custom field from screen but not affect existing resolved changes
Asked by Sam Evans:

Hi everyone and happy Friday.

I would like to edit a custom field in my 'Change' issue type from standard to Rich Text so i can add pictures.

Looks like the only way to do so is by creating another field and hide the previous one.

The field is 'Test Evidence' but understandably i don't want to remove this from closed issues.

Is there a way to have the custom field remain on closed issues? but hidden for new issues so i can create a new field with a similar name so there are no duplicate fields?


Answers:
author: Marc - Devoteam
body: Hi [@Sam Evans](/t5/user/viewprofilepage/user-id/5320793)

Is the current type Custom Field a text field and the new field will also be a text field?

Then you can also see the field configuration and change the renderer of the field.

See [here](https://support.atlassian.com/jira-cloud-administration/docs/configure-renderers/) for changing the renderer

Or does the new field uses another type of field type?


author: Arensa Prasta
body: you can keep it but at the issue layout can choose hide it when empty, so for the new ones you only show the new field.


author: Eugenio Onofre
body: Hi [@Sam Evans](/t5/user/viewprofilepage/user-id/5320793)

Welcome to the Atlassian Community.

You can achieve it by hiding the old field from the "view" and "create" screens in your active screen scheme, but leaving it for EDIT. This way, you will ensure the information is still stored and you can see it on filter results for example.

About the new field, since they have different names, you will not have any issues in having a similar one.

Please remember to accept this answer in case it helps you resolve your questions as it may also help other community members in the future.

Best Regards,  
Eugenio


Tags: cloud

jira-service-management

jira-service-management-cloud
Copy entire form to text field via automation
Asked by Lennart Roeser:

Hello,

i am looking for a way to convert an entire form into a text field.

Lets say i have a form with multiple fields and question. Essentially, i want to move the entire form (labels, questions \& answers) to a text field, lets say the description field of my issue.

I know i can access the form itself via smart values:

```
{{issue.properties."proforma.forms.i1"}} 
```

However, copying this over to a text fields gives me raw JSON.

Thanks!


Answers:
author: Eugenio Onofre
body: Hi [@Lennart Roeser](/t5/user/viewprofilepage/user-id/5404048)

Welcome to the Atlassian Community!

I am afraid you will need ScriptRunner to parse the JSON and format it into a readable text format. The script would:

* Extract each element from the JSON.
* Format these elements into a human-readable string (with labels, questions, and answers).
* Insert this string into the description field.

Please remember to accept this answer in case it helps you resolve your question as it may also help other community members in the future.

Regards,  
Eugenio


Tags: cloud

jira-service-management

jira-service-management-cloud
Auto-suggestion of Knowledge Base articles when filling out other fields
Asked by alison_perez:

Hi Atlassian community!

I have a set of articles in the Knowledge Base that are being auto-suggested every time a keyword gets entered in the Summary field.

The form has field called "Detailed Description of the Issue" in Paragraph format. I would presume that more keywords are going to be captured by this field.

Is there a way that the auto-suggestion feature can also be done with other fields?

Thank you!


Answers:
author: Eugenio Onofre
body: Hi [@alison_perez](/t5/user/viewprofilepage/user-id/4036863)

Unfortunately not. The auto-suggestion feature is based on the Summary field of the issue and there is no way to customize it.

Please remember to accept this answer in case it helps you resolve your questions as it may also help other community members in the future.

Best Regards,  
Eugenio

comments: author: alison_perez
body: Thanks for clarifying


Tags: cloud

jira-service-management

jira-service-management-cloud
Automating User Agent Input in Jira
Asked by ???:

Hi, I need some advice..

1. We plan to utilize the Jira Service Desk portal to handle 1:1 support from our app users. However, the challenge is to populate user agent information we collect into fields provided by Jira.

2. We are curious if there is a method to automatically fill in the information we collect, rather than relying on users to input data directly into specific fields provided by Jira.

3. While we think that it may be possible using Jira's API, we lack specific guidance on the implementation details.

We are curious about how to automatically populate the Jira fields with the user agent information we have collected. While we anticipate that this can be implemented using the Jira API, we need specific guidance on the implementation details.

Any insights or guidance would be greatly appreciated!


Answers:
author: Eugenio Onofre
body: Hi [@???](/t5/user/viewprofilepage/user-id/5401987)

I would recommend using a custom field to store the User Agent information and then have the tickets created through APIs. You can use the Create Issue API and populate the custom field with the user agent you collected from the user session:

<https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post>

Please remember to accept this answer in case it helps you resolve your question as it may also help other community members in the future.

Regards,  
Eugenio


author: Rebekka Heilmann _viadee_
body: Hi [@???](/t5/user/viewprofilepage/user-id/5401987)

What kind of information do you want to put into Jira fields?

Where is that information stored currently?


Tags: cloud

jira-service-management

jira-service-management-cloud
Automation rule for sharing issue
Asked by Jakub Szyma?ski:

Hello community.

Can I ask for help?

I made a project for customers for bussines traveling. I put na custom field "traveler" (user picker field).

How can I made a automation rule: "When issue created, and field "treveler" is not a reporter, then share issue with user from field traveler".

Thats what I made:

![traveler.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/300270i5853025D8052D0FD/image-size/large?v=v2&px=999 "traveler.jpg")

I got stuck towards the end on how to share with a person from the "traveler" field.

Please help :)


Answers:
author: Eugenio Onofre
body: Hi [@Jakub Szyma?ski](/t5/user/viewprofilepage/user-id/5202856)

In order to achieve this behavior, you will need to use a Smart Value as the value to be added on request participants. It would look something similar to the below image:

![Screen Shot 2024-01-12 at 07.35.43.png](https://community.atlassian.com/t5/image/serverpage/image-id/300290iB308D18652B3960F/image-size/large?v=v2&px=999 "Screen Shot 2024-01-12 at 07.35.43.png")

To do so, start typing {{ and then type the complete field id and property. By the end, click on the smartvalue option.

Please remember to accept this answer in case it helps you resolve your questions as it may also help other community members in the future.

Best Regards,  
Eugenio


author: Arensa Prasta
body: Hi [@Jakub Szyma?ski](/t5/user/viewprofilepage/user-id/5202856)   
I think the above shall work for your rule:   
![Screenshot_17.png](https://community.atlassian.com/t5/image/serverpage/image-id/300287i4A5F9D505AC117BD/image-size/large?v=v2&px=999 "Screenshot_17.png")

So when issue is created and reporter is not equal to the value of the traveler (note: adapt my customfield with yours. Let me know if you need help with that.), send email (i used the latter as just a notification means but you can choose whatever you would like.   
Let me know if it works.


author: Jakub Szyma?ski
body: Thank You so much. With You now i know what to do :)


Tags: cloud

jira-service-management

jira-service-management-cloud