youngmon/atlassian-qna huggingface dataset:
Unable to publish artifact
Asked by swati.awate:

How to supress the error message coming from log

: Unable to publish artifact \[PDFReport\]: the source directory C:\\Users\\\*\*\*\*\*\*\*\*\*\*\*\\xml-data\\build-dir\\PDFGEN-TES-JOB1\\Checkmarx\\Reports does not exist.

Following are the configurations which I had done at job level:

![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/324407i09EAF898850DBCE3/image-size/large?v=v2&px=999 "Capture.PNG")![Capture2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/324410i35C13B979A4969A1/image-size/large?v=v2&px=999 "Capture2.PNG")![Capture1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/324411i004FAEA76697FF87/image-size/large?v=v2&px=999 "Capture1.PNG")


Answers:
author: Khushboo Gupta
body: Hello [@swati.awate](/t5/user/viewprofilepage/user-id/5441352)

Welcome to Atlassian community!

The error message you're seeing is indicating that the process is trying to access a directory to find the PDF report to publish, but it cannot find the specified directory.

Post checking the screenshot from artifact definition it seems you have used forward slashes (/) which is for unix-like system, Windows uses backslashes (`\`) as path separators.

In this case, you would use `Checkmarx\Reports and similarly for copy patterns field too. `

`Try following this and check if this works!`

Regards,

Khushboo Gupta

**\*\*please don't forget to Accept the answer if your query was answered\*\***
Bamboo Rest API always returns 401 from Powershell
Asked by Ma Ki:

Hello,

i?m trying to access the Bamboo REST API from Powershell. I want to automate some configurations. When i send the Request with a tool like Bruno or Postman i will receive an correct answer. When using the exact same Request from Powershell (From within VSCode or native PowerShell cmd window) i always get an error "System.Net.WebException: Der Remoteserver hat einen Fehler zur?ckgegeben: (401) Nicht autorisiert."

I tried to use Invoke-WebRequest and/or Invoke-RestMethod. I encoded the Token in UTF-8, used EscapeDataString, \[Net.SecurityProtocolType\]::Tls12, Token in Single-Quote or Double-Quote and so on. I?m not able to get this working from Powershell. Is there any advice where to search for any clue?

Here is my Powershell Code:  

```
$token = "<MyToken>" # Access Token from Bamboo Profile
$bambooheaders = @{
  Authorization = "Bearer $token"
  "Content-Type"="application/json"
}

$url = 'http://<MyURL>/rest/api/latest/deploy/project/forPlan?planKey=PDCS-ZWZ'

try {
  $Response = Invoke-WebRequest -Uri $url -Headers $bambooheaders -Method Get 
  Write-Host $Response
} catch {
  Write-Host $_.Exception  -ForegroundColor Red;
}
```

Any help is much appreciated, since this is very frustrating.


Answers:
author: Shashank Kumar
body: Hello Ma Ki,

Welcome to Atlassian community

Can you use the above REST API as Curl in your powershell script task and let me know if you still see 401 error?

```
curl -H "Authorization: Bearer token_value" \
-H 'Content-type: application/json' \
-H 'Accept: application/json' \
-X GET http://MYURL/rest/api/latest/deploy/project/forPlan?planKey=PDCS-ZWZ
```

Replace token-value and MYURL with correct values.

Regards,

shashank kumar

**\*\*please don't forget to Accept the answer if your query was answered\*\***

comments: author: Ma Ki
body: Hello.

Sorry for the late Response. The curl is the same as the Invoke-WebRequest. And even when trying i still get the error.

BUT, i have solved it by coincidence. I tried some testings with Bruno and Postman in order to get multiple requests been sent out with different values. Within Postman i discovered that there is always an additional request, which said that the request has been forwarded. Delving into the Console Logs i found the issue. The URL has to be slightly altered in two ways:

- It has to be **https** instead of http  
AND  
- you have to set the port (although it is default) to **:443**

**-\> https:\\\\\<url\>:443\\...**

After that the request worked fine.

In the end a very simple solution, but finding the real error was a bummer.


author: Shashank Kumar
body: Thanks for letting us know the solution. Glad to know the issue is now solved!
import and export data from bamboo
Asked by Snehal Jadhav:

whenever I try to import the bamboo data from a instance to b instance its vanish the previous data from that b bamboo instance and only a instance data get imported into it.But i want b bamboo data as well as a bamboo instance data in b instance.


Answers:
author: Shashank Kumar
body: Hello Snehal,

Welcome to Atlassian community.

When you use Import/Export the data from the previous Instance is deleted and data from the previous Instance is deleted, this is expected as per [Bamboo Import](https://confluence.atlassian.com/bamboo/importing-data-from-backup-289277260.html)

* The import process will *delete* your Bamboo installation and restore data from a previous export of Bamboo. This includes login data, so you will need to know an administration login in the Bamboo data to be imported.

Regards,

Shashank kumar

**\*\*please don't forget to Accept the answer if your query was answered\*\***

comments: author: Snehal Jadhav
body: this scenario is same for Jira ?


author: Shashank Kumar
body: Hey Snehal,

It may not be same for Jira, please post a question in Jira community to get the right answers.

Regards,

Shashank Kumar


author: Snehal Jadhav
body: only 2 projects from existing BAMBOO to exported and importing these (which are exported projects) to other BAMBOO (which has already many projects \& data) , it will work ?


author: Shashank Kumar
body: Hello Snehal,

Sorry this won't work, you'll have to manually create the project the plans.

However there is a feature request raised for the same since a long time \> <https://jira.atlassian.com/browse/BAM-1223>, however it has not got much traction probably because of Bamboo specs which does the same thing but in a different way.

Regards,

Shashank Kumar


author: Anik Sengupta
body: Adding to what Shashank said , if you want to keep the data in instance b intact and then use data in instance b You can by pass the import/export option i.e If your current instance has grown too large and export/import does not work, you can still clone your instance by using an alternative backup and restore strategy.

a) Stop the original Bamboo instance.  
b) Create a backup of the DB, rename it to DB backup of instance b  
c) Backup the \<bamboo-home\> directory in the new instance   
d) Transfer the compressed original \<bamboo-home\> directory from the old server to the new server where you installed the new Bamboo instance.  
d) Replace the content of the new \<bamboo-home\> directory with the unzipped \<home-directory\> content.  
e) Import the external database backup into the new DB instance  
f) Start the new Bamboo instance.

comments: author: Snehal Jadhav
body: yes, we are doing import/export only. but whenever we are trying for import data from A bamboo to B bamboo , current data which is present in B bamboo it will get revoke automatically and the data which present in A bamboo its get imported . but we want both
Can cluster-node.properties be removed on single node installs
Asked by Steven Brannan:

Security scanners are finding issues with a certificate being used for port 9090 (clustering mode) can cluster-node.properties and or port 9090 be deleted on single node installations


Answers:
author: Eduardo Alvarenga
body: Hello [@Steven Brannan](/t5/user/viewprofilepage/user-id/5478139),

Bamboo will listen to port 9090 and have a cluster-ready environment by design. There is no way to explicitly disable such feature.

If you would like to disable such behaviour, you'd have to block incoming traffic on port 9090 on your server by using a firewall or network filter rules.

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**

comments: author: Steven Brannan
body: Thank you. That is what I suspected. I will have the port blocked.
Bamboo Webhook Notification MS Teams
Asked by Bongani Buthelezi:

Hello,

I'm having issues with the Bamboo and MS Teams notification integration for my build plans using webhooks. The configuration seems to be okay but for some reason the notifications sent to my teams channel are blank.  

The notifications are configured to alert on "All Builds Completed". Not sure yet which notification template I need to change for this to work as expected.  

![Bamboo MS Teams.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/323255i627321D308CE1329/image-size/large?v=v2&px=999 "Bamboo MS Teams.PNG")

Respectfully,

Bongani Buthelezi


Answers:
author: Move Work Forward
body: Hi [@Bongani Buthelezi](/t5/user/viewprofilepage/user-id/5486928)

Thank you for asking. Are you using [Microsoft Teams Bamboo Connector](https://marketplace.atlassian.com/apps/1216442/microsoft-teams-bamboo-connector?tab=overview&hosting=datacenter)?

If so, please contact [our support](https://moveworkforward.atlassian.net/servicedesk/customer/portal/1) and we'll glad to assist.

Thanks,  
Leo

comments: author: Bongani Buthelezi
body: Hi Leo,  
Thanks for your response.  

We're not using the connector. On the Bamboo version 9.6.0 the Microsoft Teams "Recipient type" doesn't seem to exist hence we using the webhooks with the "Incoming Webhook" from the Teams channel configured.  

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

I hope this helps.  

Respectfully,

Bongani Buthelezi


author: Move Work Forward
body: Hi,

but of course it will not work. Microsoft Teams does not understand the Bamboo webhooks.

This is one of the main reasons we built the Microsoft Teams Bamboo Connector.

please let me know if I can be of any help.

Regards,

Leo


author: Bongani Buthelezi
body: Thanks Leo. I tested with the Connector and it works just fine.


author: Move Work Forward
body: ?
Run Only Incomplete Jobs From A Stage
Asked by Matei Alexandru Nedelschi:

Is there a way to only run the incomplete jobs from a stage, rather than running the whole failed and incomplete jobs at once?


Answers:
author: Shashank Kumar
body: Hello Matei,

Welcome to Atlassian community.

You can do this by clicking on Run Button and choosing "Rerun failed/incomplete jobs only", refer [Troubleshooting "Rerun failed/incomplete jobs only" option missing from dropdown for certain failed builds in Bamboo](https://confluence.atlassian.com/bamkb/troubleshooting-rerun-failed-incomplete-jobs-only-option-missing-from-dropdown-for-certain-failed-builds-in-bamboo-1115659730.html) which talks about the same thing.

You'll get that option when you first stop the whole running Build for that plan.

Regards,

Shashank Kumar

**\*\*please don't forget to Accept the answer if your query was answered\*\***

comments: author: Matei Alexandru Nedelschi
body: Hello Shashank,

Thank you for the response, I know about that option but, my question was that if I could somehow only run the incomplete jobs from a stage and leave the failed ones unchanged.

Kindest regards,

Matei Nedelschi


author: Shashank Kumar
body: Hello Matei,

As far as I am aware you cannot run a specific Job for a Plan.

I was thinking may [REST API](https://developer.atlassian.com/server/bamboo/rest/api-group-api/#api-api-latest-queue-projectkey-buildkey-buildnumber-put) can help, but unfortunately there isin't.

Your request is similar to this feature request raised <https://jira.atlassian.com/browse/BAM-21311> but it hasn't gathered much voting for being developed.

Regards,

Shashank Kumar
Does -Dbamboo.delete.remote.agents.on.going.offline=true work?
Asked by Udo Hagemann _Decadis AG_:

Hi,

[How to configure Bamboo to automatically delete offline remote agents \| Bamboo \| Atlassian Documentation](https://confluence.atlassian.com/bamkb/how-to-configure-bamboo-to-automatically-delete-offline-remote-agents-1375862917.html) informs about a new system property to automatically remove agents entering offline state. On a test 9.6.2 instance with JVM_SUPPORT_RECOMMENDED_ARGS containing "-Dbamboo.delete.remote.agents.on.going.offline=true", offline agents are still present after hours.

Has anyone successfully configured this feature?

Kind regards!


Answers:
author: Eduardo Alvarenga
body: Hello [@Udo Hagemann _Decadis AG_](/t5/user/viewprofilepage/user-id/4357514)

Thank you for the message. We are working internally to reproduce the issue and will get back to you soon.

Kind Regards,

Eduardo Alvarenga  
Atlassian Support APAC

comments: author: Eduardo Alvarenga
body: Hello [@Udo Hagemann _Decadis AG_](/t5/user/viewprofilepage/user-id/4357514)

We detected that the latest Bamboo release was missing the *"-Dbamboo.delete.remote.agents.on.going.offline=true"* feature. However, we've rectified this and the feature should be included in the upcoming releases 9.6.3 and 10.0.0.

We apologize for any inconvenience caused.

Thank you and kind regards,

Eduardo Alvarenga  
Atlassian Support APAC
Data Center Bamboo and academic license discount
Asked by Mark Wolff:

I work for a university research center and have been using Jira/Crucible/Crowd/Fisheye/Bamboo for more than a decade. I have a small Bamboo installation on an air-gapped network. I want to renew the license, but now it appears I move to data center. Not a problem. I am filling out an invoice for a new data center license of the same size to replace the old one, but I don't see the usual "academic pricing" box. I've been reading through the academic pricing article and Bamboo isn't mentioned as a product with a discount. Is Bamboo no longer part of the program?


Answers:
author: Shashank Kumar
body: Hello Mark,

Welcome to Atlassian community.

As per [Bamboo Licensing](https://www.atlassian.com/licensing/bamboo) I can see Bamboo Data center does provide Academic License, see below

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

If you are having any trouble in generating the right quote, I think contacting the Billing and Licensing team would be the right step to get this addressed.

<https://www.atlassian.com/company/contact/purchasing-licensing?redirectSource=sac-wac-redirect#/>

Regards,

Shashank Kumar

**\*\*please don't forget to Accept the answer if your query was answered\*\***


Tags: server
Need Help with API to Programmatically Map Projects/Plans to Users or Groups in Bamboo
Asked by Arun Sankar:

Hello Atlassian Community,  

I am developing a web application that integrates with Bamboo, where we need to programmatically determine which projects and plans a specific user has access to. We're currently displaying a list of projects and plans for the logged-in user, but this is managed manually, and we're looking to automate this process.  

Requirements:  
Automate the retrieval of projects and plans a specific user or group has access to in Bamboo.  
Ensure that the solution scales as the number of users and projects/plans grows.  
Current Setup:  
Our web app currently displays a list of projects and plans. This is based on manual configurations and lacks the desired automation for scaling.  
We have explored the Bamboo REST API but found no direct way to fetch or manage user-specific access to projects and plans.  

Specific Questions:  
Is there an existing API or method within Bamboo that allows fetching projects and plans accessible by a specific user or group?  
Has anyone implemented a custom solution or workaround---such as a plugin or script---that integrates with Bamboo to manage such permissions programmatically?  
Are there third-party tools or integrations that can facilitate this automation by interfacing directly with Bamboo or its database?  

Considerations:  
We are open to developing a custom plugin using the Atlassian SDK if that is the recommended approach.  
Any advice on handling potential security implications when exposing user-specific data would also be appreciated.  

I appreciate any guidance or references you can provide to help us automate this crucial aspect of our application. Looking forward to your suggestions and any shared experiences with similar challenges!  

Thanks in advance.


Answers:
author: Anik Sengupta
body: Hi Arun,

Welcome to Atlassian Community !

As per your requirement , may be you can refer the below Knowledge base which has the list of SQL queries whichh will give you the mappings for Build Projects and Plans, Deployment Plans, Deployment Environments and Global Permissions.

<https://confluence.atlassian.com/bamkb/how-to-retrieve-user-and-group-access-mappings-permissions-from-the-bamboo-database-859516551.html>

Let us know if there's anything else we can do to assist -- we'd be happy to help.

**Regards,**   
**Anik Sengupta**

**\*\*please don't forget to Accept the answer if your query was answered\*\***

comments: author: Arun Sankar
body: Thanks [@Anik Sengupta](/t5/user/viewprofilepage/user-id/4672627)   
Is there any other alternate solution?


Tags: app

atlassian

database

plan

project

rest-api

user-group
Using REST Api to query plan, stage, job and task detail
Asked by Ron Turner:

I have created a Bamboo project ( version 9.2.11) with a plan that includes stages jobs and tasks. I have not yet built the project only configured the plan stages jobs and tasks.

I am able to use the REST API to query project and plan information with no problem.

For example, "<https://bamboo....../bamboo/rest/api/latest/project/>\<PROJECT-KEY\>" returns my project name.

For example, "<https://bamboo....../bamboo/rest/api/latest/project/>\<PROJECT-KEY\>?expand=plans" returns a list of my plans

For example, "<https://bamboo....../bamboo/rest/api/latest/plan/>\<PLAN-KEY\>?expand=stages" returns stages for a given plan.

These all work fine. The issue comes in when I attempt to query deeper into a stage to get job and task information. What would the syntax be list out all the jobs in a stage? What about all the tasks in a job? What about the config information for a task?

Thanks


Answers:
author: Shashank Kumar
body: Hello Ron,

Welcome to Atlassian Community.

For Jobs you can use the below REST API, details are available [here](https://developer.atlassian.com/server/bamboo/rest/api-group-api/#api-api-latest-search-jobs-plankey-get)

```
 curl --request GET \
--user user_id:password \
--url 'http://bamboo921:8085/rest/api/latest/search/jobs/PLAN-KEY' \
--header 'Accept: application/json'
```

For Tasks currently there is no REST API, however there is a feature request created you can refer for more details [BAM-20540 API to produce a list of build plans and their corresponding tasks](https://jira.atlassian.com/browse/BAM-20540)

There are couple of workarounds you can follow for example

1. Export the plan as specs via REST API to view all the plans, Jobs and the Tasks

2. Run a DB query to extract the result from the Database.

Do let me know if anyone of the workarounds interests you, I'll try to help you with that.

Regards,

Shashank Kumar

**\*\*please don't forget to Accept the answer if your query was answered\*\***
How can I merge different branches of the same repository?
Asked by Dale Binkley:

I want to merge my dev branch into my test branch. I was trying to use the Bamboo Repository Commit task but not sure how to commit to a different branch.


Answers:
author: Shashank Kumar
body: Hello Dale,

Welcome to Atlassian community.

You can look at [Bamboo Automatic branch merging](https://confluence.atlassian.com/bamboo/using-plan-branches-289276872.html#Usingplanbranches-Automaticbranchmerging) functionality to see if this helps you!

Regards

Shashank Kumar

**\*please don't forget to Accept the answer if your query was answered\*\***


author: Jyothi Charupalli
body: Hi [@Dale Binkley](/t5/user/viewprofilepage/user-id/4737864) ,

Welcome to Atlassian Community!

In Bamboo, for automatic branch merging we have two merging models if you choose to automate your branch merging:

* *Branch Updater* --- a branch repo is kept up-to-date with changes to master. Note that changes on your master branch do not trigger branch builds.

<!-- -->

* *Gatekeeper* --- the default repo is only updated with changes in the branch that have built successfully.

Please refer to this document under "Automatic branch merging" section for more details. <https://confluence.atlassian.com/bamboo/using-plan-branches-289276872.html>

Best Regards,

Jyothi  
**\*\*please don't forget to Accept the answer if your query was answered\*\***

comments: author: Dale Binkley
body: this looks like it'll work- need some time to digest.

Thanks for the answer

Dale


Tags: bitbucket
Digicert keylocket integration with bamboo
Asked by anshul gupta:

Hello Community,

We need urgent help in digicert keylocker integration with bamboo. I sign the script using digicert keylocker. Manually I am able to run the script however when I try to run via bamboo task, it failed with authorization issue. Bamboo doesn't recognize digicert keylocker certificate.

Please help


Answers:
author: Khushboo Gupta
body: Hello [@anshul gupta](/t5/user/viewprofilepage/user-id/5479626)

I understand that you're encountering issues with Bamboo not recognizing the DigiCert KeyLocker certificate. Here are a few suggestions that might help resolve the issue:

1.**Check the Bamboo build agent's permissions**: The user under which the Bamboo agent is running should have the necessary permissions to access and use the certificate. If the agent is running as a service, it might be using a different user context that does not have access to the certificate.

2. **Import the certificate into the Java Keystore**: Bamboo, being a Java application, uses the Java Keystore for its certificates. You can try importing the DigiCert KeyLocker certificate into the Java Keystore used by Bamboo.

Here is a command example to import a certificate into the Java Keystore:

**keytool -import -alias myalias -file mycertificate.cer -keystore cacerts**   

Replace \`myalias\` with a unique name for this certificate in the Java Keystore, \`mycertificate.cer\` with the path to your certificate file, and \`cacerts\` with the path to the Java Keystore file used by your Bamboo installation (usually located in your Java installation directory under \`jre/lib/security/cacerts\`).

3. **Configure Bamboo to use the certificate:** Script Task Configuration: Check how the script is executed in Bamboo. If it's a PowerShell script, you may need to add the `-File` parameter and ensure it's called with the necessary privileges. The task configuration should look something like this: **powershell -File "path\\to\\script.ps1**

4. **Execution Policy** : Bamboo's default shell is bash, so you need to make sure that your Bamboo task is configured to use PowerShell. Also, check the PowerShell execution policy on the Bamboo agent. If the execution policy is set to Restricted, scripts won't run. You can check the execution policy by running \`**Get-ExecutionPolicy** \` in PowerShell, and you can change it by running \`**Set-ExecutionPolicy Unrestricted**\` (Please consider the security implications before changing this setting).

**Please let me know if you're still facing issues after trying these steps.**

Regards,

Khushboo Gupta

**\*please don't forget to Accept the answer if your query was answered\***