youngmon/atlassian-qna huggingface dataset:
Bamboo variable resolve to empty string in powershell script
Asked by Terence Tham:

I've got a powershell script within a git repository that I use to build the project.

In the script, I'm trying to run the following command

```
Get-ChildItem -Path ${bamboo.build.working.directory}\src -Filter project.json -Recurse | ForEach-Object { &amp; dnu restore $_.FullName 2&gt;1 }
```

and the above returns the following error

|----------------------|-----------------------------------------------------------------------------------------|
| 11-Feb-2016 12:39:43 | Get-ChildItem : Access to the path 'C:\\cygwin\\home\\Administrator\\.ssh' is denied.   |
| 11-Feb-2016 12:39:43 | At C:\\build\\FCL-FCRP-JOB1\\Build\\01_Build.ps1:26 char:1                              |
| 11-Feb-2016 12:39:43 | + Get-ChildItem -Path ${bamboo.build.working.directory}\\src -Filter project.json - ... |

The above script would run fine as INLINE, but the variable would resolve to empty string if it ran as a File.

Does anyone experience the same problem? Or am I missing something here?

Thank you.


Answers:
author: rverschoor
body: Bamboo can indeed only expand variables when you use an inline script.  
When you use a script file, PowerShell has absolutely no knowledge what those ${bamboo...} things are.

Passing them as arguments, or use the Bamboo environment variables, will do the trick.

comments: author: fabcrm
body: It would be really useful to back up your answers with a working example.


author: Terence Tham
body: To answer my own question, it turns out if you use powershell script inline, bamboo automatically substitute the bamboo variable into their respective values. However if you run it as a file, then you need to pass in the bamboo variable as arguments, so you need a param block inside the script file.


Tags: cloud
SSLHandshakeException on connection to SVN repository
Asked by Ivan Scattergood:

Hi

I am getting the following error when trying to check out code from my svn repository using bamboo:

svn: E175002: Connection has been shutdown: [javax.net](http://javax.net).ssl.SSLHandshakeException: Received fatal alert: handshake_failure

I can run the svn command line without an issue, I have enabled logging for the SVN client, but the debug logging doesn't really give me any more information.

My svn repository is in cloudforge


Answers:
author: Yves Berquin [Matrix Requirements]
body: Hello Ivan,

We are the developers of the [Svn Gateway add-on for JIRA Cloud](https://marketplace.atlassian.com/plugins/com.matrixreq.svnpluginpro/cloud/overview). We've had some issues like that with some customers having their repository at cloudforge.

I suggest you go to this site: <https://www.ssllabs.com/ssltest/> to check the certificate of your particular subversion URL. If it's not so good (like C or lower), you can ask cloudforge to move your instance to a "better" server, until the test with the above service gives you better results.

This could solve your issue. It did for 2 of our customers.  
The issue was that the certificate was so poor that the Java libraries wouldn't accept it. Maybe it's similar in your case.

Yves


author: Ivan Scattergood
body: Yves,

I have checked the server and it gets an F ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")

I have requested a server move from Cloud Forge, they did it and its fixed the problem

Thanks very much for the help

Ivan


Tags: cloud

cloudforge

svn
Wrong redirect after logging in with Bamboo behind mod_proxy
Asked by Maxfield B:

When running Bamboo behind apache proxy, and visiting /, we get redirected to:

/userlogin!default.action?os_destination=%252Fstart.action

so that after login, we get redirected to:

/%2Fstart.action

which generates a 404.

of course /start.action works.


Answers:
author: Maxfield B
body: The actual problem was missing **redirectPort** element on 8085 connector definition in *server.xml*.


author: Mr. Wolf
body: Hi @Maxfield B,  
if you are using a rewrites in you apache configuration, please add the NE Flag to you rewrite rule.

<https://confluence.atlassian.com/display/BAMKB/404+page+as+a+result+of+double-encoded+slashes+in+the+URL+when+using+Apache>

Greetings,  
Oliver

comments: author: Maxfield B
body: Thanks for taking the time to answer :smile: The problem was different than what you suggest, but one of the comments on that page helped me solve the problem.


Tags: bamboo-administration
Bamboo artifact storage: package threshold
Asked by Kristian Svensson:

Hi,

Recently the setting Package threshold was introduced in the artifact storage settings. It will zip the contents if the number of files is over the threshold.

We prefer to always have the artifacts as separate files. Is there a way to achieve that? Is there a performance impact on having the value too high?

Regards,

Kristian


Answers:
author: Marcin Gardias
body: You can set this value to some high number and that would do the trick. However, each *file* upload (and download) needs to be separate request to Amazon S3, which means:

* it will slow things down
* you'll possibly pay more for your AWS services, as Amazon charges for S3 requests


Tags: cloud
Bamboo artifact transfer
Asked by RAHUPATI:

Hi,

How can I transfer the artifact generated in Bamboo to a different unix/window server.


Answers:
author: Bob Swift (personal)
body: 1. You can use the ssh task to push from the build itself
2. You can pull an artifact out of Bamboo using [getArtifact](https://bobswift.atlassian.net/wiki/display/BCLI/Reference#Reference-getArtifact) from [Bamboo Command Line Interface (CLI)](https://bobswift.atlassian.net/wiki/display/BCLI)
Checkout Directory for Source Code
Asked by James Wallace:

*This question is in reference to Atlassian Documentation: [Checking out code](https://confluence.atlassian.com/pages/viewpage.action?pageId=737184013)*

When specifying a directory to check out to, is the code checked out into a folder named after the repo IN that directory, as git usually does it? i.e. if I have a repo named 'code', and specify a checkout directory of /var/www/, will the code end up in /var/www/code/\* ? or as /var/www/\* ?


Answers:
author: Mr. Wolf
body: Hi,  
if you do a

**git clone <https://owolf@example.com/scm/code/example.git>**

you will find your code in a subfolder which is named like your repository name (in this case**/tmp/example** ) of your current directory (**/tmp**).

To checkout your Repository into another folder you can execute this :

**git clone <https://owolf@example.com/scm/code/example.git> /tmp/my-code**

Now you will find your code in **/tmp/my-code**

Greetings,

Oliver


Tags: check-out
Inline script task with powershell commands does not fail the bamboo deployment project when errored out or during any exceptions
Asked by Rathan Kumar:

Hi

I am using below script to connect to remote server and shut the cluster service and then deploy packages.

this is cluster service shut down script

$SvcName = '${bamboo.ServiceName}'  
$SvrNames = '${bamboo.deploy.hostname}'  
#$SvcName = "'" + $SvcName + "'"  
$SvrName = $SvrNames\[0\]

Try {

$services = Get-WmiObject -Computer $SvrName -Authentication PacketPrivacy -namespace 'root\\mscluster' \`  
MSCluster_Resource \| Where {$_.Type -eq "Generic Service"} \| Where {$_.name -eq $SvcName}  
If (-Not $Services)   
{$SvcName + " is not installed on this computer."}   
else  
{  
Switch($services.state)  
{  
'2'  
{  
Write-host "Cluster service $SvcName is online"  
$SvcName = "'" + $SvcName + "'"  
$cmd = "CLUSTER RES"+' '+$SvcName+' '+"/ON"  
$cmd1=\[scriptblock\]::Create($cmd)  
Invoke-command -computername $SvrName -ScriptBlock $cmd1  
start-sleep -s 10  
Write-host "$SvcName is Offline"  
}  

'3'  
{  
Write-host "Cluster service $SvcName is Offline"  
Write-Host $_.Exception  
Write-Host $_.Exception.Message  
start-sleep -s 10  
Break   
}  

'4'{  
Write-host "Cluster service $SvcName is in Falied state, Please login to $SvrNames and check event logs"  
start-sleep -s 10  
}

}  
}  
}  
Catch  
{  
$error\[0\].exception  
Write-Host $_.Exception  
Write-Host $_.Exception.Message  
Break  
}

Why does Bamboo does not fail when there is a clear exception or an error message in the deploy logs.

do i need to do something different here


Answers:
author: Marcin Gardias
body: Bamboo has no idea if the errors in the log are important or not. If your script fail it should return non-zero exit code to indicate that.


Tags: bamboo-deployment

continuous-delivery

deployment
Do you have to be an admin to set up a build on Bamboo?
Asked by Registered User:

I want to provide my QA Automation the ability to set up builds on Bamboo (we are on the Atlassian Cloud) but he is getting an error that says "Not authourised to configure plans. There are no builds configured in Bamboo. You do not have the correct privileges to set up a build. Please contact an administrator for further assistance."

I don't want to make him an Atlassian admin because that would give him access to everything. I can't find a permission group that seems to apply. He is already a member of bamboo-users and has application access obviously.

How do I enable the permission for this user to create builds on Bamboo?


Answers:
author: Registered User
body: Answering this myself. One way to get this to work is to create a new type of user (e.g. bamboo-admin) and then add them to global permissions builds/admin/viewGlobalPermissions.action for Create Plan and Restricted Admin


Tags: cloud
When can we expect compatibility with 5.10.x for the HungBuildKiller
Asked by Caleb Anderson:

I love this plugin but it says it is incompatible after I upgraded to Bamboo 5.10. When can we expect it to be listed as compatible?


Answers:
author: Krystian Brazulewicz
body: Hi Caleb

Do you expect any other problems except the message in Manage add-ons console?


Tags: bamboo-administration
What is step 6?
Asked by Elijah Robertson:

*This question is in reference to Atlassian Documentation: [A sample deployment project](https://confluence.atlassian.com/pages/viewpage.action?pageId=365658897)*

I don't see a step 6! Jumps from step 5 to step 7.  
[](https://community.atlassian.com/t5/Bamboo-questions/What-is-step-6/qaq-p/163726?attachment-id=7262){#link_11679cfbf31249}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/28667/1/image2016-2-4%209%3A41%3A20.png){#display_11679cfbf31249_0}  
[](https://community.atlassian.com/t5/Bamboo-questions/What-is-step-6/qaq-p/163726?attachment-id=7263){#link_11679cfbf31249_0}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/28667/2/image2016-2-4%209%3A40%3A57.png){#display_11679cfbf31249_2}


Answers:
author: Jonas Andersson
body: I see it, look again :wink:

comments: author: Elijah Robertson
body: Strange. Here's what I'm seeing on Chrome and IE:

![](https://answers.atlassian.com/download/attachments/35776652/image2016-2-4%209%3A40%3A57.png?version=1&modificationDate=1454596918895&api=v2)

![](https://answers.atlassian.com/download/attachments/35776652/image2016-2-4%209%3A41%3A20.png?version=1&modificationDate=1454596918883&api=v2)

Just so we're not crazy, here's the URL I'm using: <https://confluence.atlassian.com/bamboo/a-sample-deployment-project-365658897.html>
Integrating bamboo with Git repository issue
Asked by pyalakac:

Hello Everyone,

I am facing an issue while Test connecting to Git Repository from bamboo.

We couldn't connect to the repository. Here's what we got back:  

```
Could not test connection using selected authentication method. Please save repository configuration first to upload the private key file.
```

Thanks,

Pradeep Y.


Answers:
author: John Gill
body: Ran into this issue as well. Didn't realize it was as easy as it was to fix. It's saying it can't TEST connection until you've saved the repo (dumb yes, but that's whats going on)   

You go to the bottom, click save then go into linked repos and then you can test and edit the repo. Not that intuitive but it works.


author: Mark James Brian Dela Cruz
body: Select the username and password authentication type works for me


author: Jayanta Kundu
body: I am facing similar type of issue using Bamboo-6.0.0, following are the few details of creating new repository:

Repository host : Git

Name : TESTREPO1

Repository URL : git://\<Host Name for on-premises Git Server\>:\<Port no for on- premises Git Server\>/\<Git Project path\>

Authentication type ? : SSH private key

Choose "Use shared credentials"

Shared credentials ? : \<Shared Credential what already created\>

Branch : master

Now while click on "Test connection" button getting bellow error:

**fatal: protocol error: bad line length character: HTTP**

Kindly let me know how to resolve this issue....

Thanks in advance.


author: maneeshrao66
body: **Hey,**

I am facing "We couldn't connect to the repository. The details you provided were invalid." when I tried to connect the Test Connection.


author: pyalakac
body: Thanks Jobin.

I have already uploaded the private key. Even though it is throwing the error.

comments: author: anton_komir_cetitec
body: Same, through source tree with the same private key without any problems could checkout and push.


author: Jobin Kuruvilla [Adaptavist]
body: Looks like you are using SSH protocol. It so, you need to upload a valid private key as suggested in the error message. Go to the linked repository and edit it to make the changes!
How to update an existing .json imported schema with delta data.
Asked by Derek Low:

I have an existing JSM Asset Management Schema that was created and populated using a .json data set.

Each object has several linked objects with both inbound and outbound references.

I need to refresh the schema to include new objects in the existing object type whilst retaining the integrity of the data in that object type. The new data is also in a .json format and will be imported through the importer.

I have tried this approach:  

<https://confluence.atlassian.com/jirakb/how-to-update-the-existing-objects-using-the-csv-import-in-assets-1299914393.html>

The problem is the import creates a new object type, without updating the existing one with only the deltas, and of course, all of the linked objects no longer exist in the newly imported object type.

Basically, I wasn't to update an existing object type, with new (delta) .json objects whilst retaining the integrity of all the existing objects.


Answers:
author: Pedro Arroyo
body: Hi,

I can speak from my experience using Assets and External Imports. Once the import is defined you need to make sure which attributes you have checked as identifiers. You can actually have more than one checked.

Whenever new objects get imported Assets will see the identifier, and if there's already one with the same value, it will update the properties that are different.

Make sure the Key attribute is not checked as an identifier in the import as that value is \*always\* different and you can't override it.


author: Eugenio Onofre
body: Hi [@Derek Low](/t5/user/viewprofilepage/user-id/5238664)

I would suggest using Jira Asset Management APIs to achieve what you want instead of the default import functionality.

The official documentation is below:  
<https://developer.atlassian.com/cloud/assets/rest/api-group-aql/#api-group-aql>

I know this require custom script development but is the easiest and safest way to achieve what you want.

Please remember to accept this answer in case it helps you resolve your question as it may also help other community members in the future.

Regards,  
Eugenio


Tags: cloud

jira-service-management

jira-service-management-cloud
A new user wants to see previous created tickets
Asked by Murat Oz:

Hello all,

I created a new user for a JSM project. This user can able to see the tickets she created but needs to see the tickets that were previously created tickets by the other users of the same project. Now she's getting permission error.

The user is in the customer list of the JSM project and also in the organization of the same project.


Answers:
author: Rilwan Ahmed
body: Hi [@Murat Oz](/t5/user/viewprofilepage/user-id/4185622) ,

Ask user to open the Jira customer portal and click on "Requests" --\> select the Organization.

In the new page opened, user can select what status of the ticket they needs to view.

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


Tags: cloud

jira-service-management

jira-service-management-cloud
Migration server to cloud error
Asked by Arnaud Magnan:

When attempting to migrate for server JSL to Cloud JSM we get an : " Error communicating with server" error.

How can we fix this ?


Answers:
author: Marc - Devoteam
body: Hi [@Arnaud Magnan](/t5/user/viewprofilepage/user-id/5401191)

Please read the following [article](https://support.atlassian.com/organization-administration/docs/ip-addresses-and-domains-for-atlassian-cloud-products/) on Atlassian URL's and IP-ranges, for the Cloud migrator see the additional [article](https://confluence.atlassian.com/jirakb/preparing-your-firewall-to-migrate-using-the-jira-cloud-migration-assistant-1026058250.html).

Make sure all the IP-ranges are whitelisted.


Tags: jira-service-management

jira-service-management-server

migration-customer-care

server
How to map external schemas in manual import for Assets
Asked by Jimi Wikman:

I am trying to make a manual import to Assets in cloud and I am struggling to find the relevant information for this.

What I am trying to do is to import a schema of objects (confluence spaces) and in there I have a reference to another object scheme called HR where I have an object caller User.

So I connect Space Owner to a User in another asset scheme

HR  
- User

Atlassian Platform Configuration  
- Confluence Spaces  
+Space Owner (attribute) that connect to User

I tried object having outR(objectType = "User"), but that just add my User everywhere :)


Answers:
author: Jimi Wikman
body: If anyone else get stuck on this the solution for me was the following:  

![Sk?rmbild 2024-01-09 125448.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/299613i837ADDDE1E3B1E46/image-size/large?v=v2&px=999 "Sk?rmbild 2024-01-09 125448.jpg")

Label =${Name of your CSV Column}

This is for single values.

Label IN ${Name of your CSV Column${0}}

This is if you have multiple values. If you have multiple users also make sure you have added the Concatenator as well.


author: Jeremy Cooley
body: Hi [@Jimi Wikman](/t5/user/viewprofilepage/user-id/5345762)   

I just came across this post about Assets and your HR schema. We recently created an HR Professionals community group that I wanted to put on your radar. It's just getting started so there isn't a ton of activity yet, but we're hoping to make it a place where customers, community leaders, and product managers can talk about how they are using (or wish they *could be* using) Atlassian Products for HR applications. If that sounds interesting, [check it out \& join!](https://community.atlassian.com/t5/Human-Resources-Professionals/gh-p/human-resources-professionals?&utm_campaign=community_groups_click_from_profile) See you in the group! Thanks!

Jeremy


Tags: cloud

insight

jira-service-management

jira-service-management-cloud
Customer portal fully in Spanish for Jira Cloud (JSM) is possible to build?
Asked by Vera Valshonok:

Hi Community,

Is it possible and the most efficient way to build a customer portal for them exclusively in Spanish, other languages won't work for the on Jira Service Management (Cloud)

The rest of the customers portals on the same site are in English.


Answers:
author: Rodrigo
body: Hello [@Vera Valshonok](/t5/user/viewprofilepage/user-id/5174542),

Expanding on Rebekka's on-point information:

Should your team connect Confluence as a database, you could then also translate all content/suggestions displayed for your users in Spanish via third-party apps. For example, we at bitvoodoo created a data-privacy first app called [Translations for Confluence](https://marketplace.atlassian.com/apps/28648/translations-for-confluence?hosting=cloud&tab=versions), which provides you with this possibility, but of course, there are more in the [Atlassian Marketplace](https://marketplace.atlassian.com/).

* Atlassian Documentation: [Integrate Confluence and Jira Service Management](https://www.atlassian.com/software/confluence/resources/guides/extend-functionality/confluence-jsm#link-jsm-confluence:~:text=Integrate%20Confluence%20and%20Jira%20Service%20Management)

Best regards and good luck!  
Rodrigo


author: Rebekka Heilmann _viadee_
body: Hi [@Vera Valshonok](/t5/user/viewprofilepage/user-id/5174542)

You can change the Project's (and therefore the portal's) default language under Project settings \> Language support

![Screenshot 2024-01-09 120431.png](https://community.atlassian.com/t5/image/serverpage/image-id/299595i6F1CB0D1245119D9/image-size/large?v=v2&px=999 "Screenshot 2024-01-09 120431.png")

You can add more languages there also and it will remind you to add translations to any Request type and other texts in the portal. I would advise to add Spanish as additional language rather than adding it as default, if everything else is in English as well.

JSM will always try to show the portal in the customer's profile language (if they are required to login and therefore have a profile) or the browser's language. Otherwise it will use the default language.

Remember, that the Help Desk (the "Homepage" of all your portals) would probably still be in English as I guess that's your System's default?


Tags: cloud

jira-service-management

jira-service-management-cloud
How to share jsm project to 3rd party without seeing another projects in help desk
Asked by Ravisekhar_g:

Hello,

I have around 10 service project in that I need to share only 1 service project to 3rd party to replay on ticket in help desk and no another project need not to show then in the portal when they open the shared Link

they need to show

Thanks

Ravi


Answers:
author: Rilwan Ahmed
body: Hi [@Ravisekhar_g](/t5/user/viewprofilepage/user-id/5325219) ,

You need to modify each projects customer permission to **restricted** or **Open** based on the requirement  
i.e. Go to Project settings --\> Customer permission --\> Channel access --\> set to Restricted.

Also in the project view left side bar --\> Customers, you can add required customers.

More details in <https://support.atlassian.com/jira-service-management-cloud/docs/change-project-customer-permissions/>


Tags: cloud

jira-service-management

jira-service-management-cloud
How to hide the optional tag
Asked by s sb:

![Screenshot 2024-01-09 163957.png](https://community.atlassian.com/t5/image/serverpage/image-id/299550i20AFC1B1E45A0668/image-size/large?v=v2&px=999 "Screenshot 2024-01-09 163957.png")

Hello everyone, I am wondering if it is possible to hide the "(optional)" tag in Jira Service Management when creating an issue.

I am aware that I can change the field to "required" in order to remove the "(optional)" tag, but I have other hidden selections and therefore cannot make the field required. The field needs to remain optional, but I simply do not want to display the "(optional)" label.


Answers:
author: Marc - Devoteam
body: Hi [@s sb](/t5/user/viewprofilepage/user-id/5401110)

Welcome to the community.

Currently this can't be done in Cloud on server/DC tis could be done with the marketplace app" Extension for Jira Service Desk.

The hide options in the app are rather not available in Cloud.


Tags: jira-service-desk-cloud

jira-service-management

jira-service-management-cloud