youngmon/atlassian-qna huggingface dataset:
Is there a way to bulk change the deployment project and environment permissions?
Asked by Tim Ackermann:

[Bamboo](http://www.atlassian.com/software/bamboo/) version 6.6.2


Answers:
author: Alexey Chystoprudov
body: Yes. Use Bamboo Specs. It supports Deployment and Environment permissions

<https://docs.atlassian.com/bamboo-specs/6.6.2/com/atlassian/bamboo/specs/api/builders/permission/EnvironmentPermissions.html>


Tags: bulk-edit

deployment
Error encountered while triggering manual build: Unable to read cipher data for 0
Asked by serkan_bingol:

Hi everyone,

My Bamboo plan was working smoothly but suddenly pull request cant trigger build plan. Then i run plan manually and bamboo gives an error like "Error encountered while triggering manual build: Unable to read cipher data for 0". I searched log file and i found this ***"FATAL \[11-BranchDetectionBackgroundThread:pool-18-thread-3\] \[InstanceSecretStorage\] Filesystem part of instance key is unavailable"***

So what will i do for this situation any suggestion? you can see log files and error from the images below.

![chipper_data_1.png](/t5/image/serverpage/image-id/55021i57863693193E6E39/image-dimensions/617x326?v=v2 "chipper_data_1.png")![chipper_data_2.png](/t5/image/serverpage/image-id/55020iD04745E199661653/image-dimensions/549x234?v=v2 "chipper_data_2.png")![chipper_data_4.png](/t5/image/serverpage/image-id/55023i37671076E2119595/image-dimensions/681x302?v=v2 "chipper_data_4.png")![chipper_data_3.png](/t5/image/serverpage/image-id/55022iA0531F7A5A24756E/image-dimensions/671x283?v=v2 "chipper_data_3.png")


Answers:
author: serkan_bingol
body: Hi , I just copy cipher folder from another bamboo server and everything fixed.


Tags: cipher
Bamboo express installation hangs on "Please wait while Bamboo sets up your instance"
Asked by Anna Allinger:

Hello,

I'm trying to set up Bamboo on my local computer. My express installation hangs more that 30 minutes on setting up the instance and is not finishing. Tried several times. Checked out the log in BAMBOO-HOME\\logs and there I see a bunch of errors, e.g.:

**2019-05-20 03:22:37,200 ERROR \[http-nio-8085-exec-17\] \[DefaultDispatcherErrorHandler\] Exception occurred during processing request: Unable to instantiate Action, com.atlassian.bamboo.ww2.actions.setup.SelectSetupStepAction, defined for 'selectSetupStep' in namespace '/bootstrap'Error creating bean with name 'reloadableBeanFactories' defined in class path resource \[applicationContextPlugin.xml\]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot resolve reference to bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' while setting bean property 'transactionAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': BeanPostProcessor before instantiation of bean failed;**I use jdk-12.0.1 and my JAVA_HOME environment variable is set correctly to the path "C:\\Program Files\\Java\\jdk-12.0.1"


Answers:
author: Anna Allinger
body: The problem occured because I installed Java jdk 12 and it is not supported by Bamboo, so after removing it and installing jdk 1.8 instead the problem was resolved.

comments: author: Preia Motheeram
body: Installing jdk 1.8 worked for me too. Thanks!
XSRF Check failed during POST to Bamboo API
Asked by Jeremy Skinner:

I am trying to develop an interface to the Bamboo API and all GET requests are working but when I try to make a POST to trigger a deployment I get a 403 error response with the message "XSRF check failed."

I have tried turning off the Enable XSRF Protection option in Bamboo security settings and restarting the Bamboo service, but that change has had no effect. (per the instructions in this article: [https://confluence.atlassian.com/bamboo/configuring-xsrf-protection-427624344.html\\](https://confluence.atlassian.com/bamboo/configuring-xsrf-protection-427624344.html)).

Why does that setting in Bamboo have no effect?


Answers:
author: Victor Debone
body: Hello [@Jeremy Skinner](/t5/user/viewprofilepage/user-id/1814183) welcome to the community!

Did you try to add either \`X-Atlassian-Token: no-check\` or \`Content-type: application/json\` to these requests?

Did adding those help?

comments: author: Jeremy Skinner
body: I did try adding both of those headers but the issue persisted. I'm trying to make the request through a browser application (Angular), and it is my understanding that the browser removes the arbitrary Atlassian headers.

I'd like to understand why changing the setting in Bamboo does not resolve the issue. According to the confluence article I referenced that should have removed the XSRF requirement.


author: Victor Debone
body: Ok, I think I overlooked that you mentioned "develop an interface", I thought you were executing simple REST calls. You are actually making these requests from the browser and having "Additional XSRF checks..." error, correct?

If so, what is happening is that the CORS filter blocking requests from a different domain (your application is definitely not on the same domain as Bamboo).

To fix that, you need to configure Tomcat to handle these connections from a different domain, you can find more details [here](https://community.atlassian.com/t5/Answers-Developer-Questions/Cross-Origin-Resource-Sharing-with-JIRA-REST-API-and-Javascript/qaq-p/484801). Also, [Tomcat documentation](http://tomcat.apache.org/tomcat-8.0-doc/config/filter.html#CORS_Filter).

Please let me know if that helped you.


author: Jeremy Skinner
body: That makes sense, I already had to set up some filtering just to get the GET requests to pass through CORS. Then I ran into this issue again when I tried to send a POST.

In any case my application ended up needing some more back end functionality so I've created a .NET Core app that my UI connects to, and I can send the Bamboo requests from the back end with no issue.

Thanks for your help!


author: Victor Debone
body: Glad to help :)


Tags: api

xsrf
Do all agents need to have all the capabilities a job requires
Asked by mikayil-abdullah:

I've set up Bamboo on a separate host and now I'm playing with. So far, I've been able to check out a sample source code and build it with maven successfully. Then I added a remote agent, which is my local machine with Docker executable on it. Bamboo shows Docker among many other capabilities of the remote agent. Now, I add a third task to my job, which is a Docker image build and save it. I get \`No agents meet this job's requirements.\` warning. What's weird is in the Requirements tab it shows 1 agent with the Docker capability, which is my local machine. I've followed [this atlassian troubleshooting guide](https://confluence.atlassian.com/bamkb/no-agents-meet-this-job-s-requirements-833942890.html) but it didn't help (I have no dedicated agents.) Now I'm kinda confused, do I need to have all the required capabilities in all agents? Or, maybe at least one of the agents has to have all the capabilities? If no, then what's the reason I get this warning?

I have Jenkins background and in Jenkins I am able to specify which agent must execute which part of a job. Isn't that or similar possible in Bamboo?


Answers:
author: Jimmy Seddon
body: [@mikayil-abdullah](/t5/user/viewprofilepage/user-id/2322161) ,

Agents run jobs. So a single agent needs to be capable of running all the tasks contained within a single job. If you can, you will want to split out the docker task you created into it's own job and then you can have both tasks run in parallel.

I hope that helps, let me know if you have any other questions.

-James

comments: author: mikayil-abdullah
body: Oh, I see. But in that case, I won't be able to access the artifacts produces as a result of maven build as:

1. They run in parallel and the Docker build job will reach the point it needs the artifacts much earlier than the build is finished.

2. Can one job access files of another job?


author: mikayil-abdullah
body: Oh, maybe I should have a separate stage for it?


author: Jimmy Seddon
body: Hi [@mikayil-abdullah](/t5/user/viewprofilepage/user-id/2322161),

I was just about to say that. Yes, build the maven code first in it's own stage/job. Then, have the docker stage/job run after that which can use the artifacts built in the maven stage.

-James


author: mikayil-abdullah
body: Thanks, [@Jimmy Seddon](/t5/user/viewprofilepage/user-id/512822) Can you btw give me a quick tip on how to use artifacts of the previous stage?


author: Jimmy Seddon
body: Absolutely! So what you will want to do is use the "Artifact Downlad" task type and you are going to select the build plan you are currently in and it sill give you the option to select all artifact or you can specify which shared artifacts you wish to download.

-James


author: mikayil-abdullah
body: Oh, I got that. Thanks.
How to configure bamboo artifact download for a specific version in deployment job
Asked by Sumit Kumar Gaur:

Hi

I have 2 build jobs, 1 for config build and create artifact another have application build and artifact creation.

During deployment phase I want to select the version of different config builds and keeping the application build same.

How can I am achieve this. Keep code same and deploying various config is something very generic scenario, does bamboo not supporting this or there is another way to solve this.

Thank you


Answers:
author: Daniel Santos
body: Hi [@Sumit Kumar Gaur](/t5/user/viewprofilepage/user-id/1240995),

Let me repeat your description with my own words to check if I understood you correctly.  
You have one build plan with two jobs:

* Config + artifact
* Application + artifact

When building this plan you will possibly have different artifacts for each of those jobs.  
You have a deployment project associated with this plan which should:

1. Deploy each artifact from config job
2. Deploy an application job artifact from a specific build repeatedly

If I got your right, this is my response:

Bamboo does not have an out-of-the-box task to download artifacts from a specific build into a deployment or build plan, but you could use REST API to download any artifact you want using a script task. For more details on how to achieve this, please check this the answer in this thread: [Dowload Plan Artifacts - Atlassian Community.](https://community.atlassian.com/t5/Bamboo-questions/Dowload-Plan-Artifacts/qaq-p/965201#U967064)

Please let me know if I correctly understood your problem. If not, please help me to get on track.

comments: author: Sumit Kumar Gaur
body: Thanks [@Daniel Santos](/t5/user/viewprofilepage/user-id/502125) for clarification . I was looking for a plugin or similiar where I can select a artifact version to download in task . Anyway looks like it is not there and I have to use curl to download specific version .


author: Daniel Santos
body: You are welcome [@Sumit Kumar Gaur](/t5/user/viewprofilepage/user-id/1240995)  
Yes, that is the option I see. You will need to use something like curl to download the specific version you need.
Bamboo + deployment job + download a old version of artifact is not possible
Asked by Sumit Kumar Gaur:

Hello

I want to download a older version of artifact in deployment job,There is no way I could have done that, it is taking latest only.

Basically I have 2 jobs to build config and application respectively and while deploying application I use to download both artifact config and application and deploy.

I have no option to change the version of config for the latest application artifact.

N.B. Separation of config and application artifacts during deployment is the intention. config I want to build very frequently and do not want to build application at all to keep the application artifact version same.


Answers:
author: Jimmy Seddon
body: Hi [@Sumit Kumar Gaur](/t5/user/viewprofilepage/user-id/1240995),

Have you considered using multiple build plans? What we have done is set multiple components that have our configuration build plan as the child plan in the Dependencies tab.

Then in the configuration plan I'm using a source code checkout to get the latest configuration changes and an Artifact Download task for each of our component build plans that grabs the latest built changes for each componet. Not every component will have changed but it always grabs the last thing we built which could have been months ago or it could have been two minutes ago.

I hope that helps you out!

-James


Tags: bamboo-app
Failed to connect to repository.
Asked by pes:

catalina.out:2019-05-17 17:16:59,374 INFO \[http-nio-8085-exec-13\] \[RepositoryResource\] Failed to connect to repository (type: Git, location: ssh://git@192.168.0.79:/srv/git/ras, time: 4.568 ms, errors: \[Failed to open transport for 'ssh://git@192.168.0.79:/srv/git/ras'.\])

What could cause above message when doing a "Test Connection" in "Linked Repositories"?


Answers:
author: Mahesh
body: i am facing the same problem

```
Failed to open transport for 'github.com/tree/master/code_from_svn_server'.
```
Are bamboo specs supported in perforce repositories?
Asked by JoshuaS:

Simple question: When using a perforce repository type, can you also use bamboo specs (java, yaml, both?)

I have seen some information which appears to be conflicting. For example, this help article does not list that perforce is supported (<https://confluence.atlassian.com/bamboo/enabling-repository-stored-bamboo-specs-938641941.html>) but there are some jira issues that seem to indicate the issue has been resolved (<https://jira.atlassian.com/browse/BAM-18411>)

When I look in a perforce linked repository configuration, I don't see any options for "Scan for bamboo specs" like the documentation indicates.


Answers:
author: Alexey Chystoprudov
body: Perforce is not supported yet. There's feature request <https://jira.atlassian.com/browse/BAM-20368> to gather interest of Bamboo users in this functionality.

Right now it has 0 votes and it's not at our roadmap for the next 6 months.


Tags: perforce

spec
What REST API command returns Bamboo Specs?
Asked by hmozaffari:

I'm using Bamboo version 6.4.1 and would like to retrieve plan as Java Specs. Is there any REST command that returns the Spec?


Answers:
author: Jimmy Seddon
body: Hi [@hmozaffari](/t5/user/viewprofilepage/user-id/1382461),

I just did a quick search through the REST API docs (<https://docs.atlassian.com/atlassian-bamboo/REST/6.4.1/>) and it doesn't look like there is anything for retriving a plan as java specs.

I can see how that could be challenging to accomplish given that would be a pretty complex object that gets returned.

Sorry I couldn't offer much help here.

-James

comments: author: hmozaffari
body: Thanks [@Jimmy Seddon](/t5/user/viewprofilepage/user-id/512822) for looking into this.

Bamboo UI offers the following URL to show the Java Specs. But unfortunately is in HTML format:

/exportSpecs/plan.action?buildKey=\<Build-key\>

I was hoping to find an underlying REST call but there isn't any.

The main reason I was looking for this API was being able to verify encrypted secret variables. I deal with dozens of Bamboo plans which have encrypted variable. The only way to verify if those variables have correct value is by looking at Specs. Specs show the encrypted value but UI masks it.

I was planning to make multiple REST calls, get all the Specs and and verify variables in all plans.


Tags: rest-api

spec
I want to generate checkstyld and java doc reports . But want to pass the build in any case.
Asked by Vineela:

Hi Team ,

As part of CICD implementation , i need to generate reports such as checkstyle and Javadoc. But I dont want the stage result effect build result. I want the build to pass irrespective of stage or task of report generation succeeds or not . Any suggestion . Tried with final stage inclusion in master but it doesn't resolve my complete requirement . Adding a build fail trigger will not be efficient as it runs all other steps again. Help me here.


Answers:
author: Daniel Santos
body: Hi [@Vineela](/t5/user/viewprofilepage/user-id/1754247)  

Let me comment on your comments. I want to be on the same page as you.
>
> As part of CICD implementation , i need to generate reports such as checkstyle and Javadoc. But I dont want the stage result effect build result.

Can you give me more detais on this part?  
***"I dont want the stage result effect build result.".***

> I want the build to pass irrespective of stage or task of report generation succeeds or not . Any suggestion .

We can't configure a build to run restrictively, but if all your stages are configured as final ones, all should run and all the jobs in them should run. The problem is if you have a failed task the next one inside the same job will not run.

> Tried with final stage inclusion in master but it doesn't resolve my complete requirement.

What was the requirement missing for you in this case?

> Adding a build fail trigger will not be efficient as it runs all other steps again. Help me here.

Can you also describe this part better?  

comments: author: Vineela
body: Hi Daniel, the query here is I want a stage to run (lets say reports generation) only if the build is successful . Also I don't want the reports generation stage affect the build result . Just that it should run when build is successful .


author: Daniel Santos
body: Hi [@Vineela](/t5/user/viewprofilepage/user-id/1754247)

I think this Atlassian Labs plugin would solve your problem, but it is not updated to the latest version of Bamboo. At the moment of this message, it is compatible with versions between 6.4.0 and 6.7.3 (including them).

* [Pre-Post Build Command Runner \| Atlassian Marketplace](https://marketplace.atlassian.com/apps/5581/pre-post-build-command-runner?hosting=server&tab=versions)

Atlassian Labs plugins are not supported and users cannot expect them to be updated or have bugs fixed, but I'm working internally to check if we can update this one considering its utility to multiple customers.

As an alternative, I would try to use a script task as the last task of the last stage to run the reports. I would run in such a way that the error return would be always 0 (which means success). We can do that if we wrap our bash commands with **true** :

    command || true

Another alternative, for now, would be creating a deployment project just to fire the reports and having it configured to run on every successful build.

I hope that helps.
JIRA and Bamboo Application links connected but do not work properly
Asked by Utku Kamac?:

Hello,

One of our customer's JIRA and Bamboo instance connected by using oauth impersonation.

In bamboo instance when we launch Issues tab. It receives issues but does not redirects to JIRA when we click them. Same happens when we click on JIRA side.

It outputs for bamboo:

Page not found  
An unexpected error has occurred  
Could not find the 'PFV-115' build

As for JIRA:

Authenticate to see related commits

Please log in to approve this application: Stash.  
------------------------------------------------------------------------  
When we click to Stash link to approve it says:  
Welcome to JIRA  
The request token you are trying to authorize is not valid. Please try another token. (Close this dialog, then go back to the site requesting access and tell it to try again.)

<br />

Also if we use oauth not impersonation it continues to say token error and does not even show the issues on bamboo side.

Thanks


Answers:
author: Daniel Santos
body: Hi [@Utku Kamac?](/t5/user/viewprofilepage/user-id/1191619)

Let me list a couple of things I would check if I had this issue:

1. Check if the application URL is configured correctly for each server. This could result in one server not properly referencing another.   
   JIRA: [Configuring the Base URL](https://confluence.atlassian.com/adminjiraserver/configuring-the-base-url-938847830.html)  
   Bamboo: [Specifying Bamboo's URL](https://confluence.atlassian.com/bamboo/specifying-bamboo-s-url-289277242.html)  
   Bitbucket: [Specifying the base URL for Bitbucket Server](https://confluence.atlassian.com/bitbucketserver/specifying-the-base-url-for-bitbucket-server-776640392.html)
2. Assuming there is a reverse proxy in front of any of those servers and this issue is related to it. I would check this document:  
   [Specifying the base URL for Bitbucket Server - Atlassian Documentation](https://confluence.atlassian.com/bitbucketserver/specifying-the-base-url-for-bitbucket-server-776640392.html)
3. If any configuration changes were performed I would try to recreate the application links and try again.
4. If the problem persisted, I would check the server logs to get more details on the error or previous errors that could be indirectly causing this one.

Let me know if those checks help and if not please check the server logs and share what errors you see there.


Tags: application-link

jira-core

jira-core-server

jira-service-desk

jira-software

server
Bamboo- Can I switch Chinese?
Asked by fenhe_123:

Hi?

I installed it, the interface is in English, can I switch to Chinese? How to switch?

Thanks


Answers:
author: Daniel Santos
body: Hi [@fenhe_123](/t5/user/viewprofilepage/user-id/3159086)

Thank for raising this question.

Bamboo is only offered in English idiom. There is an old feature request for this that didn't seem to be very popular, therefore not being prioritized in comparison with other requests.  
This is the one: [\[BAM-13988\] Support multiple language translations in Bamboo.](https://jira.atlassian.com/browse/BAM-13988)

I wish I could offer Bamboo in Chinese for you, but you will need to stick with English now.

comments: author: fenhe_123
body: Thank you for your reply, I am trying to build my .net core project using bamboo, but I can't find any relevant instructions. Can you give me some advice?


author: Daniel Santos
body: I think this page will be a good start for you [Getting started with .NET](https://confluence.atlassian.com/bamboo/getting-started-with-net-and-bamboo-289277288.html).  
Please give it a try and share any remaining questions you may have.
How to push the values from Text type field to Label type field in JSM?
Asked by shivani shirguppi:

How to push the values from Text type field to Label type field in JSM?

"Campaign Name" is my text field.

"Generate Campaign Name" is my Label type field.

I want to copy all the values from Campaign Name to Generate Campaign Name in list form.

How can we do this automation.


Answers:
author: Dave Mathijs
body: Hi [@shivani shirguppi](/t5/user/viewprofilepage/user-id/5241115) This will only work for value that have no spaces as labels don't support values with spaces.

You could create an automation rule like:

When: Values changes for *Campaign Name*

Then: Edit issue fields *Generate Campaign name*

with smart value {{issue.Campaign Name.value}}

comments: author: shivani shirguppi
body: [@Dave Mathijs](/t5/user/viewprofilepage/user-id/2662590) I have created as you have suggested but no action is performing.

![Screenshot 2024-05-17 114129.png](https://community.atlassian.com/t5/image/serverpage/image-id/324390iB2EC8B04695CB68D/image-size/large?v=v2&px=999 "Screenshot 2024-05-17 114129.png")![Screenshot 2024-05-17 114119.png](https://community.atlassian.com/t5/image/serverpage/image-id/324391i55F895FA1F396FDE/image-size/large?v=v2&px=999 "Screenshot 2024-05-17 114119.png")


author: Dave Mathijs
body: Have you changed the value of the field Campaign Name for an issue? What is the value you entered?


Tags: cloud

jira-service-management

jira-service-management-cloud