youngmon/atlassian-qna huggingface dataset:
Where can I find the 'Integrating builds with your issues workflow' documentation?
Asked by nong.zhi:

<https://confluence.atlassian.com/bamboo/integrating-builds-with-your-issues-workflow-781395591.html#Integratingbuildswithyourissuesworkflow-modifybuilds>

this url link not find , where can found it ?


Answers:
author: Steffen Opel _Utoolity_
body: Good question, somehow this URL seems gone, and the version navigator within the Bamboo docs seems broken (e.g. an [older version for Bamboo 5.9](https://confluence.atlassian.com/bamboo059/integrating-builds-with-your-issues-workflow-800858400.html) offers to switch to 6.6, but it does not work), hope someone from the Atlassian team takes note and fixes this.

That being said, you can find the current version under [Integrating builds with your issues workflow](https://confluence.atlassian.com/bamboo059/integrating-builds-with-your-issues-workflow-800858400.html).

comments: author: nong.zhi
body: many thanks\~

there's another problem about **Bamboo-specific transition properties**

set build.passed.transition? build.failed.transition on property of workflow transition, but after bamboo build over, can not transition current workflow status to next workflow status according to the bamboo build status "Success" or "Failed", can u pls help on it ?
bamboo specs automatically running with permission denied
Asked by Chris Johnston:

Whenever I push a bamboo spec plan to bamboo server and it attempts to automatically load the plan, it fails due to the following error:

\[ERROR\] Failed to execute goal com.atlassian.bamboo:bamboo-specs-runner:6.3.2:run (default-cli) on project bamboo-specs: Execution default-cli of goal com.atlassian.bamboo:bamboo-specs-runner:6.3.2:run failed: access denied ("java.lang.RuntimePermission" "getProtectionDomain") -\> \[Help 1\]

When the plans run automatically, i notice to maven it passes -Dspecs.useSecurityManager=true.

If I log into the build server, clone the repo and run this command by hand, it fails just as above. If I set useSecurityManager=false though and provide a .credentials file, everything works fine.

What does this setting do and how can I fix it so that plans pushed on the monitored branch actually update automatically? I have the repository configured in bitbucket with SSH keys enabled and the build account can clone / update the repository just fine for everything else.


Answers:
author: Alexey Chystoprudov
body: Bamboo has custom SecurityManager to avoid malicious Java code to be executed at Java VM of Bamboo Server. It looks like your Bamboo Specs code tries to use forbidden methods. If you believe you need it this code to be executed at Bamboo consider to use Docker to run Bamboo Specs or turn off Security Manager.

It can be done at Administration \> Security configuration

comments: author: Chris Johnston
body: I'm running Bamboo 6.6.1 and the options available do not match the documentation. The options are Enable Repository Stored Specs and Process Bamboo Specs in Docker. There is no "Enable secure Specs processing" option as documented.

This server does not have internet access, and does not have docker. Installing docker and creating a local docker image share is not possible as getting authorization for all of that in our build environment will take forever.

Further, can you elaborate on "forbidden methods"? The build is pretty basic and does not do the things mentioned in the docs. The main() method is unchanged from the auto-generated one.


author: Alexey Chystoprudov
body: Thanks for you environment details.

I think it's better to continue discussion at support ticket to gather more details about code, operation system and Java version you use. Please raise a support request at support.atlassian.com


author: Lukas_Lipavsky
body: Has this been solved somehow? Is there any workaround?

I just encountered same issue in bamboo server 6.10.4 (only difference is that in my case it is "java.lang.RuntimePermission" "accessDeclaredMembers") and it seems that running in build specs in docker setting does not help as it obviously uses same security manager.

Is there some way how to make it work?

Thanks


Tags: bamboo-administration

spec
How is job priority handled between plans with multiple remote agents?
Asked by Samuel Chow:

If multiple plans each have multiple jobs, is the priority of job handled in such a way that all the plan that starts first has all of it's jobs put in the queue first, then whatever next plan is started has all of its job added to the queue?   

Some corner cases are remote agent capabilities must be available for the requirements of a job, so a job from another plan could be run first. Another corner case is users can manually edit build queues.

<br />

Am I missing anything?


Answers:
author: Gabriel Ribeiro
body: Hi Samuel,

The queue will be processed top-down based on agents availability. if you have a job that requires a specific capability that is only available in one agent and this agent is currently busy, it will be left in the queue until the agent becomes available but all other agents will continue processing all subsequent jobs:

![buildQueue.gif](https://community.atlassian.com/t5/image/serverpage/image-id/27497iF34F19E66C69E6EC/image-size/large?v=v2&px=999 "buildQueue.gif")

In the gif above you'll see the behavior I mentioned, note that all jobs are being processed and the ones that have a specific requirement are left behind until the agent capable to build it becomes available.

If the user manually edits the queue, as expected, Bamboo will respect the new order but the same behavior from the example above will be persisted.

Let us know you if you have other question.

thanks.
How can I use Bamboo on Windows to checkout Unix-style?
Asked by Volker R?ckel:

Hello,

I'm working as a consultant on a project using Bitbucket and Bamboo (**both installed on Windows**). Neither did I install the tools, nor do I have direct access to the installation, but I can make requests for config changes. Here's the problem:

I need to build an artifact which is supposed **to be used on a Linux machine**. While I can properly checkout text files using Git Extensions (with core.autocrlf=input) on my local(!) Windows machine and verify that in the repo the files have Unix-style line endings (LF), the artifact produced by my Bamboo build plan (using "Source Code Checkout" task) contains Windows-style endings (CRLF), which breaks my deployment process on the Linux box.

How can I influence the behaviour of the "Source Code Checkout" task in my build plan to enforce Unix-style line endings (like setting core.autocrlf to input or false)?


Answers:
author: Foong
body: Create **.gitattributes** file in the repository with the following content:

    * text eol=lf

comments: author: Volker R?ckel
body: Thank you so much! So far I only considered only git config, but your solution is just perfect for my case, appreciate it!
Bamboo not connecting to mapped drive
Asked by Mark Beynon:

Hi,

I have a Bamboo inline script that does not connect to the the mapped X drive and gives the error;

|----------------------|-----------------------------|
| 16-Jul-2018 15:30:08 | 0 File(s) copied            |
| 16-Jul-2018 15:30:08 | Invalid drive specification |

The script;

*@echo on*   
*set copycmd=/Y*   
*echo working dir ${bamboo.build.working.directory}*   

*echo copying the release from centos to release folder*   

*xcopy /s /i /y X:\\cdk.pl ${bamboo.build.working.directory}\\releases\\64Bit*   

*rem xcopy /s /i /y ${bamboo.build.working.directory}\\releases\\64Bit\\cdk.pl %SdriveHF2%\\64bit*

The drive is mapped correctly on the host machine and the xcopy command works from the command line using xcopy.

The mapping is to a unix box. This used to work but I suspect a recent upgrade to Bamboo has broken things.

### Bamboo version information {#toc-hId-1623686588}

Version 5.15.5

Build number 51518

Build date 3/28/17

Many thanks,

Mark.


Answers:
author: Gabriel Ribeiro
body: Hi Mark,

I'm not sure if the upgrade itself is responsible for the issue you're seeing. Script tasks are external processes and Bamboo has no control over what is happening there.

What could possibly be happening in your case is that the user you're using to start the Bamboo service doesn't have the **X:** drive mapped, since the script will run using this same user, the xcopy command will fail.

Based on the description you provided, I'm assuming you're running Bamboo on a Windows machine so, you can try to start the service with a local user and make sure the **X** drive will be available for this specific user during the build execution. You will find the instructions on how to change the user used to start Bamboo in the documentation below:

* [Running Bamboo as a Windows service as the local user](https://confluence.atlassian.com/bamboo/running-bamboo-as-a-windows-service-as-the-local-user-416580754.html)

let us know the result.

thanks.


Tags: configuration
Is bamboo adding things to my release number?
Asked by John Gill:

Bamboo Server 6.1.1  

Doing a build then auto firing a release to dev server.   

On the deployment we've been using the Release Versioning tool that is provided within Bamboo.   

We've been using it for months then all the sudden our versioning has changed.   

What we have in the text field for releases is \`0.0.${bamboo.buildNumber}\`  

what we are getting is \`0.0.\*\*\*_(2)\`  

When we hard code a release as \`0.0.95\` we get \`0.0.95_(2)\` So it's not the variable.   

See screen cap for all release variable setting page.   

![Screen Shot 2018-07-16 at 5.36.32 PM.png](/t5/image/serverpage/image-id/27060i290E7959380F8542/image-size/large?v=v2&px=999 "Screen Shot 2018-07-16 at 5.36.32 PM.png")

The problem is I don't know where to go to turn off whatever this is, and no one remembers turning anything like this on. It is not reflected any where else that I can find outside of releases, the builds and deploys don't include it anywhere that I can find.


Answers:
author: Marcin Gardias
body: That happens if a release with identical name already exists. This might be because particular trigger configuration you currently have or because the deployment was linked to different build plan before.

comments: author: John Gill
body: Thank you this is the correct answer! Wish this was more clear in the release versioning page.
Bamboo command line issue
Asked by rouslan_abramov:

I have created run.bat file contains command: C:\\sym\\symchk.exe /os /if C:\\work\\chrome.dll /su SRV\*C:\\work\\67.0.3396.99_x64\*<http://chromium-browser-symsrv.commondatastorage.googleapis.com>. After i have created bamboo task:Command, as parameter i have added run.bat. This task failed.By HttpAnalyzer i see it doesn't try to connect to link from command line. Last:If i run run.bat from cmd.exe manually,it's working, i see http request in HttpAnalyzer,it downloads pdb file successfully.


Answers:
author: rouslan_abramov
body: Solved by run this command in current user session,by default, task runs in session 0


author: rouslan_abramov
body: I have found it works if tomcat8.exe run as console,by instalation it run as service.


author: rouslan_abramov
body: I have tried to run this command in Bamboo development version ([localhost:6990/bamboo),works](http://localhost:6990/bamboo),works) as expected, it downloads the pdb file successfully
Bamboo Deployment - How to deploy parallelly to Environments and run tasks parallelly
Asked by Venkat Pasula:

Hello All,

We are using Bamboo 6.4.0. We have Bamboo Deployment Plan which has multiple environments , say QA-ENV1 , QA-ENV2 . Each Environment has multiple tasks as show below :

**QA-ENV1** \> TaskQA1 \> TaskQA1

**QA-ENV2** \> TaskQA2\> TaskQA2

Here is what I am trying to do . I want to deploy to QA-ENV1 and QA-ENV2 Environments parallelly . And within each Environment I want to run the tasks parallelly.

Can someone suggest how to achieve this.


Answers:
author: Gabriel Ribeiro
body: Hi Venkat,

If you have available agents, your artifacts will be deployed to all environments in parallel (it will use a separate agent for each environment).

One thing I'm afraid that will not be possible right now is to run tasks in parallel, it would be achievable if we had something similar to Jobs (currently available only on build plans) also available on deployment plans.

We do have an open improvement request asking for something very similar:

* [BAM-17089 - Deploy to multiple machines in parallel](https://jira.atlassian.com/browse/BAM-17089)

I encourage you to vote on and watch the Improvement Request to increase its visibility and ensure you're kept in the loop with any future updates.

thanks.


author: Venkat Pasula
body: [@Gabriel Ribeiro](/t5/user/viewprofilepage/user-id/352687) thank so much for your reply.

Hope the improvement request BAM-17089 will be implemented soon.


Tags: deployment

environment

parallel

task
How does one file a bug request against Bamboo?
Asked by stephen_leavitt:

I was hoping to open an issue at jira.atlassian.com for Bamboo, and while I can see issues there, it does not allow me to select Bamboo as the product to open an issue against.

I was hoping to have the Spotify Docker client updated in a future release so it doesn't have to be done manually. docker-client-8.10.1-shaded.jar (which ships with Bamboo 6.6.1) appears to have partial/incomplete/broken support for outbound access through an HTTP proxy (Constantly receive "Expected authority at index 7: http://" error message when using Docker push/pull tasks), and this seems to be solved by using docker-client-8.11.7-shaded.jar (and appropriate entry with correct MD5 sum in atlassian-bamboo/WEB-INF/classes/hash-registry.properties). The changelog up to 8.10.1 shows fixes for HTTP proxy, but 8.11.2 and 8.11.3 show further proxy fixes as well that appear to address the issues. It would be nice if future releases did not require manually updating this JAR file to get full HTTP Proxy functionality with the Spotify Docker client.  

I'd happily open an issue in jira.atlassian.com for this if it would let me select Bamboo as a product :)


Answers:
author: Marcin Gardias
body: Thank you for your report.

There are 2 channels you can use to report problems with Bamboo, one is this very page second is Atlassian Support.

I opened a new bug to track the Docker issue: <https://jira.atlassian.com/browse/BAM-19987>

comments: author: stephen_leavitt
body: Thank you for opening a new JIRA issue for me regarding this. Glad to know I wasn't going crazy trying to open an issue against Bamboo myself. :)
How to send customized mails
Asked by Monica:

How to send customized mails from task configuration


Answers:
author: Jeyanthan I
body: Hi Monica,

If your intention is to modify the content of your Bamboo notifications that sends email updates upon build success/failure, you can do so for each of the notification types as below.

The notification templates reside in **WEB-INF/classes/notification-templates/**

All you need to do is to copy the respective notification template into the **{BAMBOO_HOME}/****`templates/notification-templates`** folder and make changes to them accordingly.

This is explained in [this page]( https://confluence.atlassian.com/bamboo/modifying-notification-templates-289276982.html).

If you wanted to send emails from a script task within your plan, you can do so with the respective mail agent like below:

```
echo "Subject: sendmail test" | sendmail -v user@email.com
```

comments: author: Monica
body: Hi Jeyanthan,

Is there any possible way to change the predefined events which appears under Add notification option?  

Other one is, I have tried the inline script task method but no luck. How to configure sendmail and the smtp server for this.


author: Jeyanthan I
body: Hi Monica,
> Is there any possible way to change the predefined events which appears under Add notification option?

You can only use the notification options available in your plan configuration [explained here](https://confluence.atlassian.com/bamboo/configuring-notifications-for-a-plan-and-its-jobs-289276973.html).
> Other one is, I have tried the inline script task method but no luck. How to configure sendmail and the smtp server for this.

Configuring sendmail can be found on [their documentation](https://sendmail.org/~ca/email/doc8.12/op.html). Googling it for your operating system should give you more practical steps on how to set this up.

Once configured, you may test it outside Bamboo via command prompt and then use the same using a script task within your plan.


author: Monica
body: Hi Jeyanthan,

Thanks for your answer. I have another doubt of adding cc for mail notifications. Is there any possible way to add cc recipient for the mail notification.


author: Jeyanthan I
body: Hi Monica,

There is no option to CC someone in a notification. You may have to add this user manually to the Notifications section in the respective Plan configuration, so that they are notified on the events you have configured.


author: Monica
body: Thanks for your suggestions Jeyanthan


author: Monica
body: Hi Jeyanthan,

We couldn't able to send mails to external DLs. How this can be done. Provide some input on this as well.

Thanks,

A.Monica


author: Jeyanthan I
body: Hi Monica, You may have to contact your system administrators for this.


Tags: email
How to create a parameterised job with choice parameter & trigger a build
Asked by Monica:

Is there any option just like Jenkins, where we can create a paramterized job with choice parameter to trigger another build based on the values provided?


Answers:
author: Florent Curet
body: Monica, have you find a solution?


author: Foong
body: Use Plan Variable, Script task and this [REST API](https://docs.atlassian.com/atlassian-bamboo/REST/6.2.5/#d2e2106)
Bamboo install error on windows (x64)
Asked by Luigy:

Hello,

I have JRE and JSE 10 and im having the folowing issue:

```
Exception:

java.lang.IllegalArgumentException: object is not an instance of declaring class
?? ?at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
?? ?at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
?? ?at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
?? ?at java.base/java.lang.reflect.Method.invoke(Unknown Source)
?? ?at com.install4j.runtime.installer.helper.ClasspathModificator.addClassPathInt(Unknown Source)
?? ?at com.install4j.runtime.installer.helper.ClasspathModificator.access$000(Unknown Source)
?? ?at com.install4j.runtime.installer.helper.ClasspathModificator$1.run(Unknown Source)
?? ?at com.install4j.runtime.installer.helper.comm.actions.RunAction.execute(Unknown Source)
?? ?at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionDirect(Unknown Source)
?? ?at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionInt(Unknown Source)
?? ?at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeAction(Unknown Source)
?? ?at com.install4j.runtime.installer.helper.ClasspathModificator.addClassPath(Unknown Source)
?? ?at com.install4j.runtime.installer.helper.InstallerUtil$2.run(Unknown Source)
?? ?at com.install4j.runtime.installer.helper.comm.actions.RunAction.execute(Unknown Source)
?? ?at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionDirect(Unknown Source)
?? ?at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionInt(Unknown Source)
?? ?at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeAction(Unknown Source)
?? ?at com.install4j.runtime.installer.helper.InstallerUtil.loadJREDeployLibs(Unknown Source)
?? ?at com.install4j.runtime.installer.controller.Controller.start(Unknown Source)
?? ?at com.install4j.runtime.installer.Installer.runInProcess(Unknown Source)
?? ?at com.install4j.runtime.installer.Installer.main(Unknown Source)
?? ?at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
?? ?at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
?? ?at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
?? ?at java.base/java.lang.reflect.Method.invoke(Unknown Source)
?? ?at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
?? ?at com.exe4j.runtime.WinLauncher.main(Unknown Source)
?? ?at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)

Is this because of the Java version or that is not the problem?
thank you in advance
```


Answers:
author: Jeyanthan I
body: Hi Luis,

The latest version of Bamboo 6.6.1 supports Java 1.8. You can check the [supported platforms here](https://confluence.atlassian.com/bamboo/supported-platforms-289276764.html). Thus, you may have to use Java 1.8 for Bamboo to start successfully.

Hope that helps.

Cheers,  
Jey

comments: author: Luigy
body: Thank you Jeyanthan.

Have a nice day


Tags: windows
Bamboo YAML stages name
Asked by Manasa Tumu:

Is there any way we can have stages and jobs names configured for the bamboo yaml file?

stages:  
- key: BT  
name: Build Test

jobs:  
- scripts:  
- M2_HOME=${bamboo_capability_system_builder_mvn3_Maven_3}  
- ${bamboo_capability_system_builder_mvn3_Maven_3}/bin/mvn clean install

<https://mibexsoftware.github.io/bamboo-plan-dsl-plugin/#stage>

Thanks!


Answers:
author: Gabriel Ribeiro
body: Hi Manasa,

As I've mentioned at the [other](https://community.atlassian.com/t5/Bamboo-questions/Bamboo-Specs-SharedCredentials/qaq-p/837229#M19572) thread, this is not possible yet. All currently available YAML Specs library can be found at reference documentation below:

* [YAML Specs reference documentation](https://docs.atlassian.com/bamboo-specs-docs/6.3.0/specs-yaml.html#introduction)

thanks

comments: author: Manasa Tumu
body: [@Gabriel Ribeiro](/t5/user/viewprofilepage/user-id/352687) Thank you for the response!
How to use use the volumes properties to run initial sql scripts.
Asked by Adrian Chan:

I have create docker-compose.yml with running the postgres image with the volumes attributes set so it copies a list of .sql scripts from a folder into docker-entrypoint-initdb.d/

E.g.

```
db:
  image: postgres
  volumes:
    - ./migrations:/docker-entrypoint-initdb.d/
```

This works locally when I run docker-compose up.

I was wondering how would I achieve the same result using the Bamboo build plan?

I can run the postgres image using the docker task and run docker image but I can't seen to the replicate the initial sql scripts on startup.

I set the following properties:

Host directories: Container data volume

/migrations /docker-entrypoint-initdb.d/


Answers:
author: Irek Archer
body: Why not just use "docker-compose run" in a script task?
JSM Teams integration and forms
Asked by Kris Dewachter:

Hi,

I'm investigating how we can setup a MS team chat channel for our JSM project, using the Atlassian Assist app.

For this, you need to define which Request Types can be used in your Teams channel.

Does anyone know if Request types that contain "Forms" are supported? Will those work in MS Teams? I can not find any documentation on that.

I don't have access to a Team Channel just yet so I can not try for myself.

Best regards,

Kris


Answers:
author: Patrick Sch??ler _yasoon_
body: Hi [@Kris Dewachter](/t5/user/viewprofilepage/user-id/4588367)   

I recently evaluated the compatibility of Forms within the Atlassian Assist feature in MS Teams. Currently, the integration does not support this functionality. However, with Atlassian's recent release of new APIs designed to enable Forms in third-party applications, it is anticipated that this capability will be integrated in the near future.  

Happy Friday and best,   
Patrick

comments: author: Kris Dewachter
body: Thank you [@Patrick Sch??ler _yasoon_](/t5/user/viewprofilepage/user-id/4232748)


Tags: assist

cloud

jira-service-management

jira-service-management-cloud

ms-teams