youngmon/atlassian-qna huggingface dataset:
Why does Bamboo throw a SSL Error using Springloops GIT?
Asked by Mathieu Bezkorowajny:

(com.atlassian.bamboo.repository.RepositoryException : java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote [https://edelmandev%40gmail.com:\*\*\*\*\*\*\*\*@slsapp.com/git/edelmanwest/cbu.git](https://edelmandev%40gmail.com:********@slsapp.com/git/edelmanwest/cbu.git) failed with code 128. Working directory was \[.\]., stderr: \[error: SSL certificate problem, verify that the CA cert is OK. Details:, error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing [https://edelmandev%40gmail.com:\*\*\*\*\*\*\*\*@slsapp.com/git/edelmanwest/cbu.git/info/refs](https://edelmandev%40gmail.com:********@slsapp.com/git/edelmanwest/cbu.git/info/refs), fatal: HTTP request failed\])


Answers:
author: ThiagoBomfim
body: Hi Mathieu,

1) As described on <https://jira.atlassian.com/browse/AOD-7367>, the list of CA authorities supported by OnDemand is available on this link. Please use one of those. This CA authority doesn't seem to be listed there.

2) I am sorry about asking you to use SSH. You are partially right because actually both HTTP and HTTPS are supported but SSH **is unsupported at this stage** as described on: <https://confluence.atlassian.com/display/AOD/Git>. There is a feature request for it. Feel free to watch this issue so you are aware of when it is implemented: <https://jira.atlassian.com/browse/BAM-12228>. That said, can you please try to configure HTTP instead or configure one of those listed CA authorities?

Best regards,  
Thiago Bomfim  
Atlassian Support


author: Mathieu Bezkorowajny
body: Thanks for your answer, regarding your comment:

1) the springloops certificate is valid: <http://www.sslshopper.com/ssl-checker.html#hostname=slsapp.com>

2) onDemand only allows https for git


author: ThiagoBomfim
body: Hi Mathieu,

Is it the repo you are fetching hosted behind a proxy or webserver with an invalid SSL certificate (i.e. not issued by a valid CA authority)?

Atlassian OnDemand products can't handle invalid certificates. If you can't control the certificate on the other side, please use SSH or HTTP instead (not HTTPS).

Best regards,  
Thiago Bomfim  
Atlassian Support - DevTools


Tags: git

ssl
Is there a way to have the jUnitParser not fail the build if there are no tests?
Asked by Justin Shapiro:

I want to create a generic template to clone and I don't want to figure out if it should or should not parse tests. I just want to parse them if they exist.


Answers:
author: Krystian Brazulewicz
body: There's no such option ATM. Please create a feature request using our public tracker [jira.atlassian.com/browse/BAM](http://jira.atlassian.com/browse/BAM)

comments: author: Justin Shapiro
body: BAM-15013


Tags: bamboo-administration
Agent - Updated Linux user's PATH, agent doesn't see it
Asked by Ed Donahue III:

I recently updated the linux user's (that runs the bamboo agent) PATH and when I try to run a build the agent fails to locate any executable in the new PATH, but when I run the process manually on the agent server (as the linux user that runs the bamboo agent), it works just fine.

Do I need to restart the agent since I updated the PATH?


Answers:
author: Ed Donahue III
body: Bouncing the agent resolved the issue.


author: rrudnicki
body: Hi Ed,

Did you try to logout and login again from linux ?

P.S.: make sure when you login again the new path will be set up as expected.

Cheers,

Renato


author: Krystian Brazulewicz
body: Since changing the PATH environment variable is related to changing a shell configuration file you need to restart the process in order to pick up the change.


author: Ed Donahue III
body: I also tried to add an executable to the Agent via the Admin console and that didn't help either.


Tags: bamboo-administration
Chain of dependencies in Bamboo
Asked by Konrad Maclowski:

Hello,

We have 4 projects. They are dependant one on another in following way:

A-\>B-\>C-\>D

We want to have the ability to chain them in bamboo, so that when build A finishes, it would start next one in the line (B, then C and finally D).

Another important thing is that anybody checks in anything to any of the above git repositories, we want for Bamboo to pick up the change and start the build process automatically.

i.e. somebody pushes a change to project B, bamboo picks it up and starts following build in order:

1) B

2) C

3) D

Thus far this works for us fine. Problems start to arise, when somebody pushes changes to more than one git repo at the same time. Build order is no longer preserved and you can see failing of the builds often times, as changes are very often dependant on each other.

Is there a way to solve this issue we are experiencing?

We've set it up using Plan configuration -\> Dependencies

Bamboo version is 5.3

Thanks


Answers:
author: pradhyumna shrestha
body: Have you tried dependency blocking strategy ? in dependencies tab

image2014-10-24 9:59:7.png  
[](https://community.atlassian.com/t5/Bamboo-questions/Chain-of-dependencies-in-Bamboo/qaq-p/148586?attachment-id=10885){#link_1169987c989dfc}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/25273/1/image2014-10-24%209%3A59%3A7.png){#display_1169987c989dfc_0}


Tags: bamboo-administration
Best way to write build number into project and commit back to git/Stash?
Asked by David Paquin:

I'm new to Bamboo, and have created a few projects in it so far. All of them are linked to repositories in Stash. Each time a build occurs I'd like to increment a build number (currently I'm using buildnumber in ant), write to the project I'm building (set its build number), and then commit that new build number back to git/Stash. I have the first 2 parts down, but is there a way to commit back to git?

Like I say, I'm still quite green when it comes to Bamboo, so perhaps I'm going about this wrong... How do others handle build numbers in Bamboo?


Answers:
author: John Snead
body: Hi David and Adrian,  

One reason to write back to the repo at the end of a build is to map commits in the repo to builds. We do this by creating a tag containing the build number. Developers can then tell at a glance which commits were in which build. I'm not totally satisfied with the way I have implemented it at the moment, but I have an inline script task as the last task, which contains:  

cd ${bamboo.build.working.directory}\\${bamboo.projectkey}\\${bamboo.repo}  
"C:\\Program Files (x86)\\Git\\bin\\git.exe" tag "${bamboo.buildKey}_${bamboo.buildNumber}"  
"C:\\Program Files (x86)\\Git\\bin\\git.exe" push --tags http://buildadmin:${bamboo.buildadmin.password}@10.10.60.105:7990/scm/${bamboo.projectkey}/${bamboo.repo}.git  

(some of the variables here are ones we define for every plan - projectkey, repo, and it's obviously our URL and username. BTW I couldn't get SSH to work here and various Atlassian \&/or StackOverflow answers said to use http. You hide the password using the shared credentials facility)  

By the way, if you were to update and push a file back, you prevent a build being triggered (recursively!!) by setting an exclusion on that file in the build plan repo definition.

comments: author: David Paquin
body: Thanks for the insight - I'll check that out! I also just realized that there is the whole Deployment portion of Bamboo which I haven't started using yet. It seems to have a lot of features in it for adding build numbers to the deployed files, so perhaps that is another way I could go about it...


author: David Paquin
body: So we can get the current version during development, for example, to write an upgrade script targeting versions newer than 2.1.15 (where the 15 is the build number from Bamboo). Or to write the code to show the current application version number somewhere. Should I put a blank version.txt file on the development machine, or keep updating it with the latest build number from bamboo perhaps?


author: Adrian Moerchen
body: Hello David,Why would someone write back the build number into the repository? This way you would alter the repository with unnecessary information.(By the way, how would you prevent this to trigger a new build?)Typically Bamboo is used to create final artifacts, which are more or less ready to ship, and though you will typically append the final artifact with the build number somehow. For instance write it just to a file called "version.txt".


Tags: bamboo-administration
Which permission or setting is needed for creating a Jira issue from a (failing) test in Bamboo?
Asked by Felix K?hler:

Which permission or setting is needed for creating a Jira issue from a (failing) test in Bamboo?


Answers:
author: Krystian Brazulewicz
body: You need an application link between Bamboo and JIRA. More information [here](https://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+JIRA)

comments: author: Felix K?hler
body: This is already done. We already can create issue like this but not our developers, which have no admin permission.


author: Krystian Brazulewicz
body: If a feature doesn't work as expected then I think you should contact Atlassian Support. Please use the following link <https://support.atlassian.com/servicedesk/customer/bsp>


author: Felix K?hler
body: The feature works like a charm for me as a admin. But I want that our developers can do this too. So i only want to know the permission. Because I think i have to give my developers the priviliges to create a issue from a tests failure.I don't think the feature is malfunctional.


Tags: bamboo-administration
Bamboo: Error checking out Git
Asked by codelab expert:

I get this error when I want to checkout using git 1.9.4

com.atlassian.bamboo.repository.RepositoryException : java.lang.RuntimeException: com.atlassian.bamboo.plugins.stash.repository.StashRepositoryException: com.atlassian.bamboo.plugins.git.GitCommandException: **command 'C:\\Program Files (x86)\\Git\\git.exe' version failed with code -1. Working directory was \[\\\]., stderr: )**

What it is going wrong? Thank you!


Answers:
author: Ryan Goodwin
body: Any answer to the original post? I am also running into issue like this.


author: ssetayeshfar
body: Hello Mathias,

1. Can you please check if you can successfully check out from the command line with the same user that is running the Bamboo process?
2. If running Bamboo as a Windows service, please make sure you are running the service as a local admin account: [Running Bamboo Service as a Local Admin](https://confluence.atlassian.com/display/BAMBOO/Running+Bamboo+as+a+Windows+service+as+the+local+user)
3. Did you add a path to your Git executable under server capabilities in Bamboo: [Defining a new version control capability](https://confluence.atlassian.com/display/BAMBOO/Defining+a+new+version+control+capability)  

   Hope this helps!  
   If the issue persists, please open a support ticket and attach your log files from under \<bamboo-home\>/logs directory.  

   Thanks!  
   Best,  
   Sepideh


Tags: check-out

git
Configuration for Pull-Request-only builds
Asked by Mike Friedrich:

Hello,

Our builds take usually 40 minutes (already using IncrediBuild distributing to 10 machines). Creating installers takes again about 30 minutes, installers are about 2GB large (compressed). Artifacts are even bigger (C++ native Windows software).

We use git-flow and before a pull-request is allowed to be merged it has to pass a build (no tests yet included). "Requires a minimum of \<1\> successful builds" is enabled in Stash.

Right now I use Jenkins with a refspec to checkout the pull-request branches. **How do i configure a refspec in Bamboo?** There is no such field anywhere. If I allow all branches to build, then the builds will just queue up. We have \~20 developers pushing several times a day to their branches. Build results become important for integrators only once a developer has created a pull-request and then it needs to have precedence over other builds.

(I spent the last whole week to search here and the internet for solutions/workarouns, but found nothing usefull; only obsolete/incomplete information.)

I would like my team to switch to Bamboo, but this (apart from Stash PR triggers not (yet?) working) is the only issue, which seems to block us.

BTW: Whats the difference between trigger types "Repository triggers..." and "Stash repository triggers..."?

Bamboo version: 5.6.1  
Stash version: 3.2.0  
JIRA version: 6.2

Best Regards, Mike


Answers:
author: Mike Friedrich
body: How would a regexp capturing pull-request branches only look like? Like so?:

```
pull-requests/.*
```

(we need build the source branch of a pull-request - only when a pull-request is active)

Mike

<br />

comments: author: Krystian Brazulewicz
body: I'm not really sure if pull requests have a permanent branch in Stash. Maybe mark this question with Stash label as well?


author: Mike Friedrich
body: So far i know, they don't.That's why i mentioned the refspec above.The refspec would be somthing like this:+refs/pull-requests/\*/from:refs/remotes/origin/pr/\*


author: Krystian Brazulewicz
body: > **How do i configure a refspec in Bamboo?**

You're not able to specify the whole refspec but you can specify branch name pattern and only those branches will be autocreated in Bamboo. More info [here](https://confluence.atlassian.com/display/BAMBOO/Using+plan+branches#Usingplanbranches-Autobranching).
> Whats the difference between trigger types "Repository triggers..." and "Stash repository triggers...

Stash repository trigger has a built-in fallback to a predefined polling if we diagnose that Stash is not able to remotely trigger builds in Bamboo.


Tags: bamboo-administration

bitbucket-server
Is it possible to use different grails executables across branches in a single plan
Asked by Will Dampney:

I have a Grails plugin in a git repository that current has two development branches built against different grails versions:

\* master - grails 2.4.3

\* branch - grails 2.3.7

Bamboo is able to access both branches, but the stages of the build seemingly have to relate to a single executable across the branches (e.g. grails 2.4.3).

Is it possible, by means of variables or otherwise, to have the master running the grails 2.4.3 executable and the branch running grails 2.3.7?


Answers:
author: Krystian Brazulewicz
body: Unfortunately the answer is no. ATM there's no way to do it other than using the script task and branch variables to point to the correct grails binary.

We had this problem internally as well when we migrated our toolset. To address this problem we:

* cloned our plan and reconfigured a clone to use new toolset
* renamed the original plan to "Legacy ...."
* disabled automatic branch detection for old plan

comments: author: Will Dampney
body: Thanks Krystian, thats basically the workaround we've had to implement. If we move Bamboo to a Linux environment in the future, we might be able to use gvm (groovy environment manager) to make a better scripted solution.


Tags: executable

grails
Question about Bamboo
Asked by Farooq Khan:

Hi,

I am going to propose to our management that we do a trail of Bamboo. Before we try that i wanted to figure out if

1. Does Bamboo support Perforce

2. Does Bamboo support Shelved change list from Perforce so that team members can fire test builds without really checking in the code.

Thanks

Farooq


Answers:
author: Krystian Brazulewicz
body: Bamboo supports Perforce but AFAIK we don't support shelved change list ATM. If you decide to use Bamboo and find this feature missing then you can create feature request on our [public issue tracker](jira.atlassian.com/browse/BAM).


Tags: bamboo-administration
Build status - env variable, or a "run on fail" job?
Asked by Peter Wilson:

Warning - new to Bamboo - ignorance is highly probable.

We have a bit of a weird scenario. We are running bamboo jobs to execute our automated cucumber tests. We use the wallboard as build and environment checks and want to display the wallboard on our new samsung smart TV.

The smart TV can connect via wifi to a network but because of our security policies we won't be able to get it onto our corporate network.

We do have a wireless access point that goes staright to the outside world but can't get back into our internal network from there.

So the question is how to hook up our TV to show the Bamboo wallboard?

I know we could setup a computer near it and plug in an hdmi cable but this seems a bit lame, and we would need to get facilties involved and that is going to take time and effort, it's usually about as fun as chewing your own foot off. Kind of a last resort.

So in that spirit, we set up an external website that simulates the wallboard, and all you have to do to update it is do a wget with something like "wget [](http://mysite/TestEnvA/Smoke)<http://mysite/TestEnvA/Smoke>Test/Pass" and it will update the site and reflect on the simulated wallboard.

This is all great, but when we went to use it we realised there is no way to send the Pass or Fail at the end of the wget. There is no environment variable we can pass, and future stages aren't run if a previous one fails.

So any ideas on how we could solve our problem?

I was thinking it would be good if the final stage of our plan was an update with pass and then run a different script if the job failed that did an update with fail, but I don't think there is any run on fail stage is there?

Cheers

Peter


Answers:
author: Peter Wilson
body: Got around it. Set up a chron job to pull results from the Bamboo project wallboard and push them to the external website. Let me know if any of you have any other ideas.


Tags: bamboo-administration
Why are my pipelines suddenly failing with "command not found" errors
Asked by Jonathan Danaher:

My pipeline has randomly started failing. The first step reads:

```
- step:
? name: Build simulation
? script:
? ? ?- rsync -av --progress . dist --exclude dist
? artifacts:
? ? ?- dist/**
```

It's failing with the log:

    + rsync -av --progress . dist --exclude dist
    bash: rsync: command not found
    bash: lesspipe: command not found
    bash: dircolors: command not found

First I thought it was an issue with rsync, but actually, whatever I have tried fails similarly, eg:

    bash: ssh: command not found
    bash: apt-get: command not found

Just to emphasis, it was initially working fine, and now it seems like the container doesn't have anything installed in it. Does anyone know what is going on here? Cheers.


Answers:
author: Ben
body: Hey Jonathan,

Without being able to see your pipelines configuration, there is a possibility that you are using a variable named "PATH" somewhere in your workspace which is conflicting with the default "PATH" variable which is prepended/required for every command in pipelines and will cause this error for every command when a conflict is present.

We also have a public ticket highlighting the same - if this variable exists as a custom variable (either in deployment, repository or workspace variables), please remove or rename it and try to run the build again:  
<https://jira.atlassian.com/browse/BCLOUD-20162>

If this is not the case, please let me know and we can open a ticket on your behalf.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
how to publish the test reports as an artifact?
Asked by Chandramouli Naraharisetti:

Using bitbucket pipeline, i am executing my webdriverIO test scripts in aws e2e instances. And i was able to see xml test reports in respective aws machines.

I need to publish these results within the bitbucket pipeline

Is this possible?


Answers:
author: Caroline R
body: Hi, Chandramouli, thank you for reaching out to Atlassian Community.

In order to better assist you, it would be good to understand better how you are executing the commands to run the test. Could you please share the part of your YML file in which you are running these commands on AWS?

However, if the AWS instances you are executing your tests on are accessible over SSH, I believe you could make use of the secure copy command (scp) to copy the XML file from the AWS instance to the build container, as the following example:

```
scp -i <path to the ssh private key> <username from AWS>@<IP from AWS machine>:<path of the file in AWS> <local path>
```

Then, you could add the path where you have saved this file inside the build container (the \<local path\> of the command above) as an artifact of your build step.

Please let me know how it goes and feel free to share any additional questions regarding this case.

Kind regards,   
Caroline


Tags: bitbucket-cloud

cloud
Clone from Bitbucket repo in SourceTree Crashed
Asked by Teja Bhaghavathi:

when ever I want to clone a repo in the source tree using the remote function. the source tree just crashed without any error . which prevent me to clone any repo.


Answers:
author: Ben
body: G'day Teja!

Can you please try to uninstall/re-install the Sourcetree application? During this process, make sure you backup the configuration files first. There is an article that explains this process as well as the recent authentication changes from basic GIT username/password to AppPassword which also might be an issue:  
<https://community.atlassian.com/t5/Sourcetree-articles/Bug-Fix-Sourcetree-for-Windows-authentication-error-when/ba-p/1965968>

Cheers!  
- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
index.md is working fine on Github but not on Bitbucket
Asked by Mridula Menon (Product Knowledge Enablement):

Hi,

Is there any workaround to make index.md to work in Bitbucket. Do I need to convert all my markdown files to HTML?

This is for my static website.


Answers:
author: seanaty
body: Can you go into more details about what "work" means? Is it that none of the markdown is rendering whatsoever or that some of it is rendering but it's incorrect or not 100%.

It sounds like you're saying it's the former (not rendering at all). If that's the case I'm not sure what all the exact filenames Bitbucket will check to display the "front page" of your repo or the precedence of them, but from my own experience README.md or readme.md is almost certain to work. I would try renaming the index.md to one of these.


author: Theodora Boudale
body: Hi [@Mridula Menon (Product Knowledge Enablement)](/t5/user/viewprofilepage/user-id/4733887),

I just had a look at the Bitbucket Cloud account with the same email as your community account.

I can see you have a repo there ending in bitbucket.io. If this is the one you are having issues with, I see that this repo doesn't have an**index.html** file in the root directory.

This file is needed for a static website hosted in Bitbucket, see our documentation here:

* <https://support.atlassian.com/bitbucket-cloud/docs/publishing-a-website-on-bitbucket-cloud/>

Kind regards,  
Theodora


Tags: html

markdown