youngmon/atlassian-qna huggingface dataset:
The build has failed to check out the source code
Asked by Raj K:

Sometimes, Bamboo is throwing this weird error. Even when the connection to the repo is proper.

The build has failed to check out the source code: Plugin com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-bitbucket:bbCloud not available

Can someone assist me in this.

---Raj


Answers:
author: Foong
body: Suspect that the remote agent fail to start successfully.

Is the problem only happens to Windows Remote Agent?

Sometimes, when Windows Remote Agent is restarted, the file somehow is still locked by the old process causing it fail to start up correctly. There will be error in the remote agent log during startup.

Try restarting the machine that have problem to release the locked files and then start the remote agent again.

comments: author: Raj K
body: Hi,

We have Mac remote agent and it fails sometimes. It picks up repo sometimes.

We felt really weird about this.

Would you kindly guide me in this.

---Raj


author: Foong
body: Does it fail with the same error or the Mac agent does not pick up any build sometimes?

If the Mac agent does not pick any build, the Mac machine might have entered Sleep Mode. Run the following command to check if it has entered Sleep Mode:

```
pmset -g log|grep -e " Sleep? " -e " Wake? " > sleep_log.txt
```

Sleep mode need to be removed from the Mac machine that host the agent.


author: Raj K
body: Hi,

It fails with the same error message like this :

The build has failed to check out the source code: Plugin com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-bitbucket:bbCloud not available

Mac agent is always running via daemon process.

Mac machine has been caffeinated so it never sleeps.

---Raj


author: Foong
body: Is there any error in the remote agent log during startup?

Check what is the java version used in **atlassian-bamboo-agent.log**, ex:

```
INFO | jvm 1 | 2018/05/18 21:49:22 | 2018-05-18 21:49:22,099 INFO [WrapperSimpleAppMain] [AgentBootstrap] Starting Agent Bootstrap using Java 1.8.0_73 from Oracle Corporation. Default charset: UTF-8, file name encoding: UTF-8
```

Bamboo version 5.10.0 - 6.5.0 need Java 1.8 to start remote agent.


author: Raj K
body: It uses the proper Java version as you mentioned.

The error that I got is

INFO \| jvm 2 \| 2018/05/21 01:12:17 \| ERROR: Bundle com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-clover \[18\] Unable to get module class path. (java.lang.RuntimeException: Unable to open JAR file


author: Foong
body: From the error, it seems that some files are corrupted.

Try deleting the following directory and restart the agent:

* /path/to/agent/home/caches
* /path/to/agent/home/classpath


author: Raj K
body: I did it. I seems, Bamboo agent is able to pick up the repo properly.

Thanks a lot !. It was indeed a great assistance.

Would you kindly tell me how to see the live logs of the agent on the terminal of Mac OSX.

Something like ./bamboo-agent.sh console
Is it possible to monitor Bamboo remote agents using JConsole
Asked by Heshan Manamperi:

Is it possible to monitor Bamboo remote agents using JConsole, as how we monitor other Atlassian products?

Since remote agents runs on JVM, i think this should be possible. Have any one tried this?


Answers:
author: Bruno Rosa
body: Hey Heshan, yes you should be able to monitor Bamboo remote agents using JConsole the same way you monitor Bamboo. Take a look at the following page for further instructions on how to set this up:

* <https://confluence.atlassian.com/bamboo/monitoring-and-profiling-bamboo-289277373.html>

The only difference with remote agents is that instead of adding the **jmxremote** argument to the bamboo.sh file (as suggested in the doc), you'll need to find the \<BAMBOO_AGENT_HOME\>/conf/wrapper.conf and add it there as an additional wrapper java argument, and restart the agent. Here's an example of how the file will look like after adding the **jmxremote** argument for local monitoring:

```
wrapper.java.additional.1=-Dbamboo.home=/Users/brosa/Documents/Docker/Atlassian/remote-agents/bamboo-6.3.1/home
wrapper.java.additional.2=-Dbamboo.agent.ignoreServerCertName=false
wrapper.java.additional.3=-Dcom.sun.management.jmxremote
```

Hope this helps.


Tags: agent
Gitv2 not available
Asked by Filip Ekberg (fekberg):

Did a re-install of a MacOS build server and now we are getting the following:

The build has failed to check out the source code: Plugin com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-git:gitv2 not available

Why? And how do we fix this?


Answers:
author: Foong
body: Is the build run by remote or local agent?

Please try installing Native Git Client in the machine hosting Bamboo and remote agents, and then make sure that the Git capability is configured at **Administration \> Build Resources \> Server capabilities** (for Bamboo server) and **Administration \> Build Resources \> Agents \> Remote agents \> agentName \> Capabilities**

comments: author: Filip Ekberg (fekberg)
body: It's a remote agent.

The git client is already installed, and the capability is pointing to /usr/bin/git.


author: Foong
body: Is the remote agent restarted recently?

The remote agent might not be able to restart successfully (some files might be still locked by the old process).

Try restarting the machine and then start the remote agent.
Upgrading Bamboo from 5.12 on Postgres 8.4 to current Bamboo/Postgres
Asked by Jerry Moseley:

I am trying to migrate and upgrade an older Bamboo 15.12 installation from an old Postgres 8.4 database, but I am having issues.

I am using Postgres pg_dump and pg_restore to move the database as a first step, because upgrading Bamboo requires a newer version of Postgres. But I cannot get the Bamboo code to work with the restored database on the newer version of Postgres. With Bamboo pointed at the old db it starts fine, when I point Bamboo at the new db, I get a bootstrap error - "Bamboo bootstrap failed: Failed to run pre-bootstrap upgrade tasks. Please contact Atlassian".

I've tried a bunch of different pg_dump and pg_restore options, but it seems like I am missing something.

Are there any written docs for Postgres specifically to make this happen? I have looked some on the site, but the only think I can find are general steps.


Answers:
author: Robert W
body: Jerry,

Is your new instance Bamboo 5.12 or is it a newer version?

If you're using {{pg_restore}} onto a more recent version of Bamboo, it will be missing key information for the upgrade.

Please try the following:  

1. Install/configure Bamboo 5.12 in new environment pointing at the new Postgres instance
2. Stop new Bamboo instance
3. pg_restore onto the new Bamboo database on new Postgres instance
4. Install Bamboo 6.5 in a new \<bamboo-install\> directory
5. configure this instance to point at the same \<bamboo-home\> directory from step 1.
6. Start Bamboo 6.5

Bamboo will then begin upgrading the data in the database to the latest version of Bamboo.

If this fails, please let me know and we'll open a support case so we can go over the logs of your install to see why the upgrade is failing.

Cheers, Robert  
Dev Tools Support \| Atlassian

comments: author: Jerry Moseley
body: Hi Robert,

Thank you for your reply, but I am not sure I can do much with it. I probably need to describe my setup a little more.

The old/current system is running on boxes that are being replaced. The old systems contain version 5.12 of Bamboo, using Postgres 8.4.

I am trying to start with just moving/transplanting Bamboo onto the new box, pointing at what I thought was a pg_dump/pg_restore of the Postgres data into version 10.

I am trying to get the data onto the current Postgres, and then get Bamboo up to the current version. It is my understanding that the old version of Postgres (8.4) cannot be used when upgrading Bamboo - something to do with case insensitivity that the old version does not support.

So - new Bamboo pointing at the old Postgres, looks fine. When I point it at the new Postgres, then I get the bootstrap failure error.

I used pg_dump -Fc to export from the old system, and pg_restore to import the data on the new system.

I hope this helps. Thanks for your time and effort!

-Jerry
Bamboo REST API to retrieve repositories of the plan
Asked by Jaszeer M:

I am looking for api end point from rest api of Bamboo  
which can return bit-bucket information for a given plan key


Answers:
author: Foong
body: There isn't any REST API to retrieve repository details.

Try using the following SQL:

```
SELECT * 
FROM VCS_LOCATION vl 
JOIN PLAN_VCS_LOCATION pvl ON vl.VCS_LOCATION_ID=pvl.VCS_LOCATION_ID
JOIN BUILD b ON b.BUILD_ID=pvl.PLAN_ID
WHERE b.FULL_KEY='<plankey>';
```

The repository details are stored in XML format in the column "XML_DEFINITION_DATA" of the table VCS_LOCATION.

If the column "PARENT_ID" is not null, the above SQL may not have the repository details. You will need to use the following SQL to get the details from the parent data:

```
SELECT * 
FROM VCS_LOCATION
WHERE VCS_LOCATION_ID=<parentID>;
```


Tags: bitbucket-server

developer

rest-api
timestamp of Source Code Checkout.
Asked by Arsenio Galvao:

Hi,

I'm using bitbucket (stash) and I need to know the date (timestamp) of the version Source Code Checkout.

I'm using the: "${bamboo.planRepository.revision}" but don't give me the date.

Who can I do to check the date of the last commit?

BR,

Arsenio


Answers:
author: Foong
body: How about using Script task to run "git log -1" ?
What is the best way to store data when developing bamboo plugin
Asked by sta-szek:

Hi

I'm developing bamboo plugin and I need to store data, specific for each build.

So if I have: project=A plan=B buildNumber=1, I want to store data under some key or table like A-B-1. This will be build specific data, not plugin.

I was reading docs, and the only thing I found is **BandanaManager** and some **AO** objects? However I couldn't find any comprehensive documentation with working use cases.

Using BandanaManager I have some issues:

\* Sometimes after atlas-mvn package (reload plugin) it cannot read data that was created before. It throws ClassCastException telling that class com.example.A cannot be cast to com.example.A. I dig into google and found out that might be class loader problem?

\* Sometimes (and recently always) after atlas-mvn package (reload plugin) it loses all data that was persisted before. Is that feature or bug or development mode side effect? I want to keep that data in bamboo as long as possible (as long as the build can be shown in history) and not lose it every bamboo restart or new plugin version.

So my questions are:

\* Where can I find comprehensive documentation about data storing (in bamboo)?

\* What is the best way to store data in my case? (BandanaManager, AO, other?)

\* Is there any way to store data in db and use e.g. liquibase or any other kind of migration?

What I can optionally do to get rid of db migrations is to use Gson or ObjectMapper (BTW which is proper one one developing bamboo plugin?) and write objects as JSON - even better for me.

I would appreciate some (working) code snippets!

Thanks


Answers:
author: AnnWorley
body: Hi Piotr,

I wanted to let you know about another resource that may be more helpful for developing a plugin: [Atlassian Developer Community](https://community.developer.atlassian.com)

Best wishes for the weekend,

Ann


Tags: app

atl-dev

bamboo-app

bamboo-development
Running superproject for library pull request
Asked by Martin Rakovec:

Hi all,

I have bamboo build plan for library triggered when pull request is created. This build plan is used to do some automated checks for pull requests. I want to run some checks also in project, that uses this library as submodule so I need to pass branch of library (based on pull request) to dependend build plan.

IFAIK there is no possibility to pass variables to depenend plan on bamboo so I am looking for other solution. There are more libraries and one superproject so I need to share superproject buildplan between libraries. Is there a standard way how to solve this scenario? Thank you in andvance for any help.

Martin


Answers:
author: Foong
body: How about adding a Script task in library build plan to send a trigger command to superproject build plan like the following example?

```
curl -u <username>:<password> -X POST http://localhost:8085/rest/api/latest/queue/<projectKey>-<planKey>?bamboo.variable.<variableName>=<newVariableValue>
```

It can be used to set custom variable value too.

[REST API](https://docs.atlassian.com/atlassian-bamboo/REST/6.2.5/#d2e2106)

comments: author: Martin Rakovec
body: Thank you, this should solve it. I'll try it.


Tags: dependency

pull-request

trigger
No artifacts have been found for this build result.
Asked by Some Guy:

Hello,

I have defined an artifact cause i want to show and output of a test that's in a xml format and i found out that artifacts can do that. Problem is my test says there's no artifacts and it says "No artifacts have been found for this build result."

I followed the answer here: <https://community.atlassian.com/t5/Bamboo-questions/Bamboo-does-not-want-to-create-Artifacts/qaq-p/21681>

And system builders are enabled.

I don't know what's the problem.

My path is "test/path/to/my.xml" It says the path is relative so i suppose it start in the root folder "C:\\Users\\myuser\\bamboo-home\\xml-data\\build-dir\\KeyProject" right?

Then i've set my pattern to "\*.xml"

The project is in .xml format.

Any ideas what may be the problem?

EDIT: My bad found the answer, removed the filename from path and it works.


Answers:
author: AnnWorley
body: Thanks for letting us know the issue was the file name in the path. It could help the next person who runs into that "No artifacts" error.

Have a great Friday!
Bamboo Visual Studio Community License
Asked by muratgur:

I'm using Bamboo Server and building solutions with Visual Studio Build. Visual Studio Community Edition installed and today it started to gave license error. I logged in with my account and got the license ( <https://confluence.atlassian.com/bamkb/the-license-for-visual-studio-has-expired-744327636.html> ) but it still gives the same error. Bamboo installed on Windows Server 2016. I think visual studio gets the license for my domain user and agent runs with different user account(just a guess). How can i fix it any idea?


Answers:
author: Foong
body: Is Bamboo running as Windows Service?

Configure the Bamboo Windows Service to start Bamboo with your account.

[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)


Tags: licence

visual-studio
Is it possible to pull a ticket report with hyper links linked to the ticket numbers?
Asked by Neo Chabalala:

When pulling ticket reports as CSV, the Ticket ID is in plain text, i would like to click on the text and directs me to the ticket on Jira.


Answers:
author: Laurie Sciutti
body: hello [@Neo Chabalala](/t5/user/viewprofilepage/user-id/5461206) and welcome to the Community! Instead of exporting to csv, export html or Word...


Tags: cloud

jira-service-management

jira-service-management-cloud
Share customer detail fields when escalating ticket
Asked by Peter van Meir:

We have three 'agents', managing incoming technical support requests in jira service mgmt.

They also have the ability to escalate tickets to our developers, who are using jira software.

However, the developers don't seem to be able to see customer details inside the escalated tickets. All they see is the customer name. However, we have way more details that we would like to share. For example, the serial number of the product that is linked to that customer. Is there a way to allow the developers to see those custom customer detail fields as well inside the escalated ticket?


Answers:
author: Kris Dewachter
body: Hi [@Peter van Meir](/t5/user/viewprofilepage/user-id/5461035) ,

Welcome to the community.

Where do you have these "Customer Details" stored now ?

Best regards,

Kris

comments: author: Peter van Meir
body: Thanks you [@Kris Dewachter](/t5/user/viewprofilepage/user-id/4588367)

I've created these fields inside a 'customers' page. And by clicking 'Create Field'. So when you go to a specific customer, that's where you see those Customer Details.

Best!

Peter


author: Kris Dewachter
body: Hi [@Peter van Meir](/t5/user/viewprofilepage/user-id/5461035) ,

I presume you are using the "Customer Service Management" feature of Jira Service Management. According to the documentation, this information seems only visible to agents.

If you have Jira Service Management Premium, maybe you can this customer information in Asset Management ?

Best regards,

Kris


author: Peter van Meir
body: Aha, thank you [@Kris Dewachter](/t5/user/viewprofilepage/user-id/4588367)

I wasn't aware this info can not be shared with anyone esle than agents. I will look into the premium plan than and see if Asset Management would be of help.

Thanks, best,

Peter


Tags: cloud

jira-service-management

jira-service-management-cloud

jira-software
Change initial question in customer portal "Womit k?nnen wir Ihnen weiterhelfen?"
Asked by Sebastian Brunner:

In my customer portal there is a question betwenn the portal description and the first issue.  
"Womit k?nnen wir Ihnen weiterhelfen?" (engl. How may we help you?)  

Is it possible that I can change all about the design of the page, except for this sentence?  
I searched all options for multiple times.  

I found a question about two years old in the forum, there was no answer given.  

Is it possible to change that sentence now?


Answers:
author: Rudy Holtkamp
body: Hi [@Sebastian Brunner](/t5/user/viewprofilepage/user-id/5461018) \& welcome to the community,

If you go to your JSM project \> Project settings \> Portal settings, you can change your Introduction text. Is this what you mean?

<https://YOURSITE.atlassian.net/jira/servicedesk/projects/YOURPROJECT/settings/portal-settings>

Kind regards,

Rudy

comments: author: Rudy Holtkamp
body: For Help Center Look and Feel changes you can go to your Help center \> Customize (on the right) \> Customize look and feel.

<https://YOURSITE.atlassian.net/servicedesk/customer/portals?customize=true>


author: Sebastian Brunner
body: Hi [@Rudy Holtkamp](/t5/user/viewprofilepage/user-id/636802)

thank you for welcoming and you really fast answer.  
I attached what I mean, it is the text between the portal introduction and the first request type.

This just doesnt fit in how employees are addressed in the company.

![2024_03_25_08_42_29_IT_Serviceportal_Jira_Service_Management_und_2_weitere_Seiten_Gesch?ftlich_.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/314072iF03EE721137CC083/image-size/large?v=v2&px=999 "2024_03_25_08_42_29_IT_Serviceportal_Jira_Service_Management_und_2_weitere_Seiten_Gesch?ftlich_.jpg")


author: Rudy Holtkamp
body: Ah I understand now, unfortunately there are a few texts which you can't change, this is one of them.

To clarify: In the picture below you can't change the text in orange boxes, you can change everything in the green boxes.

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


author: Sebastian Brunner
body: Ah, I see.  
I cant geht the sense of making it non-changeable...

But ok, it is what it is I guess.

Thank you for informations :)


Tags: cloud

jira-service-management

jira-service-management-cloud
jira only runs on port number not in domain why??
Asked by anish bhusal:

hello everyone,

Hope you all doing well, i am trying to solve jira problem from few days but unable to do that.

my problem:

i want to run my jira in my domain suppose jira.anishbhusal.net but unable to run in my domain . but when i type domain and port at a same time then it is opening like: jira.anishbhusal.net:2021 and it can ba accessiable with ip+port to but i want to remove port and only run in a domain . i am using proxy to run my jira please help me

thanks in advance


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@anish bhusal](/t5/user/viewprofilepage/user-id/5460958) and welcome,

in order to do that you need to setup a reverse proxy in from of the application. Please take a look to the following article <https://confluence.atlassian.com/jirakb/configure-jira-to-run-behind-a-nginx-reverse-proxy-426115340.html>

Hope this helps,

Fabio


Tags: jira-service-desk-data-center

jira-service-management

jira-service-management-data-center
Not receiving verification email for new account
Asked by SD:

i have tried to create new account in jira but not receiving any mails from Jira for confirmation.

The domain was @edag.com.my

Can you help me to check this, if was blocked or supported.? Thank you!


Answers:
author: Nikola Perisic
body: Welcome to the community [@SD](/t5/user/viewprofilepage/user-id/5460981)

First, did you check your personal settings, to see if the needed checkboxes are checked like you are the watcher of the issue, assignee to be able to receive the notifications? If that is done, then it is possible that your email address is under the suppression list on the Atlassian list. To solve this, raise a support ticket for them: <https://support.atlassian.com/contact/#/>


Tags: jira-service-desk-data-center

jira-service-management

jira-service-management-data-center