youngmon/atlassian-qna huggingface dataset:
Changing from authenticated to anonymous SMTP doesnt work?
Asked by Kingsquare:

After trying to switch from an authenticated SMTP for e-mail, to a different non authenticated smtp but it keeps failing on authentication (where there should be none?)

For now i've reverted to using the previous authenticated (but to be deprecated server), but this feels like a bug? The bamboo-mail.cfg.xml does reflect the correct smtp settings after the change, but the error remained...


Answers:
author: Sultan Maiyaki
body: Probably a caching issue on the browser. This issue can be resolved by deelting the whole smtp configuration and re-adding a new one


Tags: email

smtp
Trunkless Bamboo branch build configuration?
Asked by Syferlock Support:

Would it be possible to have Bamboo configured as 'trunkless' build with Branches only? On the main dash board it only shows the Plan build, but none of the trunks, without drilling down into the plan.

It would be helpful to only use the branches, as we maintain several branches at once for our customers, and be able to see the status and launch builds of each branch on the main dashboard.

As a related question, is there an improvement filed for branch detection/building for the Eclipse plugin?


Answers:
author: Syferlock Support
body: I have answered my own question, in a way, for the first part with a workaround.

If I mark all the builds I am working on as favorites and use the "My Bamboo" dashboard, then I can see the list and launch the builds from there (without additional navigation).

What would be nice as an enchancement is on the "All Plans" Dashboard, to have a spin down of all the active branches with their own "Run/Edit" buttons under the top level plan.


author: jjaroczynski
body: Regarding the second question, once configured you should have separate builds for different branches I guess (let's wait for Bamboo dev answer). If that's the case then you will see them as separate builds in Atlassian Connector for Eclipse. Is this what you want to achieve?

Cheers,  
Jacek

comments: author: Syferlock Support
body: I have the latest Atlassian Connector installed (3.0.6.v20120628), and only Plans are showing up when I browse for subscriptions.

No Branches show up, even if I 'favorite' the branch build.

This definitely needs to be addressed by the Eclipse Plugin.


author: jjaroczynski
body: Feel free to raise a request at <https://studio.atlassian.com/browse/PLE>


Tags: app

branch

eclipse
Bamboo DB relations
Asked by Kostas Mertzianis:

Hi,

<br />

I am currently using an ODBC connection to the Bamboo database in order to create some analytics based on the data. I am running a MS SQLSERVER 2008 data platform for Bamboo and I am facing some issues when it comes to the relationship between the BUILDRESULTSUMMARY table and TEST_CASE and therefore TEST_CASE_RESULT table.  
How are these two connected? Because apparently the connection between BUILDRESULTSUMMARY and TEST_CLASS_RESULT via BUILDRESULTSUMMARY_ID is invalid. I can elaborate, if needed, why I state that the aforementioned connection is invalid. It would be great if someone could shed some light on the connection between these two tables/columns.

Thanks,

Kmn


Answers:
author: Felipe Kraemer
body: Hi,  
As far as I can understand by looking at the database schema, table TEST_CLASS_RESULT is linked to table BUILDRESULTSUMMARY via column BUILDRESULTSUMMARY_ID:  

```
SELECT * FROM test_class_result tcr, buildresultsummary brsWHERE tcr.buildresultsummary_id = brs.buildresultsummary_id
```

Also, TEST_CLASS_RESULT is linked to TEST_CLASS via TEST_CLASS_ID:

```
SELECT * FROM test_class tc, test_class_result tcrWHERE tc.test_class_id = tcr.test_class_id
```

So, joining everything in a single query:

```
SELECT * FROM test_class_result tcr, buildresultsummary brs, test_class tcWHERE tcr.buildresultsummary_id = brs.buildresultsummary_idAND tc.test_class_id = tcr.test_class_id
```


Tags: database

ms-sql

table
Bamboo fails to start after change from JDK 1.6 to 1.7
Asked by Kyle Hughes:

We have been running Bamboo version 4.2.1 for a while on JDK 1.6 without problems. For what it's worth the installation was upgraded to 4.2.1 from 4.1 a few weeks ago.

There is now a requirement to run the Sauce Labs Bamboo Sauce OnDemand plugin (<https://marketplace.atlassian.com/plugins/com.saucelabs.bamboo.bamboo-sauceondemand-plugin>) in order to complete our test execution. The developer suggests the plugin requires JDK 1.7 to operate correctly.

We verified that Bamboo 4.2.1 does support JDK 1.7, shutdown Bamboo, switched to JDK 1.7 and encountered problems starting up. Bamboo throws errors in the logs and HTTP requests respond with a 503 Error, noted below. Once we switched back to JDK 1.6, Bamboo started again successfully. Logs for Bamboo startup using JDK 1.6 and JDK 1.7 are attached.

HTTP ERROR: 503

Problem accessing /. Reason:

Service Unavailable


Answers:
author: ArmenA
body: Hi Kyle,

Please try to shut down your Bamaboo server, delete BAMBOO_HOME/caches directory and start the server again with JDK 1.7 as per [this](https://jira.atlassian.com/browse/BAM-10704).

Cheers,  
Armen


Tags: java

jdk
Configure Bamboo to use 1 folder
Asked by John Bowker:

Instead of Bamboo creating sub folders for each job like PRJ-BUILDTEST-JOB1. How do you configure Bamboo to use only 1 folder for the entire plan so that a checkout only needs to be done once?


Answers:
author: Syferlock Support
body: I asked essentially the same question here:

[https://answers.atlassian.com/questions/89148/is-it-possible-to-share-a-repository-directory-across-bamboo-jobs-in-a-single-stage](/questions/89148/is-it-possible-to-share-a-repository-directory-across-bamboo-jobs-in-a-single-stage)

comments: author: John Bowker
body: Thanks for link. So basically no solution within Bamboo then? I've gotten around this by using my own checkout scripts but you lose all the options to use plugins like NAnt. Seems very limited to not be able to do this.


author: Syferlock Support
body: Not yet - an improvement ticket was opened up to address this.


Tags: check-out

configuration
Bamboo: Agent build multiple plans concurrently?
Asked by Brantone:

Is there a mechanism by which an agent can build multiple plans concurrently, rather than consecutively?

I know we can scale by adding more agents, but that's not an ideal scaling mechanism, as opposed to being able to have multiple builds going


Answers:
author: Cameron Ferguson
body: You can however, add more agents to a single box and give them different working directories. We have 3 remote agents set up on one of our 24 core build boxes. Handles it quite well.

> java -Dbamboo.home=/bamboo-agent-home-1/ -jar /bamboo-agent-home-1/atlassian-bamboo-agent-installer-3.3.2.jar <http://bamboohost:1234/agentServer> \&
>
> java -Dbamboo.home=/bamboo-agent-home-2/ -jar /bamboo-agent-home-2/atlassian-bamboo-agent-installer-3.3.2.jar <http://bamboohost:1234/agentServer> \&
>
> java -Dbamboo.home=/bamboo-agent-home-3/ -jar /bamboo-agent-home-3/atlassian-bamboo-agent-installer-3.3.2.jar <http://bamboohost:1234/agentServer> \&


author: Catalin Jora
body: There are some logistic problems when you have several agents on the same host:

- duplicated workspaces on the same machine that cost HDD space and network traffic (for expensive HDD and with GB checkouts this is big problem);

- licensing cost for bamboo (license should be more clear that you pay per jobs you run in parallel not per build server);


author: Przemek Bruski
body: No, an agent always builds a single build. You have to add more agents if you want more concurrent builds.


author: Reinald Vandersteen
body: I was able to make builds across plans run concurrently by adding more local agents.


author: Matthew Ford
body: I am new to Bamboo (a couple of months now). WHY is a Bamboo agent limited to only one build per agent? When will this be fixed? This is very disappointing...

Jenkins has no problem running multiple builds on a single agent as long as the host has the resources to handle it.


author: Alexander Potapov
body: yeah, and you should pay for additional agents!!!


Tags: build

concurrent
Is it possible to share a repository directory across Bamboo jobs in a single stage?
Asked by Syferlock Support:

I've got a single build box, and I have several projects that share a lot of common 3rd party libraries (about 50MB) that are stored in SVN.

All the project compile tasks are in one stage, but in a separate jobs (instead of separate tasks in one job)

Is there anyway to download all the source/libraries into a common directory that all the jobs can reference?

I'm guessing the answer is no because the jobs can be distributed to remote agents, but I'm trying to avoid checking out multiple copies of the same common libs on the same machine for every build.

I tried creating a "Source" artifact that gets copied to each job, but these get stored with each build and would waste disk. I'm also trying to avoid all compile tasks in one job for other reasons.

-- edit: I realize I could do a custom script that does the SVN checkout and then reference that somehow in my build scripts, but I am trying to do this all via Bamboo to avoid creating path dependencies.


Answers:
author: James Dumay
body: Why do you want to avoid checking out multiple copies of the build? Is this to save space?

Artifacts would be a good way todo this but I hadn't considered the issue you raised about disk space. I've raised an issue ([BAM-12192](https://jira.atlassian.com/browse/BAM-12192)) to remove this artifact after the build has completed so that you do not keep the 50mb checkout around.

comments: author: Syferlock Support
body: It's either eat up space for every job for multiple copies of the repository - if I clean the working directory after the job completes, then it's additional network traffic for every build.

The artifact solution worked well, since it's a local directory copy on the machine, which is much faster, but at the cost of storage.

The option to be able to have artifacts that only last for the current build cycle would definitely work, unless there's another way around it. That would also not break the option of having the jobs distributed to remote agents, if so desired, in the future.


Tags: repository

task
Git Caches, Shared Repositories, and Automatic Plan Branches
Asked by Collin O_Connor:

I've noticed lately; while we have enabled a shared repository for our primary plan that every time a branch is detected it creates a new git cache. With our rather large git repository this means we can have easily 30-40 gigs of the same repository, just with a different branch checked out.

This creates a large amount of repeated data on the server; which either requires branches be removed prior to their intended time for expiry, and what I suspect is a large number of unnecessary caches left behind in the _git-repositories-cache folder; or expanding/migrating the Bamboo system to another location with more disk space which is not an optimal solution either.

Can someone explain to me if shared repositories worth with automatic branching for git, and if so what our setup might have wrong that creates a new repository for every branch? And how to properly clean the caches directory of unnecessary caches?


Answers:
author: ssetayeshfar
body: Hi,

I'm not sure if this is still an issue for you or not but the " Administration-\>Repository Settings" for Git exists for Bamboo version 4.4.3 and newer, if you are using an older version of Bamboo it will only be available for Mercurial. Please visit this article for more information:

<https://confluence.atlassian.com/display/BAMKB/Git+cache+removal+in+Bamboo>

Hope this helps!


author: James Dumay
body: Shared repositories will work with automatic branching for Git and should reduce the amount of caches you have on your system. You can also clear caches from Administration-\>Repository settings

comments: author: Collin O_Connor
body: I've seen that entry for managing caches, but it only lists Mercurial, not Git.
How can I do a fresh install from a server clone
Asked by Ewan Scott:

We have a bamboo server built using our academic license. We want to run a test server using an associated development license. As the server is a VMWare system I would like to clone this box, rename it and then force a fresh bamboo install and configuration taking the development license and new pointers for the bamboo DB schema. What do I have to do to force bamboo to reset itself and install with a fresh configuration?


Answers:
author: Sultan Maiyaki
body: Hi Ewan,  

<br />

To force Bamboo to initilase a new installation, you will have to delete the following file and directory and then restart Bamboo:  

# {{$BAMBOOHOME/bamboo.cfg.xml}} file  
# {{$BAMBOOHOME/xml-data}} directory  

Hope that help :).  

Regards,  
Sultan


Tags: clone

install

server
BrokenBuildPostProcessor error displayed in error log whenever bamboo build fail in bamboo 4.x
Asked by fanfei wan:

I noticed that the following error is displayed under Error Log whenever build fail and does not matter what was the caused.

It will confuse users since it is not related to the real cause of the fail.

This is not happening in Bamboo 3.2.

CAS - Commons - test tomcat plugin ? CASCOMMONS-TOMCATPLUGINTEST-33 : PostChainAction: com.atlassian.bamboo.brokenbuildtracker.BrokenBuildPostProcessor

(java.lang.reflect.UndeclaredThrowableException)

(18 Sep 2012, 1:43:45 PM, Occurrences: 2 )

View error details Clear error from log

CAS - Commons - test tomcat plugin - Default Job ? CASCOMM


Answers:
author: Sultan Maiyaki
body: We were not able to replicate the issue but we were able to trace back the issue to the active objects; a framework for persisting plugin data. After going through the list of bundled plugins in Bamboo, the only one that uses the active objects framework is the "Build responsibility".Disabling the **Broken Build Responsibility Tracker** from the list of system plugins and any other third-party plugins solves the issue. For more details on the disabled plugin pls read <https://confluence.atlassian.com/display/BAMBOO/Assigning+responsibility+for+build+failures>
How to tell why a build is queue?
Asked by Ken Wood:

Several times I've seen a build sitting in the queue with the message 'waiting to build'...

I checked the build plan's requirements against the available agents, and there were at least 11 agents available that could have built the plan...

Is there a way to see exactly WHY a build plan is in the queue instead of being built?


Answers:
author: James Dumay
body: You can view the Requirements tab on the Plans configuration to see if there are any agents capable of building the plan or not. Usually if the build is just sitting in the queue, there are no capabilities on the agents that match the requirements of the plan.

comments: author: Ken Wood
body: That's what I did, as stated in the question "checked the build plan's requirements against the available agents, and there were at least 11 agents available"


author: Ken Wood
body: I see the problem now... first, the requirements tab shows all the agents that can meet a specific requirement. But the requirements tab does NOT have a summary that shows the intersection, which in this case is apparently just one agent that is the intersection of all requirements, and thus causing the build to be in the queue.

Second, the Bamboo Agent Matrix display does NOT have a horizontal scroll... so I have 53 agents, but I can only see the first 20 in the matrix, so I can't see where the problem is by examinng the matrix... sigh...


author: James Dumay
body: It should have a horizontal scroll :( What version of Bamboo and browser are you using?


author: Ken Wood
body: Bamboo 3.4.3 and I tried both FireFox 15.0.1 (linux) and Chrome 21.0.1180.81 (linux), no horizontal scroll on either one.
Bamboo SSH Task - Handle User Input to Change Password
Asked by Adam Myatt:

I'm using the Bamboo SSH Task. I want to connect to a Linux VM using the hostname, username, and password. Once connected I want to use the command field to pass commands that allow me to change the password of the user connecting. In the commands field I tried :

passwd

NEWPASS

NEWPASS

However when this runs it connects fine, then tries the passwd command and halts on it. Is there a way to pass these commands so the NEWPASS is treated as user input to the passwd command?


Answers:
author: Adam Myatt
body: Ah ha. I was able to actually get this to work.

Using the "SSH Remote Commands" Task I specified the host, username, password and then in the "New Inline Script" field I used this :

echo "MyNewPassword" \| passwd --stdin username

Though from the articles I read this is BAD security practice as anyone on that host with access to PS could easily see the command run, however it does prove it is possible.

Thank you for the additional feedback above.


author: Cameron Ferguson
body: I would think the better approach would be to set up the SSH access and RSA tokens to allow password-less SSH from the bamboo agent to the other box for that specific user.


author: LucasA
body: Hi Adam,

I'm afraid that this is not possible using only Bamboo. As a workaround, you can create an [Expect](http://en.wikipedia.org/wiki/Expect) script to change the password (or parse the output from another command) and call it via Bamboo task. I'd already created many Expect scripts to automatize tasks and it really works well.

I hope it helps. :)

Best regards,  
Lucas Timm


Tags: ssh

task
Using a build variable as the Branch name of a Repository
Asked by David _old account_:

I have a multi-repository build for which I'm trying to setup plan branches.

Until <https://jira.atlassian.com/browse/BAM-11544> is implemented, this is going to be somewhat difficult. However, it has been suggested before to use a build variable to "parameterize" the branch names of all non-default repositories in a build plan.

I have tried using this approach by using ${bamboo.repository.branch.name} in the Branch field of the Repository configuration of all non-default repositories in my build plan. Unfortunately, this is giving me the following error:

(java.lang.RuntimeException : com.atlassian.bamboo.repository.InvalidRepositoryException: Cannot determine head revision of 'ssh://9a161dbd-6f8b-4af6-ba39-8d4a883bffea@127.0.0.1:56487/pscom.git' on branch '${bamboo.repository.branch.name}'. Branch has probably been removed.)

Any idea how I can make this work?

Thanks,

David


Answers:
author: Marcin Gardias
body: Hi,

I'm afraid you've found a bug. This variable is set too late in the build process to be useful as workaround to BAM-11544.

Please vote on this bug report: <https://jira.atlassian.com/browse/BAM-12900>

It will work if you define your own plan variable, but sadly, this requires you to override it manually on each branch.


author: Leandro Iriarte
body: Is there any solution to this problem? I am still getting the same error
Is it possible to connect to Perforce via SSL from Bamboo?
Asked by Jobin Kuruvilla [Adaptavist]:

Is it possible to connect to Perforce via SSL from Bamboo? If so, how to give the port?

After changing the p4 client to one that supports SSL and trying with the P4PORT as "ssl:host:port", Bamboo shows error.

**Client was not found on the perforce server.**


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Worked once p4 trust was executed on the server.
Pipeline started failing with no code change
Asked by franco:

Hey everyone,

Wondering if anyone has encountered this issue before. We have a react project that used to build successfully before (we have a schedule daily run), then suddenly it just started failing even though no new code change was introduced.

TypeScript 'declare' fields must first be transformed by @babel/plugin-transform-typescript.  
If you have already enabled that plugin (or '@babel/preset-typescript'), make sure that it runs before any plugin related to additional class features:  
- @babel/plugin-proposal-class-properties  
- @babel/plugin-proposal-private-methods  
- @babel/plugin-proposal-decorators  
I already tried to Google for a solution but nothing seemed to work. I can't replicate the issue locally because it builds just fine.


Answers:
author: Caroline R
body: Hi, [@franco](/t5/user/viewprofilepage/user-id/4624154)! Welcome to the community!

There could be multiple reasons for the failure, so I would like to ask you to check the following points:

1. Are there changes in the build image you are using in the Pipeline? You can verify it by checking the image hash of failed and passed build.

2. Can you check the caches in both pass and failed builds? Could you check if the cache was reused or created in both failed and successful builds?

3. Are there any recent changes in the third-party packages? You can verify it by checking the Pipeline logs and version of different packages being used.

4. Could you share how you have tested it locally?

Please feel free to share any additional information related to this issue.

Kind regards,  
Caroline


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Why won't Bitbucket work after I run the new security update that you request be installed?
Asked by Michael Grooms:

I received an email about "a critical security vulnerability that exists in the following products", Bitbucket 7.12 is what we are using and when I try to "uprgrade" to 7.17 everything seems fine until I try to access the front end and it tells me the web page is not available. I made sure the properties file matched what I originally had and the key also matches. Both services show as running but no front end. Please let me know if someone can assist. Thanks.


Answers:
author: Bastian Stehmann
body: Hi [@Michael Grooms](/t5/user/viewprofilepage/user-id/4623877) ,

Welcome to the community.

I would start looking at the log files, if there are any errors or something like that, what indicates where your problem is.

You can find the log files in the application data directory.

comments: author: Michael Grooms
body: Hello and thank you. I had a snapshot so I got the system back to where it was before I tried to install the new version. I upgraded to version 7.12 last year and remember having to move a file. I made copies of the folders so I could compare and the properties file and the key file under config matched. Perhaps I am missing something. I try to submit a support ticket but it doesn't like the cloud URL that I provide (even though it works when I go to the link) so I am not able to. I would really like to get the upgrade installed or at least know the exact steps so it works correctly afterwards, I read through the documentation and am not sure what the issue is.


author: Bastian Stehmann
body: This is the documentation for an bitbucket upgrade.

<https://confluence.atlassian.com/bitbucketserver/bitbucket-server-upgrade-guide-776640551.html>

Without the logs its hard to say why it has failed.

If you want to raise an issue with the support, you have to make sure to select Server,/Data Center as Type before selecting Bitbucket. It will ask you for the SEN instead of an Cloud URL.


Tags: bitbucket-server
How to configure SAML in bitbucket 7.17.1?
Asked by Gestion de Herramientas:

We are currently using LDAP and want to switch to SAML.


Answers:
author: Kurt Klinner
body: [@Gestion de Herramientas](/t5/user/viewprofilepage/user-id/4623778)

Hi Gestion

welcome to the Atlassian community.

Have you already checked the available documentation?

<https://confluence.atlassian.com/enterprise/saml-single-sign-on-for-atlassian-data-center-applications-857050705.html>

Cheers

Kurt


Tags: server