youngmon/atlassian-qna huggingface dataset:
Why does Bamboo build system not respect PowerShell return codes?
Asked by Aron Weiler:

I am using Bamboo Server 7.2.3.

Whenever I use `WINDOWS_POWER_SHELL` as the interpreter for scripts that I am running (either in the UI, or in YAML), I do not get a failed job / task when the script fails.

**Example YAML** (does not fail the build):

    - script:    interpreter: WINDOWS_POWER_SHELL    scripts:      - <FAILING COMMAND>

I would expect the above code to fail the job that is running this script task, but it does not.

The following code, however, **DOES** fail the build- notice that I am using the native script interpreter, `BINSH_OR_CMDEXE`.

**Example YAML** (fails correctly):

    - script:    interpreter: BINSH_OR_CMDEXE    scripts:      - <FAILING COMMAND>

This is pretty annoying, and I am wondering if I am crazy, or if there is a known bug in bamboo that would speak to this, or even hopefully a solution to this problem.


Answers:
author: Eduardo Alvarenga
body: Hey [@Aron Weiler](/t5/user/viewprofilepage/user-id/4649412)

Unfortunately, exit code handling in Powershell is not the most friendly. You'll need to exit with the exit code if it's non zero manually. For example, after each Invoke-Command you could set it up as follows:

```
Invoke-Command -ScriptBlock {command123 --options --setting 123}
if ($lastexitcode -ne 0) { exit $lastexitcode }

Invoke-Command -ScriptBlock {command123 --options --setting 456}
if ($lastexitcode -ne 0) { exit $lastexitcode }
```

Because the exit code will change after each command is invoked, you'll need it after each separate command where you could expect a failure that you'd want the build to abort.

Hope this helps. Let us know if you have any questions or concerns.

Eduardo Alvarenga  
Atlassian Support APAC

comments: author: Dirk
body: Hey [@Eduardo Alvarenga](/t5/user/viewprofilepage/user-id/4365410) ,

I have tried your solution, but it is not working. The follwing code ist executed in a "test.ps1" file from a YAML spec.

**Code 1 - Error by function**

```
function CheckErrorlevel($Scope){
  if($lastExitCode -ne "0")
  {
    Write-Host "Error: " $Scope " (" $lastExitCode ")"
    exit -100
  }
  else
  {
    Write-Host $Scope "OK."
    Write-Host $lastExitCode
  }
}
```

Code 2 - Error direct

```
Write-Host "DIRECT ERROR"
exit 2
```


Tags: powershell
Bamboo Build should NOT fail if JUnit parser task fail
Asked by Venkat Pasula:

We are using Bamboo Built in Maven task to compile java code , run tests and Junit Parser to parse the test results as shown below

**Stage 1**

**Job 1**

**Maven Task1**

**Junit Parser1**

**Stage 2**

**Job 2**

**Maven Task2**

**Junit Parser2**

If any test cases fail , Junit task is failing the entire build.

Is there a way we can make Junit parser NOT to fail the build?


Answers:
author: Cristiano Mariano
body: Hi [@Venkat Pasula](/t5/user/viewprofilepage/user-id/4664336) ! Welcome to the community!

In fact, I believe this is by design: we should not consider a build as "green" if it has failing tests.

As far as I remember, even without a Junit Parser task, the build would fail because Maven output would have an error code (this is why we always put our Junit Parser tasks as final).

Hope this helps!

comments: author: Pavithra Navaneeth
body: Hi [@Cristiano Mariano](/t5/user/viewprofilepage/user-id/541129)

I understand the intention behind the Junit parser task to fail for the test failure. But we have a specific need in our deployment pipeline - apart from unit test run, we recently included API contract testing as one of our stage and we want to display the test results in the artifact but do not want to fail the build (as we do not want to stop the deployment because of the failed test runs for now as its a new capability) Note: As this contract testing stage is not in the end, and we have other stage as final - we can't get a way out by making it as final

Is there any alternate options for this ?


Tags: junit
Can we triger the build using Bamboo rest API.
Asked by Sandeep:

Hi ,

can we triger the build using Bambo rest API or we can create a custom ApI. Do we have any api will consume this.

Is it possible ..can you please suggest or give any inputs on this.

Thanks,

Kumar


Answers:
author: Steffen Opel _Utoolity_
body: Hi [@Sandeep](/t5/user/viewprofilepage/user-id/4664119), welcome to the Atlassian Community!

I guess you've figured this out by now, just in case - you can indeed trigger a build by sending a POST request to the [/queue](https://docs.atlassian.com/atlassian-bamboo/REST/8.1.1/#d2e6469) resource of the [Bamboo REST API](https://docs.atlassian.com/atlassian-bamboo/REST/latest/), more specifically:

* [/queue/{projectKey}-{buildKey}?stage\&executeAllStages\&customRevision](https://docs.atlassian.com/atlassian-bamboo/REST/8.1.1/#d2e6489) - *Fire build execution for specified plan. Effectively, this method adds build to the build queue, so is not guarantied that build would be executed immediately. \[...\]*

Cheers,  
Steffen


Tags: rest-api
Linked repositories
Asked by Darius Basznianin:

1. I migrate bamboo and bitbucket do different machine. I installed latest version of them. In bamboo I see errors related to linked repositories.

"**Could not access this repository in Bitbucket Server**

Bamboo was unable to verify connection to this repository. It might have been moved, deleted, or the current SSH key was revoked on Bitbucket Server. Click **Save repository** at the bottom of this screen to attempt to re-establish access to this repository."

2. When I click save I see on the top of page:  
"

* New access key is required but could not be added to Bitbucket Server.
* com.atlassian.bamboo.executor.CancelException: C:\\Program Files\\Git\\cmd\\git.exe could not be started: command \['C:\\Program Files\\Git\\cmd\\git.exe' version\] failed with code -1. Working directory was \[\\\]. \[\]"

3. In the log I have:  

2021-12-03 09:26:30,878 INFO \[http-nio-8085-exec-8\] \[BitbucketServerServerConfigurator\] Public key was added to Bitbucket Server (Bamboo user: dbasznianin@xxx.com, application: Bitbucket \[[http://bitbucket.xxx.local:7990](http://bitbucket.sandmeyersteel.local:7990)\], location: repository SSC/ssc_apps): ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxrO4KEtjVng6pIYGWqtBfUzNYY2NS02G5gIjCbeLDw4Xcc4yrv27+nG5JPgv7fJRAptD7jGK/yvKSLKrSW+S2HlCY7WLI4kBcPLHYUxIileUd6TqkfuYTdHQTsvIt9tzHSo4cEIe9tooawGGGeLfeMRKD4J9Oz71PN0QKoQXzS9tgofjr0dg6TjHZkeK6R/zJEYU3UgNPoo2lqt3n20r++ew04VDO7aE5Xa2hGifZiovSrJXwoped6SQArvfD2fP6VghDvClQj1GTg6HjedlRMhEox4Vjn/v7/NyO+kvTlAMAyR1rUiso9RHNfjJDvmn2hwjBulat70bHcOHUWmtx [http://bamboo.xxx.local:8085](http://bamboo.sandmeyersteel.local:8085)  
2021-12-03 09:26:30,891 INFO \[http-nio-8085-exec-8\] \[BitbucketServerServerConfigurator\] Can't authenticate with Bitbucket Server despite successful public key storage: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxrO4KEtjVng6pIYGWqtBfUzNYY2NS02G5gIjCbeLDw4Xcc4yrv27+nG5JPgv7fJRAptD7jGK/yvKSLKrSW+S2HlCY7WLI4kBcPLHYUxIileUd6TqkfuYTdHQTsvIt9tzHSo4cEIe9tooawGGGeLfeMRKD4J9Oz71PN0QKoQXzS9tgofjr0dg6TjHZkeK6R/zJEYU3UgNPoo2lqt3n20r++ew04VDO7aE5Xa2hGifZiovSrJXwoped6SQArvfD2fP6VghDvClQj1GTg6HjedlRMhEox4Vjn/v7/NyO+kvTlAMAyR1rUiso9RHNfjJDvmn2hwjBulat70bHcOHUWmtx [http://bamboo.xxx.local:8085](http://bamboo.sandmeyersteel.local:8085)  

Can anybody help with that? Thanks.


Answers:
author: Darius Basznianin
body: I figured out what was wrong.  

In "Server capabilities" section there was incorrect pat to the git.exe


Tags: server
How to input the Bamboo Build directory into script using Jenkins WORKSPACE variable?
Asked by Dale Binkley:

We are migrating to Bamboo from Jenkins. We have \~10 projects using the same core scripts. I am creating a new build project using Bamboo rather than Jenkins as a proof of concept task. So as not to be too disruptive, I must use the scripts that were created for Jenkins.

In the pipeline one script calls another and uses the Jenkins $WORKSPACE variable- I need to translate the Jenkins variable to Bamboo build directory. I've created an artifact (WORKSPACE=${bamboo.build.working.directory}, export the variable (export WORKSPACE=${bamboo.build.working.directory} even added the argument and environment variable. But still unable to pass the variable.

Any suggestions?


Answers:
author: Dale Binkley
body: Thanks to [Eduardo Alvarenga](https://community.atlassian.com/t5/user/viewprofilepage/user-id/4365410)

Found the answer from an earlier post:

<https://community.atlassian.com/t5/Bamboo-questions/How-to-use-Bamboo-variables-in-an-app-s-code/qaq-p/1690813>


author: Alexey Chystoprudov
body: Variable export will not be available for tasks.

You can use Inject Variable task to make environment variable available for other tasks, but then again it will have "bamboo." prefix and you need to make changes to your scripts to override WORKSPACE variable if bamboo.inject.YOUR_VAR exists

comments: author: Dale Binkley
body: I can't change the core scripts because we are still using Jenkins on other projects
How i run python commands in bamboo?
Asked by mutyala_satyaveni_intern:

Hi ,

This is the first time i am doing one CI/CD project. So that i need to run mkdocs build command in my bamboo console. But it wont work. How I run this command to get the output. I am manually installed python in my local machine and i run this command on that time i got the output. but while running into the bamboo it wont work. I set the environmental variable path also. But again the build get failed only. can you help me in this...


Answers:
author: Daniel Ebers
body: Hi [@mutyala_satyaveni_intern](/t5/user/viewprofilepage/user-id/4656393)

welcome to the Atlassian Community!

Seeing nobody relied to your question so far I looked into earlier posts in Community, it seems there was a similar question some time ago:

* **How to setup an Inline Python script** <https://community.atlassian.com/t5/Bamboo-questions/How-to-setup-an-Inline-Python-script/qaq-p/1000208>

Please compare and check if this is of help for your use case.

Regards,  
Daniel
Change Impact in Email Notifications
Asked by Justin Lewis:

Hello,

Any way to change from the standard color indicated in email notifications to call out Critical, Major, or Minor? And is there a way to rename them?

![Email Notice.png](https://community.atlassian.com/t5/image/serverpage/image-id/151068iC0A043BA41A80638/image-size/large?v=v2&px=999 "Email Notice.png")![Management Portal.png](https://community.atlassian.com/t5/image/serverpage/image-id/151070i9CB470EAA1E2DE96/image-size/large?v=v2&px=999 "Management Portal.png")


Answers:
author: Jesse Klein
body: Hi Justin,

This is Jesse from the Statuspage support team and thanks for reaching out about customizing your email notifications. Unfortunately, that is not a feature we currently have, however, we do have a feature request created for this to add some customization functionality. We're still waiting to get more people to show interest in a feature like this but we are aware there is some interest. Thanks for sharing your ask with us. We really appreciate it.

Regards,

Jesse

comments: author: Justin Lewis
body: HI Jesse,

Thank you for the response. I'll make a note and continue to monitor the thread for any development updates.

Cheers!

--Justin


Tags: cloud
how the colour of a api call changes in status page when a call fails?
Asked by Bulusu Venkatesh:

I have failed my api call for more than 2 hours and observed that the colour of the status bar changed after a particular time.

(1min-20mins)--Light Green

(20min-35min)--Yellow

(after35min-57min)--Orange

(after58min)--Red

1. Is my above observation correct, for continuous fail state call?

2. Is the duration of time between each colour change is same if the call is on the continuous warning state for more than 2 hours?


Answers:
author: Robert
body: Hi [@Bulusu Venkatesh](/t5/user/viewprofilepage/user-id/4457151) !

This section of our documentation should be helpful here:

<https://support.atlassian.com/statuspage/docs/display-historical-uptime-of-components/#Determining-the-color-of-a-given-day>

Specifically, here are the guidelines for color changes:
> * From 1-20 minutes, the color of the day moves increasingly toward until it is fully yellow
>
> * From 20-40 minutes, the color of the day moves increasingly toward until it is fully orange
>
> * From 40-60 minutes, the color of the days moves increasingly toward until it is fully red. Anything over 60 minutes of downtime is also fully red

comments: author: Shreshth Kaushik
body: Are these time frames for color changes fixed?


author: Egor
body: Hey [@Shreshth Kaushik](/t5/user/viewprofilepage/user-id/4970593)  

I'm afraid that these time frames for color are fixed and you cannot modify it.   

I understand it would be awesome to have the possibility to modify the default time frames, so I'll go ahead and open a new feature request for that. Thanks a lot for bringing this up to us :)   

Best Regards,

Egor


author: Chinar Goel
body: Hi Egor, please share by when this new feature will get deployed. At samsung, we've also requirement of customizing statuspage bar color coding.


author: Shivam Naik
body: Hi [@Chinar Goel](/t5/user/viewprofilepage/user-id/4559443) ,

Feature Request typically do not have ETAs attached to them due to the way Engineering completes tasks in their backlog, however, if this is something that is added to production, customers would receive notice of the update as a new feature in the product.

In regards to changing the color of aspects of the Statuspage, the Your Page\> Colors section would allow you to alter those colors:  
![Statuspage_-_Customize_page.png](https://community.atlassian.com/t5/image/serverpage/image-id/206633i374E5CF607AC8F5A/image-size/large?v=v2&px=999 "Statuspage_-_Customize_page.png")

Please let us know if you have any follow up questions!


Tags: cloud
I cant login in statuspage.io
Asked by thelittlepony:

Hello,

I cant login in manage.statuspage.io

If i login with google account me rederecting from manage.statuspage.io to id.atlassian.com and this in loop

If i login with email me rederecting from manage.statuspage.io to id.atlassian.com and Error: Server not responsibe


Answers:
author: Chris DeGidio
body: Hi there,

At the moment we do not have any login issues within the app. We ask that you submit a ticket with our support team at support.atlassian.com to see your exact customer information and see what might be going on with your login.

Please feel free to send that ticket in and we will be able to see what is going on. Thanks so much!

Regards,

Chris


Tags: cloud
cannot create a slack channel when I try to integrate my statuspage in slack
Asked by maximiliano:

:   I am trying to integrate our status page with slack but when I try to create the channel is giving me error, saying that channel name is invalid. This is the channel name #eden-statuspage

    ![Screen Shot 2021-07-08 at 16.39.21.png](https://community.atlassian.com/t5/image/serverpage/image-id/150802iABBA8757BE1D79E7/image-size/large?v=v2&px=999 "Screen Shot 2021-07-08 at 16.39.21.png")


Answers:
author: Daniel Eads
body: Hi [@maximiliano](/t5/user/viewprofilepage/user-id/4458443) ,

Up at the top-right of that screen, you should see a Slack workspace URL in the "Webhook URL" box. ([More details on Slack integration in our documentation](https://support.atlassian.com/statuspage/docs/set-up-a-slack-integration/))

Can you confirm that the channel #eden-statuspage **already exists** in the Slack workspace listed at that URL, and that your user account can open that channel?

Thanks,  
Daniel \| Atlassian Support

P.S. - if you're just looking to pipe*incidents* into that channel (i.e. you don't want the updates for Team members, Long-running open incidents, or Long-running degraded components), you can use the Slack subscription option to simply add the channel as a subscriber to your Statuspage instead of configuring the full integration. [See our product documentation for details on how to set this up and how it works](https://support.atlassian.com/statuspage/docs/enable-slack-subscriptions/)

comments: author: maximiliano
body: Hey thanks a lot. The issue was that we had not that channel in our slack. We need to create the channel first. I did created in my slack and now I can move on!!

I appreciate your help

thanks,

Max


author: maximiliano
body: I want to trigger my components/incidents from slack.


Tags: cloud
i cant import email subscribers using csv template
Asked by vasantharaman:

when i give import it gives an error "FPError 123. Include filepicker_debug.js for more info" and when i access in incognito mode i dont get this error however im not able to import bulk subscribers


Answers:
author: Chris DeGidio
body: Hi there,

It might help opening an ticket with us at Statuspage Support through support.atlassian.com

We have seen this issue come up in the past with clients. When they provide the file within the ticket for us to test we are able to import without issues.

One client actually reported it was an issue within their compliance system firewalls that were preventing it on their end. They were able to get around this by building out their import and hitting [Statuspage API](https://developer.statuspage.io/#operation/postPagesPageIdSubscribers)

Thanks so much


Tags: cloud
Statuspage Web Request Returns HTTP status 500 Response
Asked by Eric R Hartway:

Hello, I'm using the Statuspage api to create incidents in Statuspage using a Jira workflow. On certain Jira transitions, Jira automation sends the web request to statuspage. When testing outside of Jira (using powershell), there are no issues. When using the workflow/automation, the very first time it runs, I get an "HTTP status 500" error response. The next time I run it, using the same issue request or new one, the automation succeeds, and any subsequent web requests succeed. Can anyone help me in understanding why the first call fails? It seems to be time dependent. After the first failure, all works as expected right after. But, if I walk away and try again 30 minutes later, the first web request fails again, and any subsequent attempts work fine. See attached print screens for the error and the "create incident" web request.

![500 Error to Statuspage.png](/t5/image/serverpage/image-id/150554iF6A0BD4895410C3D/image-size/large?v=v2&px=999 "500 Error to Statuspage.png")![Create incident web request.png](/t5/image/serverpage/image-id/150555iC11760D5454CD8BE/image-size/large?v=v2&px=999 "Create incident web request.png")


Answers:
author: Eric R Hartway
body: Circling back after this issue has been resolved. The problem had to do with our configuration of the load balancer with our Jira dev environment, which only runs on one node. The issue does not persist in prod.

Thanks for the help,

Eric

comments: author: Chris DeGidio
body: That is great to hear Eric! Thanks for letting the community know :)


author: Chris DeGidio
body: Hi Eric,

That issue is quite interesting! I did look and found a similar issue being reported in this [community post](https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Send-web-request-HTTP-Status-500/qaq-p/1246562)

It looks like this user resolved it by changing the format of the JSON, but that does not seem to be the case here.

I would recommend setting up a webhook to also post the payload out to a site like <https://webhook.site/> this will allow you to see if the non-statuspage endpoint received the payload and without issues. This will also help verify the payloads between the send-offs are the same.

I hope this helps get you in the right direction. Additionally, if this comes down to an issue with Automation for Jira we will need to get that reported to the appropriate team.

Opening up a ticket to the Statuspage support product at support.atlassian.com will assist us in collecting all needed information for this.

Thanks so much

comments: author: Eric R Hartway
body: Hi Chris,

Thanks for the recommendations. Using webhook.site I verified the payload was sent/received using Jira Automation each time without issue, while Statuspage is still returning a 500 error on the first POST, then succeeding on subsequent POSTs. I tested again with powershell as well, and all POSTs succeeded with no issues. It seems the issue may be with Jira Automation. I've opened a ticket via support.atlassian.com ([SPSP-21223](https://getsupport.atlassian.com/servicedesk/customer/portal/47/SPSP-21223)).

-Eric


Tags: cloud
Option to create start date for incident history
Asked by Sarah Thorpe:

We're setting up our status page and would like to display incident history as starting from the current month (rather than having empty pages from months prior that don't include any information - as we won't backfill this). The screenshot attached as an example displays information from November 2020, which we don't want to display.

I haven't found any way of doing this within the settings. Does anyone have any suggestions as to whether this is possible in the free plan, or within the Hobby plan?

![Screenshot 2021-07-08 at 12.40.12.png](/t5/image/serverpage/image-id/150536i11E85D532A596988/image-size/large?v=v2&px=999 "Screenshot 2021-07-08 at 12.40.12.png")


Answers:
author: Daniel Eads
body: Hi [@Sarah Thorpe](/t5/user/viewprofilepage/user-id/4466089) , welcome to the Community!

The quick answer is that customizations like hiding particular date ranges aren't possible in the Free or Hobby plans.

Using some custom javascript, you could target those elements on the page and remove them or change them to not display. However, custom javascript isn't available until the Business plan or higher. The Startup plan includes custom CSS, but those particular elements on the page aren't targetable with CSS alone.

I definitely understand the desire to launch with a clean page! The good news is that as time goes on, the "before" months will be less and less of something that might pop out at you.

Cheers,  
Daniel \| Atlassian Support


Tags: cloud

free

history