youngmon/atlassian-qna huggingface dataset:
Bamboo-GitLab
Asked by lpandia:

I have a question regarding Bamboo-GitLab integration.

Is it possible to trigger a build based on a merge request?

The requirement is that Bamboo can fetch source and target branches of a Gitlab merge request and build them. Once the build completes, Can Bamboo update the merge request with build result?.


Answers:
author: Conrad Christensen
body: Bump!


Tags: bamboo-administration
I am getting error in integrating bamboo with JUnitParser
Asked by Ishen Thapa:

Starting task 'JUnit Parser' of type 'com.atlassian.bamboo.plugins.testresultparser:task.testresultparser.junit' simple

08-Sep-2015 19:27:56 Parsing test results under D:\\bamboo home directory\\xml-data\\build-dir\\AT-AT-JOB1... simple

08-Sep-2015 19:27:56 Failing task since test cases were expected but none were found. simple

08-Sep-2015 19:27:56 Finished task 'JUnit Parser' with result: Failed


Answers:
author: cbenard1
body: Hi Ishen,

I believe you're running into [this bug](https://jira.atlassian.com/browse/BAM-12979) in which Bamboo checks for the test file too quickly. Please give the workaround mentioned in [this knowledge base article](https://confluence.atlassian.com/display/BAMKB/JUnit+Parser%3A+Test+results+are+not+found) a try! If that doesn't do the trick could you please create a support request at support.atlassian.com and we'll review it from there.

Cheers,

Turner

comments: author: Ishen Thapa
body: touch D:\\bamboo home directory\\xml-data\\build-dir\\AT-AT-JOB1\\TestNg\\build\\reports\\raw\\TEST-com.Test2.xmlStart-Sleep -Seconds 5 I have written the script before junit parser then also m getting the error


author: cbenard1
body: Hi Ishen,I believe the workaround should have you configuring the sleep command before the touch command in the script. Could you please switch those and give it a try. If you have no luck please go ahead and raise a support request and we'll have a look!Thanks!Turner


author: Ishen Thapa
body: hi Turner m getting the same error "Failing task since test cases were expected but none were found".
corporate proxy blocking the bower dependencies"https://bower.herokuapp.com/packages" while running bower in bamboo plan
Asked by Adhikari_srinivasa_kumar:


Answers:
author: Steffen Opel _Utoolity_
body: While [Nic's answer](https://answers.atlassian.com/questions/26644518/answers/26644741) pretty much summarizes the state of affairs, it's worth mentioning that a notable reason for this limited set of options is Bamboo's long standing lack of support for the JVM `nonProxyHosts` property, so you might watch/vote/comment on the following issue accordingly:

* <https://jira.atlassian.com/browse/BAM-12041>


author: Nic Brough -Adaptavist-
body: You'll need to reconfigure the proxy to allow that access, or rewrite the plan to not use it.


Tags: cloud
Pushing repository to remote after a successful build
Asked by Johannes P.:

I have a bamboo plan set up to pull from a bitbucket repository. It builds every time a push is made to the repo. If and only if the plan successfully completes, I want to push the changes (the ones I originally pushed to bitbucket which triggered the plan) to a remote git server.

So far I did the following:

* The first stage pulls the repo, and shares the '.git' directory as an artifact
* A few stages build and test the repository
* The last stage has the '.git' repository as an artifact dependency. I use a script to add the remote repo and then push to it.

If I set the 'Source Code Checkout' task to 'Force Clean Build' this works and every commit I make is built on the server, then pushed to the remote repository. This is what I want.

However if I don't force a clean build, the first build's push is sent to the remote, but consequent builds are not. If I navigate to the Job's directory (for me */var/atlassian/application-data/bamboo/xml-data/build-dir/\<JOB_NAME\>)* and run 'git status' I get: "HEAD detached at 0631325" - showing the short version of the hash of the latest commit.

<br />

I'm not familiar enough with git to understand exactly how to deal with this in an efficient manner. I know pulling the repo again completely to another location would *technically* work, but I feel that that is unnecessary since to build the plan the repo was pulled already. The files are already there.

Is there a recommended way that I could push the changes from this headless repo to a remote repo, instead of pushing from the outdated origin branch?


Answers:
author: Johannes P.
body: I ended up resolving this issue by explicitly pushing from the head:

```
git push backup HEAD:mastergit push backup HEAD:master --tags
```

where 'backup' is a remote set via https:

```
git remote add backup https://USER:PASSWORD@URL/TO/REPO.git
```


Tags: bamboo-administration
want manual branch name as environmental variable
Asked by jbetz001:

I am using manual branch names corresponding to destinations rather than git branch names. Want to be able to access the manual branch name in environmental variable.


Answers:
author: cbenard1
body: Hi John,  
Currently there is not a variable in Bamboo for these manually defined branches. I've created this feature request on your behalf <https://jira.atlassian.com/browse/BAM-16327>  

This is a public bug tracker so please feel free to add your comments/thoughts. Please also become a watcher of this issue so you can be automatically notified of any progress on its inclusion.

Thanks,

Turner


Tags: environment

environment-variable
Create plan branches for branches detected in the repository and ignore branch defined in repository configuration
Asked by Nicholas Irving:

I have configured my Stash repository with branches mirroring gitflow. i.e master and develop. I create new release / features that create "release/xxx" or "feature/xxxx" branches via the git flow process.

I have configured my Release / Feature build plan to use the option "Create plan branches for branches detected in the repository" with a regex of "(release)/.\*" / "(feature)/.\*"and it uses a linked stash repository that has a branch set to "develop".

How do I stop it from building a change detected in the "develop" branch within my "release / feature" build plan? in effect I only want to build those branches that match the regex.


Answers:
author: chphilli
body: Any chance you've found a solution to this? I've got a similar problem with Mercurial and my "default" branch.


Tags: bamboo-administration
createInitialVolume.sh: 5: .: setAwsEnv.sh: not foun
Asked by fmontada:

Hi team

I am trying to configure my elastic instance to use EBS. I am getting an error when I try to run: "createInitialVolume.sh 100" as root user. I get the error message

"createInitialVolume.sh: 5: .: setAwsEnv.sh: not found"

the setAwsEnv.sh script is on the same location /opt/bamboo-elastic-agent/bin

bamboo-elastic-agent getCustomData.sh runStartupScripts.sh  
bamboo-elastic-agent.bat

mountEbsDevice.sh setAwsEnv.sh  
bambooShellFunctions.sh

prepareInstanceForSaving.bat setupEbsSnapshot.sh  
checkElasticAgent.sh prepareInstanceForSaving.sh setupEphemeralStorageStructure.sh  
commonFunctions.sh restoreEbsSnapshotFromUserData.sh testIfStartedFromBamboo.sh  
createInitialVolume.sh restoreSnapshot.sh unmountVolume.sh  
generateSnapshot.sh rewarmEbsSnapshot.sh warmEbsSnapshot.sh

could you help us ?

Thanks

Francisco


Answers:
author: fmontada
body: Hi team I needed to edit the /createInitialVolume.sh with ./setAwsEnv.sh location and now is able to find the file, but I am getting other errors

createInitialVolume.sh: 10: createInitialVolume.sh: assertRootUser: not found

createInitialVolume.sh: 12: createInitialVolume.sh: assertAccessKeysPresent: not found

Creating volume with size 100 GB...  
Missing argument for option:region (use -h for usage)  
An error occurred, no volume created...

could you help us ?

Thanks

Francisco


Tags: cloud
What Tasks are used to build VB6 projects in Bamboo?
Asked by Bruce Strickland:

Anyone with experience with VB6 and Bamboo builds? If so, would you know what Tasks are used to build VB6 projects in Bamboo?


Answers:
author: zaheer pasha
body: Hi,

Link <http://vb6next.com/> doesnt work. Can you please tell which task should be used to build VB6 projects on Bamboo

Regards,

zaheer


author: Ignacio Rodriguez
body: I did that for the company I was working on, then turned it into a service on its own. If you want, check us out at <http://vb6next.com/>
"Variable tasks for Bamboo" plugin support bamboo versions
Asked by Takashi Matsuzawa:

I can see this plugin supports "Bamboo Server 5.7.0 - 5.7.2"

<https://marketplace.atlassian.com/plugins/com.atlassian.bamboo.plugins.variable.updater.variable-updater-generic>

Knowing it's 'unsupported' product, but anybody has positive/negative experience with it with more newer versions of the bamboo servers? e.g. 5.9x


Answers:
author: Brendon Thiede
body: I'm currently using this on version 5.9.4 build 5919, and everything seems to be working well, but I'd like to find a supported solution for the use cases we have.
Is there a way to delay when bamboo thinks a machine is idle and ready to handle a build
Asked by guy moore:

Is there a way to delay when bamboo thinks a machine is idle and ready to handle a build.

I believe I'm seeing overlapping builds. Two builds on a machine at once.

It may only be for a period of less than 60 seconds, but that's enough to cause some havoc.

I would feel more comfortable if there was a variable or something to tell bamboo, wait 60 seconds before declaring a machine as idle.


Answers:
author: Przemek Bruski
body: I am 100% sure the agent is not overlapping builds.

What could happen however, is that the agent is building a new build while the results of previous build(s) are still not processed by the server. This is perfectly normal and handled by Bamboo.

You can't change that behaviour.


author: manny_armas
body: Hi Atlassian Team...

just want to follow up about my question about build overlapping the other.

Thanks,  
Manny


author: manny_armas
body: I have the same problem here, we have multiple build plans, we have seen overlapping (or overriding? )of builds which we don't want to happen. Yes I think the agent is not overlapping the running of build, we can see it in agents overview, but what happening is that the first build is being overridden by the second build which we don't want also to happen.

Is there anything that we can do to avoid that?


author: guy moore
body: if there is no way to delay the time, then I'll have to put a sleep task in at the beginning or end of all the build plans.so as to delay the larger job tasks from not being interfered by a second build running.

The reason I feel that there is some form of overlap, is I have a script that ssh's to each of our 25 build machines and gets the list of all java processes (a lot of our builds, and tests, etc revolve around many java processes running). The script organizes this list and creates a report that is sent to us via email.

The report points out when it sees 2 or more builds on a machine. This is differentiated by the Bamboo build plan ID that is found in various flags of the full command line of the java process.

When I RDP to that machine, to possibly kill one of the 2+ java processes suspecting one of them is a hung java processes, it is not there.

So that tells me that one build had started while one build was just about to end, but was still there.

So from my standpoint, there is clearly a situation that exists that I don't want. Maybe from the bamboo agent, the agent thinks it's done with a build plan, but there is some residue that has yet to wind down and be totally done on the build ,machine.

In either case, I need to "fix" that situation. One way is to add a delay whether that is adding one more job/task at the end that just does a sleep, or preferably doing something with Bamboo agent or server that does the same thing.


Tags: bamboo-administration
Transferring bamboo agent settings
Asked by BenC:

Hi, we have a bamboo agent machine running Centos. We want to transfer this to Fedora (as all our other machines are on Fedora and it is causing issues).

I would like to know the easiest way to transfer all the settings on Centos Bamboo Agent machine to our new Fedora machine. We only have one licence and we need to have the minimum downtime when transferring. Can anyone help?


Answers:
author: Sandeep Nagaraja
body: Hello Ben

You might have to first install Same version of Bamboo on the new Fedora machine and during installation or post installation use 'Import data from an XML Backup' which will get all your data from Centos machine to Fedora machine. Of course you have to take the Bamboo latest backup as XML before doing the migration.

The above steps are for windows which i did, i guess it should be something same for Linux / Unix.

Cheers

Sandeep


author: BenC
body: Thanks for the help :smile:


Tags: bamboo-administration
Is there a way to run Parallel Builds in Bamboo
Asked by Sandeep Nagaraja:

Hello

Is there a way we can run 2 different builds running simultaneously on one agent server. Presently we see the Builds waiting in the queue for other build to complete. If we have parallel build then we need not wait for first build to complete and the second build will be picked up parallely.

Cheers

<br />

Sandeep


Answers:
author: Alexey Chystoprudov
body: Hello Sandeep,

You can't run several builds in parallel on same agent, but you can run them in parallel if you have more that one agent connected to Bamboo server

comments: author: Sandeep Nagaraja
body: Thanks Alexey , I could only see Concurrent build option in settings and never saw Parallel Build option. This means i need to configure the Build Plan Requirement to have 2 agents enabled to run the job and it will run in parallel if one of the agent is busy.CheersSandeep


Tags: bamboo-administration

jira-service-desk
how to do delpoyment with the help of Bamboo
Asked by Ishen Thapa:

automatic delpyment through bamboo


Answers:
author: Sandeep Nagaraja
body: Hello Ishen

You can use 'Trigger' functionality to achieve automatic deployment in Bamboo.

<https://confluence.atlassian.com/bamboo/triggers-for-deployment-environments-342098622.html>

Cheers

<br />

Sandeep
Bamboo behind login
Asked by Vincent te Beek:

Whenever I head to my Bamboo Instance I land on the Dashboard, I can see all of the builds even though I'm not logged in. Is there anyway to protect this info from being publicly available? I simply want users to login first before they see any info about our builds.


Answers:
author: Steffen Opel _Utoolity_
body: This can be achieved by disabling [anonymous access to Bamboo](https://confluence.atlassian.com/bamboo/allowing-anonymous-access-to-bamboo-289277230.html), i.e. *uncheck* access for anonymous users in step 3 below:
> Allowing *anonymous users* to access your Bamboo system means that people who aren't logged in to Bamboo will be able to perform functions such as generating reports, and viewing plans and build results --- subject to individual [plan permissions](https://confluence.atlassian.com/bamboo/granting-plan-permissions-in-bulk-289277232.html).
>
> \[...\]
>
> **To allow anonymous users to access Bamboo**:
>
> 1. Click the ![](https://confluence.atlassian.com/bamboo/files/306350223/cog.png) icon in the Bamboo header and choose **Overview**.
> 2. Click **Global permissions** (under 'Security'), and then **Edit Global Permissions**.
> 3. Check in the **Access** column for 'Anonymous users'.
> 4. Click **Save**.

comments: author: Vincent te Beek
body: Thank you so much dude. Happy Utoolity customer!


author: Steffen Opel _Utoolity_
body: @Vincent te Beek - my answer is complete now. Sorry for the weird iterative approach, but I hadn't encountered the restriction that "Your post was rejected because it contains blacklisted words" before, and the resulting post is word by word identical to the one that I wanted to submit in the first place, alas ...


Tags: bamboo-administration
Bamboo backups taking longer and longer
Asked by Alex Gabrielian:

We have a weekly schedule of backing up the Bamboo database, which is Saturday at 1:00am local time. This used to take approximately 12 hours and Bamboo would be available by noon on Saturday, however it has been taking longer and longer recently (up to Sunday morning, 2x as long!) Our database has been growing, but not two-fold like the backup has been. Is there a way we can cut down the time?


Answers:
author: Alex Gabrielian
body: @Sandeep Nagaraja any input on this?


author: Alex Gabrielian
body: @Sandeep Nagaraja it is a hot backup, that is while the database is up.


author: Sandeep Nagaraja
body: Is it Cold Backup or Hot Backup ?


Tags: bamboo-administration
Headless Windows VM and Bamboo
Asked by Eban Escott:

Gday,

We are using Windows 2012 Server as a VM for Bamboo continuous integration. Our tests use a GUI automation tool so we need the VM to be a head less server. The problem we have is that the tests do not pass unless we remote desktop to the VM, i.e. it seems like we cannot get Windows 2012 to be a head less server.

Is there something special we need to do to the Windows 2012 VM to make it work as a head less server?

Some facts about what we have done:

1. If someone logs in to the VM and runs the Bamboo test plan while the remote desktop is opened, then the tests will successfully run.

2. If there is no one logged in to the VM or the VM desktop is minimised after being logged in, then the Bamboo tests will fail.

3. We also took some screenshots during the tests. If the remote desktop is open, the screenshots look normal. However, if the remote desktop is minimised or the user logs off the VM, the screenshots are black.

Thanks in advance


Answers:
author: Eban Escott
body: We are still not having any luck here. Does anyone else have any suggestions or links to resources that Mike is referring to? Thanks in advance, Eban


author: Mike Friedrich
body: That's a limitation of Windows. You cannot have a UI to test on headless wich means no UI. You need a bamboo agent which does not run as a service to get UI tests running. If remote connected or does not matter then.

comments: author: Mike Friedrich
body: The UI behaviour of course also depends on the softw?re and the test tool you use, if they have special behaviour on remote sessions.They important, never run the agent as system, always use a normal user. You may even have to turn off UAC. That's suggested on remote agents only.


author: Eban Escott
body: Thanks for the info Mike :) Have you got some links handy that I could read about? Would it be something like <https://confluence.atlassian.com/bamboo/running-bamboo-as-a-windows-service-as-the-local-user-416580754.html> but seems to be for the application server and not the agent.The test tool we use is called Jubula (<http://www.eclipse.org/jubula/>). I do not believe this tool is the problem as the screen capture on failure is black and this is done using Java's java.awt.Robot which is independent of Jubula.We use no special behaviour on remote sessions that I am aware of. The use case is simply to use Bamboo to run some JUnit-based tests via Maven. Pretty standard stuff really.


Tags: cloud
PermGen memory increases do not resolve Elastic Bamboo PermGen failures
Asked by John Reese:

We are running Elastic Bamboo 4.4-i386 on Amazon 2014.09. As Clover finishes building we get the following PermGen Out of Memory error:

```
build	31-Aug-2015 16:17:32	Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 secbuild	31-Aug-2015 16:17:49	org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: nullbuild	31-Aug-2015 16:17:49	java.lang.reflect.InvocationTargetExceptionbuild	31-Aug-2015 16:17:49		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)build	31-Aug-2015 16:17:49		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)build	31-Aug-2015 16:17:49		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)build	31-Aug-2015 16:17:49		at java.lang.reflect.Method.invoke(Method.java:606)build	31-Aug-2015 16:17:49		at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:188)build	31-Aug-2015 16:17:49		at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:166)build	31-Aug-2015 16:17:49		at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86)build	31-Aug-2015 16:17:49		at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:101)build	31-Aug-2015 16:17:49		at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)build	31-Aug-2015 16:17:49	Caused by: java.lang.OutOfMemoryError: PermGen space
```

We are running Maven 3.0.2. In the Maven job definition I have reconfigured both MAVEN_OPTS and JAVA_OPTS to provide more PermGen memory with the following commands in the job plan:

MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=768m" JAVA_HOME="/mnt/bamboo-ebs/jdk1.7.0" M2_HOME="/opt/maven-3.0.2" M2="/opt/maven-3.0.2/bin" JAVA_OPTS="-Xmx512m -XX:MaxPermSize=768m"

We were successfully compiling and running Clover as recently as a week ago with the default PermGen value of 128 MB, about one-sixth what I have configured now. After the PermGen failures began I increased the PermGen values several times.

I checked the Elastic Bamboo instance while it was actually running. I see my settings running in the processes which eventually fail out for lack of memory. The increase PermGen values are visible in the Maven/Java processes.

What could be generating the PermGen Out of Memory error?


Answers:
author: John Reese
body: We plan to test our apps on JDK 8 later this year, but probably not for a couple of months. Unfortunately, our build/test cycle can't wait that long, so I would appreciate any help with this issue.


author: Przemek Bruski
body: Any chance you could switch this build to JDK 8, which doesn't use permgen?


Tags: cloud
Bamboo project with that key already exists in the remote instance
Asked by Takdir Chowdhury:

I created a project in JIRA and linked the project with Bamboo.

I deleted the project and tried to create a project with the same key of the deleted project

but it displays following error.

"Bamboo project with that key already exists in the remote instance".

I've noticed that all deleted projects in JIRA still keep existing in Bamboo.

Is there any way to clean up those unwanted projects in Bamboo?


Answers:
author: Curtis Olson
body: Same problem here. Very frustrating.


author: Takdir Chowdhury
body: Hi

I've been waited for more than one week but the unwanted projects still exist inside bamboo hence those project keys can't be recreated in Jira. We've decided to use Jenkins instead of Bamboo.


author: Bob Swift (personal)
body: Bamboo deletes projects in the background. You need to wait a minute or so before you can recreate the same project key.


Tags: cloud
Filtres
Asked by Doriane LE GUERN:

Bonjour,

Plusieurs personnes ont cr?? des filtres dans l'instance et aujourd'hui les filtres ne sont plus d'actualit? (et les personnes sont parties). Je suis admin et je voudrais supprimer les filtres pour faire un peu de m?nage mais je n'ai aucun moyen de le faire.

Avez-vous un conseil ou une solution ? me proposer ?

Merci :)


Answers:
author: Eugenio Onofre
body: Salut [@Doriane LE GUERN](/t5/user/viewprofilepage/user-id/5315275) ,

Bienvenue dans la communaut? Atlassian.  
Tout administrateur d'instance peut supprimer un filtre.

Veuillez vous r?f?rer ? la documentation officielle ci-dessous :  
<https://support.atlassian.com/jira-cloud-administration/docs/manage-shared-filters/>

N'oubliez pas d'accepter cette r?ponse au cas o? elle vous aiderait ? r?soudre votre probl?me, car elle pourrait aider d'autres membres de la communaut? ? l'avenir.

Salutations,  
Eug?nio

comments: author: Doriane LE GUERN
body: Bonjour Eug?nio !

Merci beaucoup pour le tuto !

Cordialement,

Doriane


Tags: cloud

jira-service-management

jira-service-management-cloud