youngmon/atlassian-qna huggingface dataset:
Is there a way to initiate code push from Bitbucket server to Bamboo Server outside the network.
Asked by Anjali Kartha:

We have bitbucket server hosted within cooperate network that allows only a push and no pull from any server outside network like Bamboo set up in public cloud.

If I am right the current integration only allows bitbucket server to notify bamboo on code commit and bamboo pulls the code.

Is it possible for bitbucket server to push the updated code to bamboo.


Answers:
author: Steffen Opel _Utoolity_
body: Bitbucket Server has no built-in push support. That being said, you could leverage the popular [Repository Mirror Plugin for Bitbucket](https://marketplace.atlassian.com/plugins/com.englishtown.stash-hook-mirror/server/overview) app to automatically push the code to an externally hosted mirror so that the externally hosted Bamboo instance can pull the code from there in turn.

Obvious mirror targets would be Bitbucket Cloud, GitHub, GitLab or [AWS CodeCommit](https://aws.amazon.com/codecommit/) (esp. in case your Bamboo happens to be hosted in AWS, though that's not a requirement of course).

By chance I'm currently exploring a resp. CodeCommit mirroring process for our own use cases and apps, so if you'd like to go down that route, just let me know and I'll try to prioritize a resp. How To.


author: Gabriel Ribeiro
body: Hi Anjali,

You can not push the updated code from bitbucket to Bamboo directly. What you can do is to create a Webhook in your repository to notify Bamboo that the code as changed.

1. Install the [Web Post Hooks for Bitbucket Server](https://marketplace.atlassian.com/plugins/com.atlassian.stash.plugin.stash-web-post-receive-hooks-plugin/server/overview) plugin
2. Follow the instructions found in the below documentation:
   1. [POST service webhook for Bitbucket Server](https://confluence.atlassian.com/bitbucketserver/post-service-webhook-for-bitbucket-server-776640367.html)
   2. [Triggering a Bamboo build from Bitbucket Cloud using Webhooks](https://confluence.atlassian.com/bamboo/triggering-a-bamboo-build-from-bitbucket-cloud-using-webhooks-873949130.html)
   3. [Git Repository - Remote trigger](https://confluence.atlassian.com/bamkb/git-repository-remote-trigger-859500786.html)

If you have any further question, please feel free to create a support ticket at <https://support.atlassian.com/contact/>

Thank you.

best,  
Gabriel Ribeiro


Tags: bitbucket-server
Bamboo REST API: Grant permission to the plan
Asked by Grzegorz Janas:

Dear All,

<br />

I'm not a REST expert, but I'm trying to automate some things in the Bamboo.  
I would like to add existing user to plan via REST API.

I already found an entry from the [official documentation](https://docs.atlassian.com/atlassian-bamboo/REST/6.2.5/#d2e1242), but I can't figure it out.

Getting users from the plan is working like a charm via GET method:

http://localhost:8085/rest/api/latest/permissions/plan/TEST-TEST/users

but how can I add for example user "test1" to Project TEST / Plan TEST using PUT method?

My preferable way to do this is by cURL, wget or anything from Linux terminal, I'm using Bamboo 6.2

Thank you all in advance!


Answers:
author: Alexey Chystoprudov
body: ```
curl -X PUT -u admin:admin 
       -H "Content-Type: application/json" 
       -d "[\"READ\",\"WRITE\",\"BUILD\",\"CLONE\",\"ADMINISTRATION\"]" 
       http://localhost:9087/bamboo/rest/api/latest/permissions/plan/TEST-TEST/users/myuser
```

comments: author: Grzegorz Janas
body: Quick and excellent answer, thank you!


author: Branislav Povoda
body: Hi,

I have tried this REST API call in bamboo 6.2.2 and result is, that user is added to the plan, but without any role/permission. Do you know reason why?

thanks,

Branislav


Tags: bamboo-administration
Is it safe to delete an agent's folder in xml-data\build-dir\ ?
Asked by Matthew Douston:

In the xml-data\\build-dir\\ folder, there are folders with numbers for names that I believe correspond to each local agent (I have 25 agents, and 25 folders in this directory, one for each agent). I want to clear the contents of this entire working directory on a regular basis. If I delete these agent folders, will the bamboo agents simply create new ones here the next time they need to?  

I know there's been discussions about how to clean up the working directory, but this is a question more about how bamboo actually works. Do the agents depend on those folders being there, or will an agent create a folder in xml-data\\build-dir\\ if the previous one has been deleted?


Answers:
author: Marcin Gardias
body: What is the exact content of *xml-data\\build-dir* depends on which features you use. From what you wrote, I can infer you have 'concurrent build' functionality turned on and if that's indeed the case, then yes, the folders with numbers for names are related to the local agents (the folder name is actually the agent id)

Now for deleting stuff: it can be done but with caution. The agents will recreate missing directories if necessary, but (and I guess I'm stating the obvious here, but still) you need to be certain that you don't remove folders that are currently in use. In other words this can be done only if you can be absolutely sure that no job is being run on an agent in question.

Other than that: the *xml-data\\build-dir* folder contains things other than agents' working directories and it is generally not a good idea to remove those. For instance, if you purge repository caches you will take a performance hit the next time Bamboo attempts any Git or Mercurial operation.

comments: author: Matthew Douston
body: Will deleting the contents of build-dir affect Bamboo's reporting?

My gut answer is "yes", because I've seen it happen. My company has a script that clears out old folders from the build-dir directory (folders that are 3+ days old). I notice on our Bamboo dashboard that the meta data is lost for affected plans, and no reporting can be gathered for those builds. However, it isn't clear to me what reporting data is gathered from build-dir. I notice in the builds directory there are "plan-12345" folders that can contain XML meta data. Are these files where reporting is gathered from?


author: Adam Sir
body: [@Marcin Gardias](/t5/user/viewprofilepage/user-id/781649) I've have been facing these issues constantly where all my hard disk spaces are taken up by the bamboo-agent. I'm quite confused on where to start looking to mediate the problem. Do you have any resources handy that I may be able to review in order to begin a clean out/automate a clean out.
How to run Python scripts from "Script Task"
Asked by Jacobo1:

Hi,

I'm new in Bamboo it's possible to add in task new interperer in "Script Task"

Default is possible to run cmd/shell/Windows power shell


Answers:
author: Alexey Chystoprudov
body: It's not possible to add new interpreter, but since version 6.4 Bamboo detects shebang line inside script file and executes correct one. Version 6.4 will be released at the end of February

comments: author: Jobin Kuruvilla [Adaptavist]
body: That's cool. Didn't know that was coming!


author: Jobin Kuruvilla [Adaptavist]
body: Until you move to 6.4, you might want to create a python script in the Bamboo agent (or server depending on where the build is going to run) and then execute the script from an inline shell/cmd script.
Bamboo 6.3.1 - Add Sonar Maven 3 configuration using Java
Asked by Sabarish:

Hi,

I have added Maven task like this successfully.

*MavenTask mavenTask = new MavenTask()*   
*.goal("clean install -U")*   
*.hasTests(false)*   
*.version3()*   
*.jdk("JDK 1.8")*   
*.executableLabel("Maven 3.x")*   
*.workingSubdirectory("service-aggregator")*   
*.enabled(false);*

*How can I add Sonar Maven 3 Task using java code?*


Answers:
author: Alexey Chystoprudov
body: The best way to figure it out is to add it through UI and then use Export as Bamboo Specs action from Plan configuration
What are the benefits to using Bamboo for deploying or modernizing applications in a private cloud?
Asked by Jonathan Brune:

I have a customer that has built a private cloud environment using VM Ware. They have several legacy applications that they want to move into their private cloud. This customer also uses CI products like Bamboo and Jenkins to build and deploy applications. I want to know how Bamboo can be used to further improve application development and deployment when releasing applications into a private cloud environment.


Answers:
author: Anonymous Coward
body: Simon says:

" You mentioned you would like to know how you could improve application development and deployment when releasing applications to a private cloud using Bamboo.

1. If you want to improve application development Bamboo is useless. Invest in improving the development team and the development processes instead.

2. Regarding deployment of applications you can do this using Bamboo deployment plans. You can find more information about what deployment plans are here: <https://confluence.atlassian.com/bamboo/deployment-projects-338363438.html>. On the same page, on the right side you can find related information and how to configure and use deployment projects with Bamboo. The deployment in Bamboo is not better or worse than any other deployment tool.

"

I hope this helps.
Is there a way to modify the way builds are queued on bamboo?
Asked by Kuhle Nkondeshe:

We currently have 10 remote agents. 5 could be offline when its code freeze.

We normally have 5 agents up and accepting builds and when we have a long list that joins the queue, +10 plus waiting builds. We obviously bring the other 5 up to assist. In doing so, it seems at this point FIFO has already been applied and the waiting builds never go to the agents that just came up and they just stay IDLE.

The same happens when we have agents dedicated to larger builds and then undedicate them when there are long waiting build queue to help. The just stay IDLE and the queue waits for the Agents that were presently there.

Now how do we change the way queuing process in this regard?

Thanks


Answers:
author: Christian Glockner
body: Hi Kuhle,

Normally Bamboo should automatically dispatch the queued builds to any available agent, even if that agent only came online after the build was started. This suggests that something's not working as expected.

I'd look at the logs on the Bamboo server (in **\<BambooHome\>/log/atlassian-bamboo.log**) should show lines like the following repeatedly:

**\[BuildAgentControllerImpl\] Agent 163841 checking build queue for executables...**

The ID would be different, matching the ID of one of the idle remote agents.

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: Kuhle Nkondeshe
body: Hi Christian.

They currently do dispatch to the agents.. that process is fine. its only when items are already sitting in the queue.. assuming that means they are assigned to a specific agents on the queue at tht point. Then we undedicate agents which were dedicated. those new ones will stay IDLE and not grab anything from the queue. Even if there are 100 builds at that point waiting to build.

Instead they will accept newly triggered builds and wont let those join the queue.


author: Jeyanthan I
body: Could it be that the requirements and capabilities for those builds are not met by these newly started agents?

What is the version of Bamboo you are working on?


author: Kuhle Nkondeshe
body: All capabilities are met.. If the agents were up before the builds got queued, they run on these agents.. no problem.


author: Kuhle Nkondeshe
body: im on ver 6.2.1 build 60208


Tags: bitbucket

confluence

jira
cannot apply key as too many jobs
Asked by Steve Wilkinson:

System says we only have a license for 10 jobs and that we have 12. The UI shows only 10 jobs configured. The test license is now expired and we cannot apply our key nor establish why there are 12 jobs.


Answers:
author: Andy Heinzer
body: Hi Steve,

As a temporary measure, try to generate a new bamboo evaluation license key from [https://my.atlassian.com](https://my.atlassian.com?) and then see if you can apply that. That key is only valid for 30 days, but it also has the advantage that it should allow you to see more than the 10 jobs.

If you can do that and resolve it that way, you can then see if you can apply your current starter license to this instance.

Please let us know the results.

Andy
Bamboo: build task - Script Task to run Batch file to create war files for build giving error
Asked by Loveleen Sidhu:

getting the following error :

05-Feb-2018 12:46:47 releaseCompleteWar.bat: line 1: Rem: command not found

05-Feb-2018 12:46:47 releaseCompleteWar.bat: line 2: Rem: command not found  
05-Feb-2018 12:46:47 releaseCompleteWar.bat: line 4: SETLOCAL: command not found  
05-Feb-2018 12:46:47 releaseCompleteWar.bat: line 73: unexpected EOF while looking for matching \`"'  
05-Feb-2018 12:46:47 releaseCompleteWar.bat: line 82: syntax error: unexpected end of file


Answers:
author: robhit
body: Hi Loveleen,

Thanks for your question!

It seems the interpreter is not set correctly in the [script task](https://confluence.atlassian.com/bamboo/script-289277046.html). Also, check for the Agent used to run the build plan (confirm that the plan is executed on the Windows by the Agent as you commands are Windows Compatible)

Thanks,

Robhit

comments: author: Loveleen Sidhu
body: Hi Robhit,

thanks for getting back. I dont see the interpreter option, when I am trying to set up a script task. It gives me options - Task Description, Script location, script file, arguments,environment variables and working sub directory. no option to say that it is a batch file.

Thanks

Loveleen


author: Loveleen Sidhu
body: Hi Robhit,

Still trying to find solution. The script task has batch file mentioned. It is executing the batch file as per required but ant commands in it are failing. cant recognise ant. I added ant as a requirement. Installed ant on the windows bamboo agent but no use.

Thanks

Loveleen


author: robhit
body: Hi Loveleen,

How about sharing the screenshot? and the Bamboo Version you are using?

Also, share the commands that you are using.

My Screen Shot:

![Screen Shot 0030-02-06 at 11.38.47 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/14145i504E61BA47767D8E/image-size/large?v=v2&px=999 "Screen Shot 0030-02-06 at 11.38.47 PM.png")


author: Loveleen Sidhu
body: Hi Robhit,

this is the task page I see on bamboo. Solved this one by installing ant on the server which was actually missing. But I cant see any interpreter dropdown option on my task page.

Thanks,

Loveleen

![ScriptTask.png](https://community.atlassian.com/t5/image/serverpage/image-id/14629i642B1845995AF212/image-size/large?v=v2&px=999 "ScriptTask.png")


author: Alexey Chystoprudov
body: It was fixed in Bamboo 5.13, but you have 5.9.9: <https://confluence.atlassian.com/bamboo/bamboo-5-13-release-notes-829057609.html#Bamboo5.13ReleaseNotes-Improvementsforthescripttask>


Tags: ant

script

task
Need compatibility matrix for Jboss App Server Vs Bamboo?
Asked by thiyagarajan s:

Hi,

Need compatibility matrix for Jboss App Server Vs Bamboo?

Whether current version of Bamboo will it support to JBoss 5 App Server?

Thanks!


Answers:
author: Jeyanthan I
body: Are you attempting to host Bamboo using JBoss or you wanted to build and deploy JBoss applications using Bamboo and are looking for add-ons like [Bamboo JBoss Tasks](https://marketplace.atlassian.com/plugins/com.atlassian.bamboo.plugins.jboss.bamboo-jboss-plugin/server/overview)?

If you wanted to host Bamboo on JBoss, may we know the reason why you had to do so?

comments: author: thiyagarajan s
body: Build and deploy JBoss applications using Bamboo. My current version of JBoss App server is JBoss5, looking for Add-ons.


author: Jeyanthan I
body: Thanks for clarifying. Have you already tried [this add-on](https://marketplace.atlassian.com/plugins/com.atlassian.bamboo.plugins.jboss.bamboo-jboss-plugin/server/overview) for deploying JBoss applications?


Tags: jboss
Migration from Datacenter to Cloud Stuck at 89% During App Plugin Migration
Asked by ???:

I am currently attempting to migrate our Jira Service Management instance from the Datacenter edition to the Cloud edition using the official migration tool. However, during the app plugin migration phase, the process has become stalled at 89% and has not progressed for an extended period of time.

I have checked the migration logs and have not found any specific error messages that would indicate the cause of this stall. The migration tool's interface does not provide any additional information or insights into why the process is not completing.

I would greatly appreciate assistance in diagnosing and resolving this issue. Please advise on any steps I can take to troubleshoot the migration or if there are any known issues or workarounds that might apply to my situation. ![bd7ade904c5b6b60054b8b604c4d82e.png](/t5/image/serverpage/image-id/310999i07C4EF3DA9E1DD31/image-size/large?v=v2&px=999 "bd7ade904c5b6b60054b8b604c4d82e.png")


Answers:
author: Walter Buggenhout
body: Hi [@???](/t5/user/viewprofilepage/user-id/5447992) and welcome to the Community!

After having done quite a few migrations, I can say from experience that this sometimes happens when migrating Tempo data. More than once, the migration was just fine, but for some reason the progress indicator for the migration got stuck.

When validating the migrated data in cloud, all seemed fine and some time later the progress indicator suddenly indicated the same thing.

It is impossible to confirm that this is happening in your case. But it may be worth reaching out to Tempo support to make sure nothing else is wrong. You should be able to find the link to their service desk from Planner by Tempo's marketplace listing.

Hope this helps!


Tags: cloud

jira-service-management

jira-service-management-cloud
Jira portal topic translation
Asked by Luc Grangier:

We have several JSM portals with different languages.

We created some topics ofr the customer portal home page, but the topic title can not be translated.

Is there a way to translate these topic's title?


Answers:
author: Dan Breyen
body: Hi [@Luc Grangier](/t5/user/viewprofilepage/user-id/3994194) I took a quick look at [Atlassian's Jira Site](https://jira.atlassian.com/secure/Dashboard.jspa) and found [JSDCLOUD-12998](https://jira.atlassian.com/browse/JSDCLOUD-12998) which looks a lot like your issue. Feel free to vote for and watch it for updates. You can add some comments to it as well.


Tags: cloud

jira-service-management

jira-service-management-cloud
Jira Service Management vs ServiceNow
Asked by Shriya Chhajed:

Hi,

Can someone share their experiences and Pros/Cons of using ServiceNow over JSM at an organization level?


Answers:
author: Nikola Perisic
body: Hello [@Shriya Chhajed](/t5/user/viewprofilepage/user-id/4514671)

Here are some of the insights:

**ServiceNow:**

*Pros*:

* **Extensive functionality:** ServiceNow offers a wider range of features out of the box, including IT service management (ITSM), IT operations management (ITOM), and customer service management (CSM).
* **Scalability:** ServiceNow is a robust platform that can handle complex workflows and large organizations.
* **Customization:** Offers a high degree of customization to tailor the platform to specific needs.

*Cons:*

* **Cost:** ServiceNow is a premium solution with significant licensing and potentially high implementation costs.
* **Complexity:** The extensive features can lead to a steeper learning curve for administrators and users.
* **Vendor lock-in:** Customization and integrations might create reliance on ServiceNow's platform, making it difficult to switch in the future.

**JSM**:

*Pros*:

* **Cost-effective:** JSM is a more affordable option, especially for smaller organizations or those already using Jira for software development.
* **Integration with Jira:** Integrates seamlessly with Jira, allowing developers and IT teams to collaborate on issue resolution.
* **Ease of use:** JSM has a user-friendly interface and is generally easier to set up and manage than ServiceNow.

*Cons*:

* **Limited functionality:** Focuses on ITSM functionalities and lacks some features of ServiceNow, like ITOM and comprehensive CSM.
* **Scalability:** May not be suitable for very large organizations with complex needs.
* **Customization:** While customizable, it offers less flexibility compared to ServiceNow

++Summarized:++

* **Choose ServiceNow if:** You need a comprehensive ITSM platform with extensive features, scalability, and high customization for a large organization. Be prepared for higher costs and complexity.
* **Choose JSM if:** You need a cost-effective, user-friendly solution for basic ITSM needs, especially if you already use Jira. It might not be ideal for very large or highly complex requirements.


Tags: cloud

jira-service-management

jira-service-management-cloud
how can I share our JSM Change Calendar with other Jira users from other projects?
Asked by Scott Bjorke:

Hello! We have JSM installed and many things are going very well so far, including change management and a visual change calendar. A change calendar is traditionally an IT-wide or even enterprise-wide artifact (not just limited to only one Jira project),

How can I share/allow users in our other projects on the same instance access to view (only) our Change Calendar? Many of our Jira users not in a Service Mgmt function ought to be able to view it to plan and to prevent change conflicts, etc.

Hoping someone knows how to make a JSM Change calendar viewable outside of just our ITSM project.

Thanks in advance. Peace!


Answers:
author: Fabian Lim
body: Hi [@Scott Bjorke](/t5/user/viewprofilepage/user-id/5447747)

Welcome to the community!

Adding [@Gabriel Raubenheimer](/t5/user/viewprofilepage/user-id/4392148) to comment and see if this is in the roadmap.

One options is to purchase a calendar plugin and have a jql pull-in the change tickets.

Regards,

Fabian

comments: author: Scott Bjorke
body: Thanks for your response. Great idea -- sad I didn't think to look to the Marketplace. If you happen to know of an app/plug-in that has worked well for you I hope you'll let me know. (Kinda fond of the 'free' ones). :)

Scott


Tags: calendar

change

cloud

jira-service-management

jira-service-management-cloud
Jira assets - Integrations
Asked by Danielle David:

HI we currently use Jira assets to capture our assets.

We are looking to integrate assets from their south of truth. Looking at pulling data in and pushing data out if possible.

Do people currently do this? do they use an API or App. Just looking for some information.


Answers:
author: Mikael Sandberg
body: Hi Danielle,

We use Kolide and Tray.io in order to import our assets in to Assets via its API. This is done twice daily. I also have other data being imported to Assets from external applications via the API. What sort of information are you looking for?


Tags: cloud

jira-service-management

jira-service-management-cloud