youngmon/atlassian-qna huggingface dataset:
Bamboo checkout from repository - where are the logs?
Asked by Ken Wood:

When we do a build in Bamboo, we see in the logs that the build started:

```
simple	05-Jul-2011 14:50:03	Executing build ABC-ABCPLAN-1047simple	05-Jul-2011 14:50:03	Running pre-build action: VCS Version Collectorsimple	05-Jul-2011 14:50:03	Running pre-build action: Build Number Stampersimple	05-Jul-2011 14:50:03	Running pre-build action: Pre Command Agent Runnersimple	05-Jul-2011 14:50:03	Building started with ScriptBuilder

And in the build summary there is text that says "Build took 20 minutes". If I mouse over that text, it tells me in a popup box 
that "source updating for 8 minutes"

What I want to see is the LOG of the source updating. Is that not logged? Is it hidden somwehere? 
Is there a configuration setting somewhere that controls whether this is logged or not?

I checked the docs and the forums, can't find it if it's there.

Currently Bamboo 2.5, but I also don't see this in documentation for 3.1

```


Answers:
author: Royce Wong
body: Thanks. Must be a new feature in the newer versions of Bamboo.

<https://bambooServerFQDN/admin/configLog4j.action...> that's your internal sever, on one can get to that. :)

comments: author: JonnyG
body: actually, its not my internal server, look at the servername... its a stub.. like saying <https://someDudesWebServerFQDN>  

the URI (the part that is AFTER the server FQDN) was there so you could try to access it on your server by supplimenting the stub with your server's FullyQualifiedDomainName (FQDN).. but as Bruski clarified, its introduced in a newer version than you have. Good luck.


author: Sam Anderson
body: We use Subversion as well and have managed to get the results of the update of the repository by doing the following.

In the Administration menu, enter the 'Log Settings' under 'System'. This gives you a selection of results to log, if you set 'Webwork' and 'root' to 'debug' verbosity this logs everything that occurs.

comments: author: Royce Wong
body: Which version of Bamboo are you referencing? I am using Bamboo 2.3.1 and I don't see:
> In the Administration menu, enter the 'Log Settings' under 'System'.


author: JonnyG
body: I'm using 3.1.4 and its located right where he said it was, here's the URI:  
https://bambooServerFQDN/admin/configLog4j.action


author: Przemek Bruski
body: This feature was introduced in 2.4, that's why you can't find it.


author: Przemek Bruski
body: It's not logged. Depending on your VCS, you may be able to switch detailed logging on.

comments: author: Ken Wood
body: We use subversion. I looked at the bamboo admin panel for logging, didn't see anything that was (obviously) VCS or SVN related.


Tags: log

repository
Derive the Artifact URL for external reference?
Asked by JonnyG:

We just upgraded from Bamboo 2.7.2 to 3.1.4, and it looks like the URLs for the artifact files has changed.

Has anyone found a way to derive the URL for an artifact file so it can be provided to an external app which will download the package?

Currently, the URL looks like this:  
/browse/\<ProjectKey\>-\<PlanKey\>-\<BuildNumber\>/artifact/\<JobKey\>/\<Artifact Name Description\>/ZipFileName.zip

Is there a way to derive this inside the NAnt job for any given random project artifact?

https://bamboo.mydomain.local/browse/${bamboo.ProjectKey??}-${bamboo.PlanKey??}-${bamboo.buildNumber}/artifact/${bamboo.JobKey??}/${??}/ZipFileName.zip


Answers:
author: Przemek Bruski
body: Use first two parts of bamboo.buildKey to determine \<ProjectKey\>-\<PlanKey\>

Use bamboo.buildNumber to determine \<BuildNumber\>

Use last part of bamboo.buildKey to determine \<JobKey\> . Note that if your artifact is a shared artifact, you should use 'shared' instead of job key.

The \<Artifact Name Description\> is the label you have given to your artifact with spaces substituted with dashes.

comments: author: JonnyG
body: Thanks for your help, i was afraid it would involve some kind of string parsing :-\\

Is the Artifact-Name-Description array not available from within Bamboo in any way?


author: Przemek Bruski
body: Well, it is. You can get the URLs and the array using REST calls, but that's slightly more complicated. Have a look at [REST documentation ( \<tt\>results/result/artifacts/artifact/link\</tt\> )](at%20REST%20resource%20docs "REST docs")

comments: author: JonnyG
body: Thanks for your help!


author: JonnyG
body: We are providing the URL to an external program to store and later download the artifact. Thus the requirement for the full URL to the resulting ArtifactNameDescription\\artifactName.zip location.


author: Przemek Bruski
body: Do you need the URL to use it to download the artifact or just to store the URL somewhere?

comments: author: JonnyG
body: We are providing the URL to an external program to store and later download the artifact. Thus the requirement for the full URL to the resulting ArtifactNameDescription\\artifactName.zip location.
How to setup a plan to run in different configurations ?
Asked by Barth?l?myH:

Hello everybody,

I am new to Bamboo and trying to understand how it works. I have a c++ project (cmake based) where I want the following steps to be executed:

```
Configure -> Build -> Test -> Package -> Distribute
```

I presume this is my "Build Plan".I created a single job with 5 tasks. Is that the correct way of doing it ? or should I split it in Jobs within Stages ?

Secondly, I want this plan to be ran on different platforms (Ubuntu, Mac) and with different configurations (gcc 3.x vs 4.x, Debug vs Release mode).

I have therefore created 2 remote agents, one on mac one on Ubuntu. Apparently here I have to duplicate the plan because I can't run the same plan on two different agents. Is that correct ?

I also want to alter the configure task so that I can run against different compilers or with different compiler flags. Do I have again to duplicate my plan ?

At this point, I have already 16 plans (all combinations of the various configurations). If now I realize that I need 1 more step in my plan, do I seriously have to edit the 16 plans ? Or did I miss something ? Is there any ways of parameterizing a plan to avoid this issue ?

Thank you in advance,

Barth


Answers:
author: Przemek Bruski
body: > I created a single job with 5 tasks. Is that the correct way of doing it ? or should I split it in Jobs within Stages ?

That's correct. Stages would also work, but you'd have to pass the artifact between them which would likely increase the build time.
> Apparently here I have to duplicate the plan because I can't run the same plan on two different agents. Is that correct ?

Yes, that's right.
> Is there any ways of parameterizing a plan to avoid this issue ?

Unfortunately not.

comments: author: Barth?l?myH
body: Ok, thank you very much. Now all is clear :)

regards
Bamboo Agent Exception : "Could not recursively kill windows process using winp; falling back to java.lang.Process#destroy"
Asked by Maximilian Friedmann:

How can I get rid of these messages in the Bamboo Agent's log? Do I have to install something additional?

```
INFO   | jvm 1    | 2011/07/04 08:48:23 | 2011-07-04 08:48:23,045 ERROR [4-BAM::
BambooAgent10_2::Agent:pool-6-thread-1] [ExternalProcess] Could not recursively
kill windows process using winp; falling back to java.lang.Process#destroy
INFO   | jvm 1    | 2011/07/04 08:48:23 | java.lang.NoClassDefFoundError: Could
not initialize class org.jvnet.winp.Native
INFO   | jvm 1    | 2011/07/04 08:48:23 |       at org.jvnet.winp.WinProcess.<in
it>(WinProcess.java:41)
INFO   | jvm 1    | 2011/07/04 08:48:23 |       at com.atlassian.utils.process.E
xternalProcess.cancel(ExternalProcess.java:498)
INFO   | jvm 1    | 2011/07/04 08:48:23 |       at com.atlassian.utils.process.E
xternalProcess.wrapUpProcess(ExternalProcess.java:456)
INFO   | jvm 1    | 2011/07/04 08:48:23 |       at com.atlassian.utils.process.E
xternalProcess.finish(ExternalProcess.java:329)
INFO   | jvm 1    | 2011/07/04 08:48:23 |       at com.atlassian.utils.process.E
xternalProcess.execute(ExternalProcess.java:373)
INFO   | jvm 1    | 2011/07/04 08:48:23 |       at com.atlassian.bamboo.process.
ProcessServiceImpl.executeProcess(ProcessServiceImpl.java:180)
INFO   | jvm 1    | 2011/07/04 08:48:23 |       at com.atlassian.bamboo.plugins.
maven.task.Maven3BuildTask.execute(Maven3BuildTask.java:75)
INFO   | jvm 1    | 2011/07/04 08:48:23 |       at com.atlassian.bamboo.task.Tas
kExecutorImpl.executeTasks(TaskExecutorImpl.java:117)
INFO   | jvm 1    | 2011/07/04 08:48:23 |       at com.atlassian.bamboo.task.Tas
kExecutorImpl.execute(TaskExecutorImpl.java:73)
INFO   | jvm 1    | 2011/07/04 08:48:23 |       at com.atlassian.bamboo.build.pi
peline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:87)
INFO   | jvm 1    | 2011/07/04 08:48:23 |       at com.atlassian.bamboo.v2.build
.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:192)
INFO   | jvm 1    | 2011/07/04 08:48:23 |       at com.atlassian.bamboo.v2.build
.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.jav
a:99)
INFO   | jvm 1    | 2011/07/04 08:48:23 |       at com.atlassian.bamboo.v2.build
.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:106)
INFO   | jvm 1    | 2011/07/04 08:48:23 |       at com.atlassian.bamboo.build.pi
peline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50)
INFO   | jvm 1    | 2011/07/04 08:48:23 |       at java.lang.Thread.run(Thread.j
ava:662)
```


Answers:
author: Marcin Gardias
body: This seems to be a known bug: <https://jira.atlassian.com/browse/BAM-9003>

It has been fixed in 3.1.3. If you have this version already and still experiencing the problem please update the bug report.


author: Maximilian Friedmann
body: Nope, just updated and everything works fine. The workaround, described in BAM-9003 also worked for us until we updated to 3.1.4!

Thx a lot!
How do I authorize Eclipse to retrieve bamboo results?
Asked by Timo Veldt:

I've just installed the Eclipse Connector and added a repository for Jira which works fine. I've also added a repository for bamboo, which showed all the build on the server and I selected a subset of these builds. However when refreshing the build information in the Bamboo view, Eclipse reports a HTTP 401 error.

As you might notice from the description above, the connector told me my login credentials are correct so I'm assuming it is a Bamboo issue. How can I allow Eclipse to retrieve the Bamboo build information (I have administrator rights for bamboo)?

\*\*Using Bamboo 2.5.3 build 1716 and Eclipse Helios (3.6) with Atlassian Connector 3.0.0 plugin and Mylyn 3.6.0 plugin.\*\*


Answers:
author: Jens Schumacher [Atlassian]
body: Could you provide some more details on this? What version of Eclipse are you running and what version of Bamboo?


Tags: connector

eclipse
Bamboo 3.1.1 "Could not move tasks, task list is out of sync"
Asked by Ken Wood:

While evaluating Bamboo 3.1.1, I created a task, which by default follows the task that was already present.

When I try to move the new task in front of the existing task, I get:

**Could not move tasks, task list is out of sync**

How do I fix this?


Answers:
author: Ken Wood
body: Thanks for the info. Just FYI, it persisted even after a logout and login, then a logout and server restart. I resolved it by deleting both tasks, then re-creating them in the correct order.


author: Przemek Bruski
body: It's a bug: [https://jira.atlassian.com/browse/BAM-8876](https://jira.atlassian.com/browse/BAM-8876 "bug") . It hasn't been fixed in the 3.1 series yet.


author: Jens Schumacher [Atlassian]
body: Please create a support request if you are still seeing this issue. That potentially sounds like a bug.
Nant succeeds but fails the task because of -1 error code
Asked by Benjamin Corliss:

I'm a bamboo noob (currently doing evaluation). I'm trying to run a working very simple NAnt build. In the log, it looks like it completes, but it fails with this message:

|----------------------|--------------------------------------------------------|
| 30-Jun-2011 11:54:31 | Failing task since return code was -1 while expected 0 |

```
I don't see any output from the Nant task itself.  The Nant build file does execute in the command line just fine.
```


Answers:
author: James Dumay
body: Can you file a support request with us at support.atlassian.com? This sounds potentially like a bug.


author: Benjamin Corliss
body: I get 0 from the command line. Hmmm. I also get the same result from bamboo when running msbuild on the same sln. Msbuild works from the command line with return code of 0 as well.


author: Przemek Bruski
body: Are you able to check what is the result code when you run it from the command line?


Tags: nant
How to tag successful builds?
Asked by eric.jain:

How do I tell Bamboo to tag a successful build with a fixed tag (e.g. "release")?


Answers:
author: Przemek Bruski
body: Assuming you are using Bamboo 3.1: take Bob's answer and place it as the last non-finalising task of Script (inline) type in your job.


author: Bob Swift (personal)
body: Probably not what you are looking for, but we label (tag) builds from an external script based on various criteria using <https://studio.plugins.atlassian.com/wiki/display/BCLI> and something like:

```
bamboo --action addLabels --build "XXX-DEF" --labels "release keep" 
```


Tags: tag
How to synchronize bamboo with crowd
Asked by francis:

I made some modifications in crowd. This should now ripple to bamboo. How can I do this without restarting, and without waiting until the cache is timed out ?


Answers:
author: Przemek Bruski
body: With embedded crowd coming in version 3.2, you will be able to flush the cached Crowd data, forcing refetch.


author: Colin Goudie
body: I don't think there is a way in 3.1 or below. It looks like embedded crowd is coming in 3.2 so I would imagine if that is the case then you'll be able to sync at any time then. Ike you can in JIRA and Confluence now.Can any Atlassians confirm that?


Tags: crowd
I have error when I try to push or clone a repository
Asked by Tanya:

GnuTLS recv error (-110): The TLS connection was non-properly terminated.


Answers:
author: Nic Brough -Adaptavist-
body: This would suggest your machine doesn't have the right certificates or is not using the right TLS settings to connect to it.

If you're not sure where to look next, could you give us the exact command you're using to push or clone (obscure the service name of course - for example "git clone <https://aaa@bitbucket.org/bbb/ccc.git>" - aaa, bbb and ccc replace the names I might not want people to see but don't actually break the data about what I'm doing)


Tags: bitbucket-cloud

cloud
Repository size exceeds limit error persists after cleaning repo
Asked by jasmc:

I've accidentally committed several large files to my repo and now it is not allowing to push the changes because the size exceeds 4GB.

I followed the instructions in [Reduce repository size \| Bitbucket Cloud \| Atlassian Support](https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/) and reverted my repo to the commit before I uploaded all the files.

I removed every branch of my repo except the *master* and all commits that happened after I uploaded all the files.

I enabled the *Delete dangling commits when over size limit* option in Labs.

After this, I noticed that the *.git* folder still was 7GB most of them being the *objects folder.* So I ran the Garbage Collection steps in [Maintain a Git repository \| Bitbucket Cloud \| Atlassian Support](https://support.atlassian.com/bitbucket-cloud/docs/maintain-a-git-repository/) and now the whole repo is 600MB.  

I still can't push changes to the internet and if check online it still says that Repository size exceeds limit.

Did I do something wrong?

Let me know if I can give you more info. Cheers!


Answers:
author: Caroline R
body: Hi, [@jasmc](/t5/user/viewprofilepage/user-id/4509069), welcome to the community!

I saw that you created a ticket with our support related to the same question, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let's focus on the ticket instead.

Once the ticket is resolved, feel free to share the resolution here to help other community members that may have the same issue.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Is there a bitbucket API to edit group membership within a team?
Asked by ithryeandeus:

I have a bunch of bitbucket groups that all have different access levels to repositories in my team's workspace. Is there a way to automatically add them to a specific group when the account is created, or sometime after if they switch teams or job positions?


Answers:
author: Caroline R
body: Hi, [@ithryeandeus](/t5/user/viewprofilepage/user-id/1759559),

Thank you for reaching out to Atlassian Community!

Just to give you some context around our API, our old rest API 1.0 use to include endpoints that would allow these sorts of operations, however, the [1.0 API has been deprecated](https://developer.atlassian.com/cloud/bitbucket/deprecation-notice-v1-apis/) with the intent that the 2.0 API would be a direct replacement.

With that said, there are a few old 1.0 endpoints that we kept in place as a temporary solution until the 2.0 replacements are made available.

Until the Atlassian platform services are fully available in Bitbucket, we will continue to support these 1.0 REST endpoints:

    /1.0/groups/1.0/group-privileges/1.0/invitations/1.0/users/{accountname}/invitations

You can find all the information about these endpoints here:

* [Use Bitbucket REST API version 1](https://support.atlassian.com/bitbucket-cloud/docs/use-bitbucket-rest-api-version-1/)

* [group-privileges Endpoint](https://support.atlassian.com/bitbucket-cloud/docs/group-privileges-endpoint/)

* [groups Endpoint](https://support.atlassian.com/bitbucket-cloud/docs/groups-endpoint/)

I hope this helps, but do let me know if you have any questions.

Kind regards,  
Caroline

comments: author: ithryeandeus
body: Hello Caroline,

Thank you for pointing me in this direction. I'll be sure to give that a thorough look-through. I had thought 1.0 was completely gone and didn't think to look here for it.

Similarly, is there a 1.0 version of the API that I can use for Bitbucket Repo Creation? <https://community.atlassian.com/t5/Bitbucket-questions/How-do-I-create-a-new-repo-via-2-0-API-and-powershell/qaq-p/1757111>

I've tried this a few different ways and can't get it working. Starting to wonder if I should try and use the 1.0 version instead.


author: Caroline R
body: Hi, [@ithryeandeus](/t5/user/viewprofilepage/user-id/1759559),

It is not possible to use version 1 of API to create a repo, all endpoints have been removed with the exception of the ones I've listed.

However, the API 2 works fine for me for repository creation with curl. Here is the request I have run:

    curl -X POST -u {username:password} -H "Content-Type: application/json" -d '{"scm": "git", "is_private":"true", "project": { "key": "{inser_the_project_key}" } }' https://api.bitbucket.org/2.0/repositories/{workspaceID}/{repository_name}

I'm not very familiar with Powershell, but you can perhaps ask it here:

* <https://community.developer.atlassian.com/>

Please, feel free to share any additional questions regarding this case.

Kind regards,  
Caroline


Tags: api

bitbucket-cloud

cloud
Merge strategy in .gitattributes doesn't work on Bitbucket.
Asked by Jader Yang:

I add the rules in .gitattributes as below.

changelog.txt merge=union

It works well on my local. But it didn't work when I create a pull request on the Bitbucket website.

I saw there are some same questions on community. So you don't have implemented this feature yet?

Is there any other way I can try? Because this file needs to be changed frequently by multiple people, it is very easy to conflict. My team members are annoying it.


Answers:
author: Caroline R
body: Hi, [@Jader Yang](/t5/user/viewprofilepage/user-id/2453639)!

Thank you for reaching out to Atlassian Community!

For now, if you merge the code in Bitbucket and there are conflicts, you'll need to resolve them locally. We don't have a way to automatically resolve conflicts when merging from the website.

We do have the following feature request to add the ability to automatically resolve merge conflicts:

* <https://jira.atlassian.com/browse/BCLOUD-12935>

I would suggest that you add your vote there (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features.

You are more than welcome to leave any feedback there, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

If you are not familiar with our Feature Request Policy, you can read more about it [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Also, in case you would like to read more about merge conflicts, you can access the following documentation:

* [Resolve merge conflicts](https://support.atlassian.com/bitbucket-cloud/docs/resolve-merge-conflicts/)

Please, feel free to share any additional questions or concerns regarding this case.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
https://bitbucket.org/zfjdeveloper/zfj-importer/downloads.
Asked by Mary Kodudula:

When i click on this link I am getting a 404 error saying "

That link has no power here" {#toc-hId--1238134480}
---------------------------------------------------


Answers:
author: Dave Liao
body: [@Mary Kodudula](/t5/user/viewprofilepage/user-id/4508269) - try again?

[The link](https://bitbucket.org/zfjdeveloper/zfj-importer/downloads/) works for me.

I can also access it from an incognito window.


Tags: bitbucket-cloud

cloud