youngmon/atlassian-qna huggingface dataset:
Unable to enable Bamboo specs, but only Java specs why is that ?
Asked by Nikolay Serev:

I am trying to see how to use bamboo specs, but currently even though I am running version 6.7 I only see export to java specs and not to yaml file. Is there a particular reason why is that ?


Answers:
author: Foong
body: Since there are only a limited configuration supported by Bamboo Specs YAML, there isn't any function in Bamboo to export to YAML file.

Need to build YAML file from scratch. Refer to the example at <https://docs.atlassian.com/bamboo-specs-docs/6.7.1/specs-yaml.html>


Tags: spec
Are there still corruption/compatibility issues using DbVisualizer with Bamboo's Embedded H2
Asked by timothy schmidt:

<https://confluence.atlassian.com/bamkb/bamboo-hsql-database-corruption-caused-by-dbvisualizer-372605421.html>

The KB above indicates driver compat issues causing corruption.

**1, Is this still an issue?**

2. The solution references a duplicating driver from a jar file

BambooInstall/webapp/WEB-INF/lib/hsqldb-1.8.0.7.jar

which has a locatoin \& naming convention which *seems* to be different than the one I see

D:\\BAMBOO\\bamboo-6.7.1\\bamboo\\atlassian-bamboo\\WEB-INF\\lib\\h2-1.4.194.jar

**2.1 Is this the same/correct file?**

The accompanying "instructions" :
> You just need to download and add the correct version of HSQL driver for DBVisualizer (Tolls -\> Driver Manager. Duplicate the existing HSQL driver and configure it to point to the newly downloaded version of HSQL driver), and use that version of driver when you need to connect to a Bamboo DB.

Are sufficiently unspecific enough to be somewhat confusing.

Are there any other clearer instructional links re. this issue, or could someone provide a more specific list of actions needed to effect the required configuration(s)?

Thanks!

Tim S.

P.S.

I'm using 6.7.1 of Bamboo and I'm using the 10.0.16 of DbVisualizer

> Product: DbVisualizer Free 10.0.16 \[Build #2874\]  
> OS: Windows Server 2012 R2  
> OS Version: 6.3  
> OS Arch: amd64  
> Java Version: 1.8.0_192  
> Java VM: Java HotSpot(TM) 64-Bit Server VM  
> Java Vendor: Oracle Corporation  
> Java Home: c:\\program files\\dbvisualizer\\jre  
> DbVis Home: C:\\Program Files\\DbVisualizer  
> User Home: C:\\Users\\S_xldeployrelease  
> PrefsDir: C:\\Users\\S_xldeployrelease\\.dbvis  
> SessionId: 101  
> BindDir: null


Answers:
author: Daniel Santos
body: Hi [@timothy schmidt](/t5/user/viewprofilepage/user-id/2177473),

That KB was designed to HSQL DB which was the old version of Bamboo embedded DB. As you may know, this database is not very safe, bing more susceptible to corruption in case of hardware or software instabilities. Newer versions of Bamboo are using H2 which should be more reliable then HSQL but still an unsafe DB that should only be only used for evaluation purposes. This DB should not be used in production environments. You should instead use Postgres, SQL Server, Oracle or MySQL.

In case you need to connect to H2 DB to check any data from your instance, I do recommend you using this article: [Accessing Bamboo's H2 embedded database](https://confluence.atlassian.com/bamkb/accessing-bamboo-s-h2-embedded-database-950800161.html?_cachebust=8424957049).

Answering your questions:
> **1, Is this still an issue?**

I can't answer this one with the data we have, but I would expect improvements from HSQL to H2.
> **Is this the same/correct file?**

As you already discovered the file is a little bit different, since the driver is now for H2. More details can be found in the doc shared above.

I hope I could clarify why you saw those differences.


Tags: h2
Should I be able to use Bamboo variables in port mappings for docker tasks?
Asked by Chris Harvey:

Hello,

The Bamboo UI does not allow me to use a Bamboo variable, e.g. ${bamboo.MY_GREAT_TCP_PORT} in a port mapping for a docker task configuration in a deployment project. It only allows digits.

This seems like an oversight to me, as so far all fields I've used have allowed bamboo variables. Does anyone know if this is deliberate?

Regards,

Chris


Answers:
author: Foong
body: Created bug report <https://jira.atlassian.com/browse/BAM-20245>

comments: author: Chris Harvey
body: Thanks Kah Loun!


Tags: docker
MAC OS X : Bamboo first time installation error on database creation
Asked by Cristian-Dumitru G?dea:

I downloaded Bamboo and followed the steps for an initial setup. (On Mac OSX)

When I click Express / Custom installation , the step when the database is initialised returns an error. (I know this because I also ran start-bamboo.sh in -fg mode)

I've tried installing with both Express and custom MySql setup.

Here is the copy of the atlassian-bamboo.log file:

<https://drive.google.com/file/d/10S2nZiB46yqWXxQ5A3oN5su6i_apeu9q/view?usp=sharing>

Thanks for the help.


Answers:
author: Foong
body: > 2019-01-14 11:30:59,247 INFO \[localhost-startStop-1\] \[lifecycle\] Starting Bamboo 6.7.2 (build #60706 Mon Dec 10 15:44:03 EET 2018) using Java 11.0.1 from Oracle Corporation

Bamboo started with JDK 11 that is not supported as stated in [Supported platforms](https://confluence.atlassian.com/bamboo/supported-platforms-289276764.html#Supportedplatforms-Java)

Install JDK 8 in the machine and configure [JAVA_HOME](https://confluence.atlassian.com/bamboo/installing-bamboo-on-linux-289276792.html#InstallingBambooonLinux-Beforeyoubegin) environment variable to use JDK 8 before starting Bamboo again

comments: author: Cristian-Dumitru G?dea
body: Thanks so much, that fixed it. Stupid overlook on my part. I owe you a beer :)


Tags: install

mac
How do I have a file show up in the artifacts tab of a build job?
Asked by Raul Alicea:

The Bamboo build job is a Bash script.


Answers:
author: Raul Alicea
body: I tried that. Did not work.

Will artifacts be saved on branches?

Trying with the option of "Clean up branch automatically" unchecked, to see if that is the issue.

comments: author: Daniel Santos
body: Hi [@Raul Alicea](/t5/user/viewprofilepage/user-id/2546275)

* Have you found any errors in the build logs?  
  This is the page for the build logs:

  ```
  http(s)://<BAMBOO_URL>/browse/<BUILD-KEY>/log
  ```

<!-- -->

* In the build log you will be able to find the build working directory. It should be a line like:

  ```
  simple 07-Jan-2019 14:01:31 Build working directory is <YOUR_PATH>
  ```

  Please navigate to this directory and check if the files used to create the artifact are really there.

<!-- -->

* Please share here your artifact definition configuration. I'll need to check what is the copy pattern used.

Please try to answer in this same thread to avoid multiple separated answers.


author: Daniel Santos
body: I also forgot to answer your question.
> Will artifacts be saved on branches?

Yes, every plan branch will have it's own artifacts.


author: Daniel Santos
body: Hi [@Raul Alicea](/t5/user/viewprofilepage/user-id/2546275),

You will need to create an artifact definition at **Plan Configuration \>\> Job \>\> Artifacts \>\> Create artifact** as described in [Configuring a job's build artifacts - Atlassian Documentation](https://confluence.atlassian.com/bamboo/configuring-a-job-s-build-artifacts-289277071.html).

The artifact definition will basically tell what will be the artifact name, where the files will be located and which ones should be copied.
How to remove unexisting capabilities from the Requirements tab?
Asked by gislinux@sicpa.com:

When I configure the requirements for a plan, I can browse through a bloated list of unused unwanted capabilities that we do not have or use in our company like Grails or phpUnit. There are also versions that are not (and have never been) installed on our agents like Node.js 4,5,6,7,8,

This makes the list unusable and forces us to maintain an alternate documentation.

How do I remove these useless unwanted capabilities?


Answers:
author: Foong
body: Created bug report <https://jira.atlassian.com/browse/BAM-20244>


Tags: capability
Bamboo REST API get list of responsible people on failed build result
Asked by Brad Lajoie:

Have been googling for this for a little while now, searching atlassian community articles, and digging through Bamboo REST API documentation. There doesn't seem to be a way to get the list of responsible people on a build result e.g. when a build result is in a failed state? Is there any way to get the list of responsible people for a given build result?


Answers:
author: Daniel Santos
body: Hi [@Brad Lajoie](/t5/user/viewprofilepage/user-id/279552),

We don't have a REST endpoint to return this information and for this reason I've created this feature request: [\[BAM-20239\] REST API to check responsibility from a broken build - Create and track feature requests for Atlassian products.](https://jira.atlassian.com/browse/BAM-20239)

I also created the below query in case you want to extract this information programatically from the Bamboo DB:

```
SELECT
 A.*,
 "USERNAME",
 "USER_WHO_UPDATED",
 BUILD_TYPE,
 CREATED_DATE,
 BUILD_KEY,
 BUILD_NUMBER,
 BUILD_STATE,
 LIFE_CYCLE_STATE,
 BUILD_DATE,
 BUILD_CANCELLED_DATE,
 BUILD_COMPLETED_DATE,
 TRIGGER_REASON,
 REBUILD
FROM
 "AO_7A45FB_AOTRACKING_USER" TU
LEFT JOIN
 AUTHOR A ON A.LINKED_USER_NAME=TU."USERNAME"
JOIN
 "AO_7A45FB_AOTRACKING_RESULT" TR ON TR."LINKED_TRACKING_ENTRY_ID"=TU."LINKED_TRACKING_ENTRY_ID"
JOIN
 BUILDRESULTSUMMARY ON BUILDRESULTSUMMARY_ID="RESULT_SUMMARY_ID"
```

Please notice that some names are in quotes because those tables/columns are in capital letter in Postgres (which is the DB I used in my tests) so you may need small adjustments depending on your DB type.

I hope that helps.

comments: author: Brad Lajoie
body: Awesome, thanks Daniel! That SQL will probably work for us for the time being. Will keep an eye on BAM-20239


author: Daniel Santos
body: Good to know! =\]
Branch plans on remote agents
Asked by Ari_Mahpour:

When Bamboo does a branch build of a project with submodules, it does some sort of merging on the bamboo server (which doesn't have ssh keys setup) and not on the build agent (you can tell by the file path in the error message):

```
Merge command error: com.atlassian.bamboo.repository.RepositoryException: RES-SESR2-1: Checkout to revision 21e93ae15004006958baf84e4daa43c27434c191 has failed.command ['C:\Program Files\Git\cmd\git.exe' submodule update --init --recursive] failed with code 1. Working directory was [C:\PROD\HOME\xml-data\build-dir\serverSide\RES-SESR2-1\mergeWorkspace]., stderr:
Submodule '*******/src/libs/TerminalCommands' (ssh://git@********:7999/frcm/terminalcommands.git) registered for path '*******/src/libs/TerminalCommands'
Cloning into 'C:/PROD/HOME/xml-data/build-dir/serverSide/RES-SESR2-1/mergeWorkspace/*******/src/libs/TerminalCommands'...
Warning: Permanently added '[********]:7999,[************]:7999' (RSA) to the list of known hosts.
git@***************.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'ssh://git@bitbucket.********.com:7999/frcm/terminalcommands.git' into submodule path 'C:/PROD/HOME/xml-data/build-dir/serverSide/RES-SESR2-1/mergeWorkspace/***********/src/libs/TerminalCommands' failed
Failed to clone '*************/src/libs/TerminalCommands'. Retry scheduled
```

Branch builds without submodules, however, execute entirely on the build agent according to the logs.

How can i get branch builds with submodules to execute only on the build agent?


Answers:
author: Daniel Santos
body: Hi [@Ari_Mahpour](/t5/user/viewprofilepage/user-id/988474),

Bamboo will not mange the remote agent submodule SSH keys for you, unfortunately. There is an improvement request for this: [\[BAM-11369\] If I want to use git submodules then I shouldn't have to upload and configure SSH keys on each Bamboo Agent.](https://jira.atlassian.com/browse/BAM-11369)
> How can i get branch builds with submodules to execute only on the build agent?

You will need to manually manage the SSH keys for each of your repository submodules.
whats happens when we disable the bamboo security feature to "Process Bamboo Specs in Docker"?
Asked by Sugendh K Ganga:

What happens if I am not Isolating the processing of Bamboo Specs by disabling this feature?

In my environment I cannot/don't want to install docker on my bamboo server(because bamboo itself is containerized, since docker in docker can get a bit messy). So in order to process the bamboo specs, i see that we have to disable the security feature to "Process Bamboo Specs in Docker".

I see that Atlassian doesnt recoment doing this. Can someone please explain me why and What are the cons of disabling this security settings?

[@Alexey Chystoprudov](/t5/user/viewprofilepage/user-id/781646) Kindly help me closing this.

Thanks!


Answers:
author: Alexey Chystoprudov
body: When Bamboo see changes in repository it runs such steps:

1. Checkout source code
2. Run Maven tool to compile and run Bamboo Specs generator to produce internal YAML
3. Read YAML and build plan/deployment structure and apply them to configuration.

Step #2 is very danger from security point of view. It takes Java code outside of Bamboo control (remote repository) and executes it inside Bamboo server. To make sure environment is fully isolated Bamboo team recommends to use Docker to divide Maven execution from Bamboo Server environment.

If you can't use Docker then Bamboo Server will try to do the most safe action and run Maven with custom Java Security Manager which don't allow to access network, execute other applications or read/write files outside of working directory by Java code. But we think that this barrier might be not enough to make you server fully secured.


Tags: docker

security

spec
how to update branch to master in job?
Asked by Tester Bankiru:

Hello.

Please help. Use bamboo 5.x I have to create job for update branch last version of origin/master. How do it?

I tried to use sub directory \& script with command line (git command). Example of my script

git fetch origin master  
git checkout branch1  
git merge origin/master  
git push


Answers:
author: Daniel Santos
body: Hi [@Tester Bankiru](/t5/user/viewprofilepage/user-id/2537059),

* What exactly is the version you are running there?
* Have you tried the Bamboo branch updater feature ([Branch updater - Using plan branches](https://confluence.atlassian.com/bamboo/using-plan-branches-289276872.html#Usingplanbranches-Branchupdater)) ?

Bamboo has a repository cache to run and update builds faster. For this reason, if you need to do this using a script, you will have to perform some adjustments in the local source repository used for the build as described in the following documents:

* [How to commit and push to a Git repo during a build - Atlassian Documentation](https://confluence.atlassian.com/bamkb/how-to-commit-and-push-to-a-git-repo-during-a-build-720641378.html)
* [How to push to repository under SSH protocol using Script task - Atlassian Documentation](https://confluence.atlassian.com/bamkb/how-to-push-to-repository-under-ssh-protocol-using-script-task-747831642.html)

I hope it helps.
Bamboo checking out branch revision when it should be checking out trunk only
Asked by Steven Miller:

I have a weird issue with a bamboo build I have setup. The first step is to checkout the latest revision in the trunk of our SVN repo.

Looking at the logs after the job completes, I see it checking out \\trunk but then it lists the revision number as something like 667 (or the latest rev from a branch), when the latest revision committed to the trunk would be 655.

I can't find any reason as to why this is happening. Am I overlooking something obvious?

EDIT: I will also add that I have been running manual builds. Would this cause it to pull whatever is the latest rev? I have a repo polling action setup so I can wait until someone merges with the trunk to see what rev that build pulls.

See photos for the config of the repo (which is used by other projects without any of these issues) and the revision named in the build logs vs the actual latest branch revision.

![bamboo3.png](/t5/image/serverpage/image-id/42093iF584740FD857033C/image-size/large?v=v2&px=999 "bamboo3.png")![bamboo2.png](/t5/image/serverpage/image-id/42092i382BB8AC1A2DB6FF/image-size/large?v=v2&px=999 "bamboo2.png")![bamboo1.png](/t5/image/serverpage/image-id/42091i4F0EAF25FA7A4C86/image-size/large?v=v2&px=999 "bamboo1.png")


Answers:
author: Foong
body: Its a limitation in Bamboo. It only checkout the global repo revision.

Feature request <https://jira.atlassian.com/browse/BAM-10396>


Tags: svn
Approvals notification automation
Asked by shivani shirguppi:

I have created an automation to send the email notifications with list of pending approvals.

I want to send this to L2 Approver(User will be defined by customer). How to write the JQL so that only particular user's approval list should go to that particular user. Other's should not go.

![Screenshot 2024-04-29 130340.png](https://community.atlassian.com/t5/image/serverpage/image-id/321010i6F66E7C5ECD2A184/image-size/large?v=v2&px=999 "Screenshot 2024-04-29 130340.png")![Screenshot 2024-04-29 130326.png](https://community.atlassian.com/t5/image/serverpage/image-id/321011iBC672008378A24D8/image-size/large?v=v2&px=999 "Screenshot 2024-04-29 130326.png")![Screenshot 2024-04-29 130311.png](https://community.atlassian.com/t5/image/serverpage/image-id/321012i0428C30037557274/image-size/large?v=v2&px=999 "Screenshot 2024-04-29 130311.png")


Answers:
author: Sudarsana G
body: Try this

project = "Your Project" AND status = "Pending Approval" AND L2_Approver = "{{issue.L2_Approver}}"

Replace `"Your Project"` with the name of your project, `"Pending Approval"` with the status where approvals are pending, and `"L2_Approver"` with the name of your custom field that stores the L2 approver.

comments: author: shivani shirguppi
body: [@Sudarsana G](/t5/user/viewprofilepage/user-id/5374207)

Please let me know if anything is wrong in the JQL that I am using

project = Marketing AND status = "L2 Approval Pending" AND "L2 Approver\[User Picker (single user)\]" = "{{issue.L2 Approver}}"

This is not working and notifications are not going out


author: shivani shirguppi
body: [@Sudarsana G](/t5/user/viewprofilepage/user-id/5374207) please help


author: Sudarsana G
body: Can you check audit log and give if there are any errors, also try this project = Marketing AND status = "L2 Approval Pending" AND "L2 Approver\[User Picker (single user)\]" = "\<insert username or user key here\>"


Tags: cloud

jira-service-management

jira-service-management-cloud
How can I use post function to attach forms on issue transition?
Asked by Jira Admin Team:

Currently, we are trying to find a Jira add-on or app that can be a substitute to Jira Automations (see image below). However, we can't find an app that can attach a form on issue transition.

We have tried the following apps and scoured their documentation on anything related to this, however we found nothing:

* Jira Workflow Toolbox
* ScriptRunner
* Power Scripts

![add-form.png](/t5/image/serverpage/image-id/320988iD32549714EEEF344/image-size/large?v=v2&px=999 "add-form.png")


Answers:
author: Susan Waldrip
body: Hi [@Jira Admin Team](/t5/user/viewprofilepage/user-id/5412123) , I apologize for asking the obvious, but in your post image the Forms field is blank -- did you choose at least one form and then run the rule? Just want to check, because your automation looks right. If you did specify a form(s) when you actually tried this, would you please post a screenshot of the Rule Details for the first part of the rule (click on the When: Issue Transitions part) so we can see that logic, as well? Thanks.


Tags: cloud

jira-service-management

jira-service-management-cloud
JIRA align activation
Asked by Tigran Rumyan:

Does anyone know how to activate Jira align on cloud?


Answers:
author: Ahmet Kilic _catworkx
body: Hi [@Tigran Rumyan](/t5/user/viewprofilepage/user-id/4600775)

Jira Align activation works on demand by Atlassian. It is working other than the products available in the cloud.

You can reach out to Atlassian through the link below:

<https://www.atlassian.com/software/jira/align#contact>

As an Agile at Scale Atlassian Partner we, catworkx, would be also happy to enable you into the product. Don't hesitate to reach out to us at agile@catworkx.com

Kind regards,

Ahmet

comments: author: Tigran Rumyan
body: Thanks for the answer.


author: Ahmet Kilic _catworkx
body: You're always welcome in the community. :)


Tags: access

align

cloud

jira-align

jira-service-management

jira-service-management-cloud

zzz
Moving Tickets from Business Board to Software Board
Asked by philipf:

Hello,

Since I can't have two workflows in a business project, I am going to recreate the board that I need to have multiple workflows as a software project.  

I have already seen that I can't copy the project settings from a business project to software project. I can just update the schemes and add the workflows I need myself.   

Few questions:

1. Is there any to keep the ticket numbers. I was thinking that maybe if I just create and delete the numbers that no longer exist, that will do it. SO basically starting at ticket XXX-39. I am hoping there is a cleaner way to keep the ticket numbers?

2. I should be able to after I move the tickets to the new project, delete the old project and then change the ticket key back to the old one

- as you can see, I am trying to make this change not noticable to users.

3. Lastly, if I move tickets from one project to another, will any links still work (as I assume that Jira would know that that old link now relates to the new ticket number, but we all know what happens when you make assumptions).

Thank you for all your help


Answers:
author: John Funk
body: Hi Philip,

You CAN create multiple workflows for business projects (Jira Work Management projects). If your issue is that you can't see issues from multiple workflows on a Jira Work Management built-in board, then you can create a Jira Software board that shows the issues. You don't need to move the issues to a Jira Software project.

Follow this article to see how to achieve this:

<https://community.atlassian.com/t5/Agile-articles/Creating-a-Second-Agile-Board-for-Team-Managed-or-JIra-Work/ba-p/2115018>


Tags: cloud

jira-service-management

jira-service-management-cloud