youngmon/atlassian-qna huggingface dataset:
Maven artifact finalName
Asked by Tomasz Krakowiak:

I want to create build and deploy configuration which consists of following steps:

1. Build artifact with maven.
2. Upload artifact using scp.
3. Unpack artifact to specyfic directory.
4. Execute script.

The problem is - i don't know the exact artifact filename and it will change over time. I would prefere to avoid using wildcards here.

I haven't found and recomendations on the internet how to do it:

* *(not working)* Force finalName to be specyfic via maven opts, like  

  ```
  MAVEN_OPTS="-Dproject.build.finalName=artifact-name-${bamboo.buildNumber}"
  ```

  and later assuming that my artifact name is "artifact-name-${bamboo.buildNumber}-distributable.zip"
* Try to find out the finalName generated by maven from pom, like with

  mvn help:evaluate -Dexpression=project.build.finalName \| grep -v \\\\\[

  I could execute this comman, write result to a file, share it and get finalName from file on server.

And best practices in here?


Answers:
author: Tomasz Krakowiak
body: I found out that first solution doesn't work. I don't want to hack my pom for bamboo to inject some bamboo properties...
How can you create a build plan that executes another build plan
Asked by Ryan Vice:

I have a simple scenario I'd like to implement. Assume I have the following plans

(1) Build and Archive

(2) Deploy Archive to environment based on a parameter and depends on (1)

(3) Deploy Archive to daily environment based on daily timer and depends on (1)

The idea is that all plans need (1) to execute first so I want to be able to run (1) first thing when I run (2) or (3). Is that possible? Is there another way to accomplish this with Bamboo that makes more sense?


Answers:
author: Jason Monsorno
body: [](https://confluence.atlassian.com/display/BAMBOO052/Setting+up+plan+build+dependencies)<https://confluence.atlassian.com/display/BAMBOO052/Setting+up+plan+build+dependencies>

Build dependencies in Bamboo are configured backwards to convential thought. From a parent build you need to define the child. So (1) triggers (2) but other than a log, you won't see (2) is triggered by (1) anywhere.

comments: author: Ryan Vice
body: Yeah, I was hoping for the more conventional approach.


author: Bob Swift (personal)
body: [CLI Plugin for Bamboo](https://bobswift.atlassian.net/wiki/display/BCLIP) can be used with a Bamboo CLI action like [queueBuild](https://bobswift.atlassian.net/wiki/display/BCLI/Documentation#Documentation-queueBuild). If you use the [wait](https://bobswift.atlassian.net/wiki/display/BCLI/Documentation#Documentation-wait) parameter, it will wait for the build to complete or timeout before continuing with the original build.

comments: author: Ryan Vice
body: Does that work for On Demand and if so is there instructions on how to install it and use it?


author: Bob Swift (personal)
body: No, it does not work for OnDemand. Sorry, I missed that in the labels.


Tags: cloud
Linux on non-localhost
Asked by J:

Hello,

I've got bamboo running on a command-line-only CentOS server and am prompted with the setup screen when I access it via the SSH command:

```
lynx localhost:8085
```

However, I cannot access it via a browser from another machine when visiting: [](http://ip.ip.ip.ip:8085)<http://ip.ip.ip.ip:8085>

How can I open up the install to allow access from non-localhost so I can continue the setup?

Thanks


Answers:
author: Nic Brough -Adaptavist-
body: If you can get to it on localhost but not externally, then you need to check

That the ip address is correct on your network - can you reach the machine with basic pings? Is it definitely on your network with that address?

That CentOS is configured to allow access on that port. Check the firewall and SELinux settings. From memory, CentOS off-the-shelf is setup to be put on the internet as a standard web-server, which means locking down all ports except 80 and 443
Bamboo jobs history
Asked by Abhi Vaishnav [X]:

Hi,

I want to create a report on the history of a specific job (passed vs failed) - not a plan.

Specifically, I want to know what percentage of the time a build job passes. I can get this at the plan (a plan has a build and test job) but I can't seem to get it at the job level.

Is that possible with Bamboo or Bamboo CLI? Even if can get the list of buids for a given job, I can write a script to parse and create the report myself, but I can't seem to get the list of builds for a given job...


Answers:
author: Jason Monsorno
body: /rest/api/latest/result/PROJECT-PLAN-JOB

comments: author: Abhi Vaishnav [X]
body: Won't this give me the result of only the latest run?


author: Jason Monsorno
body: It gave me the entire history, why don't you try it.


author: Abhi Vaishnav [X]
body: Oh you are right; it did give me the latest 25 results...

I know I can do ?expand=results\[25:100\].results and get results for 25-100, but any chance you know how to get those results in .json format?

Doing

```
/rest/api/latest/result/ROBHEAD-LIN32-JOB1.json?expand=results[25:100].result
```

Does not give it to me in JSON format... what am I doing wrong? (neither does putting the .json at the end of .result)... \[And I'm new to REST, so sorry if this is a beginners question\]


author: Jason Monsorno
body: ```
/rest/api/latest/result/ROBHEAD-LIN32-JOB1.json?start-index=25&amp;max-result=76
```

Indices start at 0, by default Bamboo will only return 25 results so above is the typical way to get a later subset. If you're more comfortable with your format you can still use it like this:

```
/rest/api/latest/result/ROBHEAD-LIN32-JOB1.json?max-result=0&amp;expand=results[25:100].result
```

The main side effect I see is the **size** attribute goes from the result count to the entire set count.


author: Abhi Vaishnav [X]
body: I ended up modifying the the first route of:

```
/rest/api/latest/result/ROBHEAD-LIN32-JOB1.json?start-index=startIndex&amp;max-result=10
```

and having a start Index that increases by 10 in each iteration of the loop.


author: Abhi Vaishnav [X]
body: Won't that give me just the result of the latest run?
Why are zip file artifacts corrupted, but are ok on my build agent?
Asked by Mitch Thompson:

I have a setup that creates a deployment file using msbuild, and is later used by msdeploy. Its a zip file. I've noticed that most of the time, the artifact will be corrupt but if I look at the build-dir on the build agent machine, it is in fact not corrupt.

How are these files getting corrupted in the copy process through bamboo?


Answers:
author: Mitch Thompson
body: It ended up being a setting in the network card setup. The "Large Send Offload" needs to be set to Disabled for it to work properly. This setting is in "Advanced" un the network card -\> properties on the build agent.

A related problem of artifacts randomly not copying led us to this solution.

See [](https://confluence.atlassian.com/display/BAMKB/Windows+build+artifacts+are+not+copied)<https://confluence.atlassian.com/display/BAMKB/Windows+build+artifacts+are+not+copied>


author: Jason Monsorno
body: Ok, you got a .pubxml then? Noone can reproduce your case without your config, you need to supply actual details.


author: Aseem Parikh
body: That seems like odd behavior to me. If the zip files were corrupt 100% of the time, I'd say that they're being corrupted in transit. If, for example, the zip file is being copied somewhere using a non-binary streaming method then it would be corrupted. If I were you, I still wouldn't rule this possibility out until I examined the setup more closely.

Do you only have the 1 build agent capable of performing the build or multiple? That might explain why it works every now and then.


author: Mitch Thompson
body: It is a zip file. Its created using msbuild as follows:

msbuild.exe solution.sln /T:Build /p:DeployOnBuild=True /p:PublishProfile='Dev Server'

My deploy method is to use parameterized deployment. The zip file it creates contains the site. Also, I forgot to mention, it will finally create non-corrupt artifact after attempting the build 4 to 5 times.


author: Jason Monsorno
body: Define "essentially a zip file". If you are creating something like a .msi then by default it is only valid on the machine it is built on. Msbuild is extremely configurable to do a handful of different operations; you'll need to provide more information on how you're actually using it first. It sounds more like you need help with the build; Bamboo is copying correctly just not what you want to see as a result of the build.


Tags: artefact

build-agent
Custom Junit reports
Asked by Marcin Czajka:

Hi,

Is there any way to change the style of JUnit reports? For example defining own xslt file, that processes JUnit xml? I'm interested in adding some new columns/informations to the test report.

thanks


Answers:
author: pradhyumna shrestha
body: I think you might need to create your own bamboo plugin to do this. The built-in junit plugin doesn't support this.


author: AndrewS
body: Does anyone have a solution to this? I am also very keen on adding extra information to the JUnit report.
Clean Bamboo Agent build-dir
Asked by Daniel Hopper:

The disk usage on our Bamboo Agents has grown considerably. What I want to know is if it is safe to periodically completely delete the build-dir on the Bamboo agents to free up space. Like every 2 weeks just completely delete the entire directory.

I imagine this should be fine as all the necessary information is sent back to the main Bamboo server correct?


Answers:
author: Jason Monsorno
body: If the agent isn't currently using the directory, then yes it is safe to remove the entire contents but that may not really solve your issue. Unless you are shuffling through branches and wait for Bamboo to expire them (no more activity but branch is still in VCS) you are likely to fill up the same space when normal activity resumes and things begin to build again. We've bit the bullet of time and just have it clean the working directory after each use.

comments: author: Daniel Hopper
body: Part of the issue is that Bamboo doesn't in fact clean up Branch Plans and will leave them hanging around taking up disk space on the agents. I don't really want to waste time having to check to see if the branch plans still exist as if they do Bamboo will just recreate them.


author: Todd Ellner
body: Jason Monsom, I had been wondering about this. The amount of space the build-dir takes up, even with nightly pruning, is currently keeping us from upgrading Bamboo.


author: roy_lyons
body: Be careful - the git cache is also in that directory. If you want to do so, I would schedule downtime for the instance to allow the cache to not be impacted.

I personally have created scripts to clean in the .m2/agentid folder and have periodically deleted target directories within build-dir folders based on age of their contents.


Tags: bamboo-administration
Unable to publish artifact
Asked by Sergey_Alekseenko:

|----------------------|---------------------------------------------------|
| 14-Jan-2014 08:19:54 | Publishing an artifact: project-build-apk         |
| 14-Jan-2014 08:29:38 | Unable to publish artifact \[project-build-apk\]: |

no other errors

all bamboo-home with 777 rights

nginx params: (nginx:443 \<=reverse proxy=\> localhost:8085)

client_max_body_size 200M; and test uploads works fine


Answers:
author: ssetayeshfar
body: Hi Alexey,

Are you uploading artifacts from a remote or elastic agent? Can it be the case that you are using an old proxy server or firewall that doesn't fully support HTTP v1.1 ?

Please have a look at this - [](http://wiki.nginx.org/HttpChunkinModule)[http://wiki.\<span\< a=""\>\>nginx.org/HttpChunkinModule](http://wiki.%3Cspan).

If the problem persists, please open a support ticket at <https://support.atlassian.com>.

Thanks!

Best,

Sepideh

comments: author: Jason Monsorno
body: [](http://wiki.nginx.org/HttpChunkinModule)<http://wiki.nginx.org/HttpChunkinModule>


author: Sergey_Alekseenko
body: Thanks for help with Nginx ChunkinModule!

It solved our problem!


Tags: bamboo-administration
Why does bamboo switch between its working directory
Asked by Paul Blakeley:

Hi,

Can someone please explain to me why bamboo switches between its working directory? When I run the same plan multiple times the location switches between D:\\atlassian\\data\\..., C:\\Users\\...,   
C:\\build\\... etc. Please can you explain.


Answers:
author: Jason Monsorno
body: Do you have remote agents with different base directories? Can you describe your setup a bit more?
Bamboo REST API: Filtering failed build results
Asked by Odin Odin:

We tried using the following endpoind to list the latest failed builds only: rest/api/latest/result.json?expand=results.result\&buildstate=Failed . However, for each plan, it lists the previous build that failed, even though there were successfull builds AFTER that failed build.

Is there a way to list only results where the build has failed and is the latest build?


Answers:
author: Sylvain Laurent
body: Did you find a solution ? I would like to list all failing plans of a project and I am facing the same problem as you
Has anyone successfully used datepicker template in a bamboo plugin?
Asked by Dana Cleveland:

For example, if my edit.ftl file has the following line

@ww.textfield"\>\[@ww.textfieldlabelKey="schedule.date" name="schDate" template='datepicker' required='true' /\]

I would expect it to show me a calendar to choose a date.

I throw a tone a javascript errors looking for references to 'jscalendar'

I don't want a cron type picker, i'm looking for a built in calendar date chooser for bamboo (5.3)


Answers:
author: Dana Cleveland
body: the webwork date-picker is not available in Bamboo

It is recommended to use the AUI Date Picker..

[](https://docs.atlassian.com/aui/latest/docs/datePicker.html)<https://docs.atlassian.com/aui/latest/docs/datePicker.html>


Tags: app

template
Code Quality + Bamboo = Show Stopper?! REALLY!?
Asked by dustin_barnes:

Ok, this is bordering on insanity. There are literally zero -- that's right, ZERO -- ways to track code quality of projects in Bamboo 5.4.x. Checkstyle, FindBugs, jsLint, PMD, CPD. There are all standard tools that are well-supported in most other CI servers -- like, say, the FREE Jenkins.

I'm beginning to think I made a HUGE mistake by suggesting Bamboo to my organization, and that we should have gone with TeamCity. In fact, we just dropped several thousand dollars for a CI/CD server that is LESS CAPABLE than a FREE build server. This is absolutely unacceptable for a CI tool. It's a very basic feature. It's like Maven being unable to compile Java until "3rd parties" update plugins.

I also don't buy the argument that they're "3rd-party" plugins. These tools form the core of analyzing and tracking your code quality. These shouldn't even be optional plugins, they should be first-level supported, much like Maven and JUnit coverage. Atlassian should stop everything they're doing and get these tools supported ASAP. Because in the mean time, we're not even going to install Bamboo. It's that useless to us without this support.


Answers:
author: Daniel Tetzner
body: Couldn't agree more...


author: Timothy Harris
body: Tried to get some feedback at the CoDe conference in Copenhagen but basically got nowhere :-(


author: Timothy Harris
body: At one point SonarQube worked. Well it is now broken. I checked the confluence page of the company who maintains it, Marvelution. Doesn't look like there will be any update anytime soon.

I work for a consultant company. We are Atlassian partners and are installing and helping set up the whole suite of Atlassian products. Unfortunately this is a deal breaker for Bamboo at least. Static code analysis is a must. So we are, in all likelihood, going to fall back to Jenkins.


author: Jason Monsorno
body: What language are you compiling? There are plenty of ways to include coverage and/or quality reports, most just aren't one click solution.


author: Daniel Wester
body: Have you looked at the marketplace ? There are a couple of add-ons that seems to say they do this.

comments: author: dustin_barnes
body: I have. The checkstyle one only supports 4.4.x (and only because of a pull request...). The rest are similarly out of date.

But Jenkins has this: [](https://wiki.jenkins-ci.org/display/JENKINS/Analysis+Collector+Plugin,)<https://wiki.jenkins-ci.org/display/JENKINS/Analysis+Collector+Plugin>, which seems like such a basic thing to be supported in a commercial CI tool.


Tags: bamboo-administration
Issue with branch cleanup
Asked by Chris Wundram:

I had an issue with a plan branch that wasn't built for a couple of weeks. It appears that bamboo removed the plan branch, even though the branch still existed in git. I'm guessing that this was because of the automatic branch cleanup.

A few issues/questions.

1. How do I adjust the time a branch has to be inactive before it is cleaned up. The default time is much too short for us.

2. When I re-add the branch, the build number is back at #1. This is a big problem because we use the build number and the branch name to generate a version number. When the build number goes back to 1, we end up reusing already used version numbers. How can I get the build number back where it should be. So far I have had to press build branch, and stop build, n times to get the build number back to n. This isn't a big deal if the last build was something like 15, but if it was 115, this is a big issue.

Now that I look, I see a few plan branches that have been cleaned up that shouldn't be. How can I get these back? Can I set a pattern that branches with names that match release/\* should not ever be cleaned up like this?


Answers:
author: Jason Monsorno
body: The setting is on the Branches tab in Plan configuration. You can override deletion on a per branch scenario by going into the branch's configuration and selecting "Do not clean up this plan branch automatically." If you want to preserve a subset of branches then I think you'd have do it manually or make a custom job that try to set them every so often, basically Bamboo can't do it. If automatic deletion is anything like manual deletion then you can't recover it, you may be able to make a new branch alter the DB and restart Bamboo to get back your build number but that's about it. Personally we try to be CI tool independent, I use the build number as a hint if it's available (always handled as a nullable int) but rely on revision and build time.

comments: author: Chris Wundram
body: Any idea what the inactivity time is? Is there any way to change the time? I'm thinking it should be at least a couple of months.


author: Jason Monsorno
body: It will show you on the Plan Configuration page, the default is 30 days and clean up is run at 3 a.m. (at least mine says that, it may be locale based)


Tags: bamboo-administration
Bitbucket Merge PR reminder.
Asked by Gurunand reddy bade:

Hi All,

We are looking for a function in bitbucket that would allow us to send reminders for the users to Merge their Pull Requests once it has satisfied the number of approvers.   
Surprising as it may seem, users generally don't merge their PR and it would be nice to send them notifications to remind them that their PR is ready to be merged.

Thank you,

Gurunand


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Gurunand reddy bade](/t5/user/viewprofilepage/user-id/3410689) ,

there is an app on the marketplace [https://marketplace.atlassian.com/apps/1212840/reminders-for-bitbucket?tab=overview\&hosting=server](https://marketplace.atlassian.com/apps/1212840/reminders-for-bitbucket?tab=overview&hosting=server) for this purpose.

Unfortunately, it seems to be not compatible with DataCenter version. Btw, based on your current instance it should work.

Hope this helps,

Fabio


author: Sean Manwarring _Izymes_
body: Thank you for the mention [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528) !

Hi [@Gurunand reddy bade](/t5/user/viewprofilepage/user-id/3410689)

Yes, as Fabio mentioned, our product[Reminders for Bitbucket](https://marketplace.atlassian.com/apps/1212840/reminders-for-bitbucket?hosting=datacenter&tab=overview) will service your needs nicely, and is available for Data Center (Versions 7 \& 8).

Let me know if you need any help getting set up or any questions.

Happy coding,

Sean


Tags: bitbucket-server

server
Not receiving bitbucket invitation emails
Asked by SHIN SS:

Hi Team,

I just started working for new empoyer, but I am not able to access their bitbucket workspaces. I am not receiving any invitation emails that are supposed to have been sent. I don't understand why it doesn't work. Please help me.

My emil address : \<email removed due to privacy reasons\>


Answers:
author: Caroline R
body: Hi, [@SHIN SS](/t5/user/viewprofilepage/user-id/2999531), thank you for reaching out to Atlassian Community.

I reviewed your email and confirmed that it had a block on the server that prevented emails from being sent to you. This can occur when the system tries to send an email to the user and the account does not exist, is not activated yet, or rejects the email for some internal reason.

In this case, I have removed the block from your email. Could you please ask your team to **remove** the invitation and send you a new one? They can do this by following the next steps:

In case they have invited you to a **specific repository**:

* Access the workspace \> Go to the repo they have invited you to;

* Access the **Repository Settings** \> **User and group access;**

* Click on the "invitation pending";

* Select the "**Cancel invitation**" option to remove the invitation;

* Add your email again to send a new invitation.

In case they have invited you to a **group on this workspace**:

* Access the workspace \> **Settings**;

* Access **User groups** \> Open the group they have invited you to**;**

* Click on the "invitation pending";

* Select the "Cancel invitation" option to remove the invitation;

* Add your email again to send a new invitation.

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

Kind regards,  
Caroline

comments: author: SHIN SS
body: Thanks [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) It worked. Thanks alot.


author: SHIN SS
body: Atlassian Community Members, Kindly help....


Tags: bitbucket-cloud

cloud
Is there a way to set object tags for files uploaded to AWS S3 by the atlassian/aws-s3-deploy pipe?
Asked by Imi Barna:

I would like to use the artifacts uploaded to AWS S3 with Terraform. As a security measure Terraform needs a tag on each object as follows:

```
Tagging='used-by-tf=True'
```

I was wondering whether the tagging is possible without implementing a custom s3 upload mechanism.


Answers:
author: Mark C
body: Hi [@Imi Barna](/t5/user/viewprofilepage/user-id/4759921)

Welcome to the community.  
As per checking, the Pipe [atlassian/aws-s3-deploy](https://bitbucket.org/atlassian/aws-s3-deploy/src/master/) is based on the [AWS Sync CLI](https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html).  
I'm afraid the command does not offer a tagging flag that you can use to tag an S3 object.

As a workaround, I do believe it is possible for you to use AWS CLI in your Pipelines step container.  
Hence, the best I can suggest is for you to:

* Upload to AWS S3 bucket using the Pipes script - [atlassian/aws-s3-deploy](https://bitbucket.org/atlassian/aws-s3-deploy/src/master/)
* Use an AWS command within your step container (you may need to install this first or use a Docker image that has AWS CLI installed) to add a tag against your S3 object. (e.g [put-object-tagging](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/put-object-tagging.html))

Hope it helps and let me know if you have further questions.

Regards,  
Mark C


Tags: aws

bitbucket-cloud

bitbucket-pipelines

cloud