youngmon/atlassian-qna huggingface dataset:
Pre/Post Build Command Plugin in Bamboo 3.2
Asked by Arthur Maltson:

We're planning a Bamboo 3.2 upgrade soon, but we use the [Pre/Post Build Command Plugin](https://plugins.atlassian.com/plugin/details/5581) in a number of builds. Looking at the [compatibility chart](https://plugins.atlassian.com/plugin/matrix/5581), it doesn't look like Bamboo 3.2 is supported. There seems to be [an issue](https://studio.plugins.atlassian.com/browse/BPBC-59) that was open around Bamboo 3.2 compatibility, but there doesn't seem to be any information on when it will work with Bamboo 3.2.

Does anyone have experience with this plugin in Bamboo 3.2? Any help would be appreciated. Thank you.


Answers:
author: Bob Swift (personal)
body: I think there was already a question on this. Support confirmed that it was ok on 3.2 even though no longer necessary with the built in capabilities of 3.2. So we upgraded ok and then will gradually remove usage in favor of the new support. And the compatibliity matrix was suppose to be updated as well.

comments: author: Tyler Copple
body: What are the built in capabilities of 3.2 that allow you to bypass this plugin?


author: Jens Schumacher [Atlassian]
body: Sorry about that. I've updared the compatibility matrix to reflect the compatibility with 3.2.
Bamboo and Git errors
Asked by Christian Nentwich:

We've been having some issues with Bamboo's Git support, and have a support query outstanding on repo corruption.

Regardless of that one, we generally seem to get a lot of errors generated (about 1 per hour, where our repo checks are set to every 3 or 10 minutes):

```
com.atlassian.bamboo.repository.RepositoryException: ssh://xxxx@xxxx.xxxx.com/repos/swift.git: Session.connect: java.net.SocketException: Connection reset	at com.atlassian.bamboo.plugins.git.GitOperationHelper.obtainLatestRevision(GitOperationHelper.java:106)	at com.atlassian.bamboo.plugins.git.GitRepository.collectChangesSinceLastBuild(GitRepository.java:143)
```

These errors are quite annoying - especially because on the next retry it works again. We never got these before with another build server.

Anybody else got a similar problem, or a solution?

Cheers,

Christian


Answers:
author: ArmenA
body: Hey there,

1. Please try to use 'None' in the repository configuration page for the authentication
2. Manually configure the SSH executable from the Administration -\> Server Capabilities page (add a new Git executable and a new drop-down will appear. choose SSH and type the full path of the SSH executable)
3. If you still face the same problem, try to run the same checkout from a simple Inline Script task instead of using a Source Code Checkout task.
4. Also, try to upgrade your Bamboo instance to the [latest version](http://www.atlassian.com/software/bamboo/download).
5. If nothing helps, please [sign up](https://support.atlassian.com), open a new support ticket and provide your Bamboo logs and screenshots of your repository configurations.

Cheers,  
Armen


author: Andrew Finnell
body: I have the same issues but my builds don't fail. It just looks like the Git plugin keeps a connection open when it is cloning instead of closing it.


author: Przemek Bruski
body: Do you get any errors in the ssh log?


Tags: git
Does Bamboo automatically detect SNAPSHOT dependencies?
Asked by Lubo? Ra?ansk?:

Does Bamboo automatically detect SNAPSHOT dependencies?

I mean maven project B depends on snapshot A. When A is built, bamboo invokes a build of B to check compatibility. I expect this behavior as in Hudson.

If so, since which version? Where to setup it up?


Answers:
author: Przemek Bruski
body: Have you tried using Maven Dependency Processor task (Automated Dependency Management)? It's used to track Maven dependencies between plans. See [http://confluence.atlassian.com/display/BAMBOO/Setting+up+Build+Dependencies](http://confluence.atlassian.com/display/BAMBOO/Setting+up+Build+Dependencies "here"):


Tags: maven
bamboo.custom.brmp.name
Asked by Alessandro Queiroz:

Hi,

Using the outdated plugin Bamboo Release Management, it could be possible to use the tag {bamboo.custom.brmp.name} in the Script Body (for Script task).

But now after upgrade to Bamboo 3.2 and Jira 4.4, the tag doesn't work. How can I take the Jira VERSION when I click in RELEASE BUTTON in Jira?

Thanks.


Answers:
author: Ron Chan
body: FWIW, {bamboo.jira.version} is used for Bamboo 4.2


author: Przemek Bruski
body: Unforunately, it's not supported at the moment with the new plugin. We are planning to add some variables to the plugin in the future.
Bamboo Tomcat Plugin not working with Tomcat6?
Asked by Christoph Feddersen:

Hi,

we want to use the Bamboo Tomcat Plugin (<https://plugins.atlassian.com/plugin/details/43171>). The description states that it works with Tomcat7 and Tomcat6.

We couldn't get it to work and had a look at the sources. The plugin doesn't seem to support Tomcat6, because it's using the new Tomcat7 URLs to the text version of the manager application.

For example: [http://yourhost.com/manager\<span\< a=""\> class="s"\>/text/start?path=...](http://yourhost.com/manager%3Cspan)
[](http://yourhost.com/manager%3Cspan)

[Code Pointer:](http://yourhost.com/manager%3Cspan)<https://bitbucket.org/atlassian/bamboo-tomcat-plugin/src/2c33103074ba/src/main/java/com/atlassian/bamboo/plugins/tomcat/manager/TomcatApplicationManagerImpl.java>

For Tomcat6 it should be:

[http://yourhost.com/manager\<span\< a=""\> class="s"\>/start?path=...](http://yourhost.com/manager%3Cspan)
[](http://yourhost.com/manager%3Cspan)

[See](http://yourhost.com/manager%3Cspan)<http://www.datadisk.co.uk/html_docs/java_app/tomcat6/tomcat6_admin.htm> for a complete list.

Or is there a hidden switch we haven't seen?


Answers:
author: PiotrA
body: Please check the Bamboo Tomcat Plugin once again - on the plugin exchange site there is version 1.1 available, which should (<http://twitter.com/#!/i386/statuses/119521616337190914>) support Tomcat 6.0.x.

comments: author: Christoph Feddersen
body: Thank you very much!


Tags: app

bamboo-app

tomcat
Best way to upgrade from Bamboo 2.5 to 3.2
Asked by Serge Dukic:

Hi Currently we're running Bamboo 2.5.5 build 1718 and would like to upgrade to the newest version of Bamboo. What would be the easiest, quickest and safest way to do this?

Is it possible to just use the 'Export' function in 2.5 and then bring up a 3.2 server and import all of the configuration and the artifacts? Do we need to go through the upgrade path to every version? i.e. 2.5 -\> 2.6 -\> 2.7 -\> 3.0 -\> 3.1 -\>3.2


Answers:
author: Przemek Bruski
body: The upgrade guide is here: <http://confluence.atlassian.com/display/BAMBOO/Bamboo+Generic+Upgrade+Guide>

You only need to go through 2.6.3, 2.7.4 and then directly to 3.2.2 .

comments: author: Bob Swift (personal)
body: This is what we recently did and it worked fine. Just takes a bit of time. Recommend cleaning up the original instance as much as possible - check your build retention settings.


author: Serge Dukic
body: Ok, thanks for that, I will go through the upgrades 2.5 -\> 2.6 -\> 2.7 -\> 3.2. I was hoping there was a quicker way, but it is what it is.


Tags: upgrade
Specifying the source code revision to build
Asked by emddudley:

What is the proper way to configure plans in Bamboo when you wish to build specific source code revisions? I have a custom task plugin which lets me specify whether to build the latest code or takes an argument for a specific revision.

Should I create a "master plan" which always builds the latest source code, and then duplicate it whenever I want to have a plan that builds a specific revision? I would change the custom task plugin's revision parameter for each duplicated plan.


Answers:
author: Przemek Bruski
body: You don't really need a custom task for this, I think. You could create a script task that takes a parameter that is defined as a Bamboo variable. The script task would just update the directory to the specified revision, e.g. for Subversion that would be: svn up -r $1 . You can then run the build as a paramterised build and override the variable any time you want, or clone the plan aroudn and override the variable per plan.

comments: author: emddudley
body: Parameterized builds sound like what I need, thanks.

We are currently using scripts while the plugin is being developed. We want to provide a simple GUI for a variety of Perforce tasks (like syncing, checking out files, and branching) without forcing the user to read the command line documentation. A custom task GUI is just easier and safer for non-admins to use.
Creating an ISO as a post-build process in Bamboo
Asked by Cameron Ferguson:

I am very new to Bamboo and I am researching how I can use something like a custom command executable to build an ISO.

From my understanding, I would create a new task within a job, and I could pass some command line arguments to it to achieve this thorugh a python script on our linux system. How do I tell this script to build the ISO based off of the build artifacts from the build task?

Do these custom scripts automatically get put into the same folder with the artifacts?

Looking for some guidance!

Thanks!


Answers:
author: Przemek Bruski
body: If you are doing all this all in one job, there's nothing special you have to do. Just add a script task that will create the ISO out of the artifacts you have in your build directory. It's easiest to experiment with this - run the build from Bamboo and after it's finished, log in to your server via SSH, go to the build directory on the hard drive and figure out the correct call to your ISO build script. After you deal with that, just paste the script as a body of script task.

If you are doing this in a different Job, you have to define your artifacts as Bamboo artifacts. During the definition, you will be able to specify the destination directory for the artifacts. The part where you figure out the correct ISO build script call stays the same.

comments: author: Przemek Bruski
body: > Would I do something like pass in a command line argument that specified the directory on the build server and an output directory for the ISO?

The exact call depends on the tool you use to create the ISO. Using relative directories should be your best bet (but if you can't, you can use Bamboo's variables to get the absolute paths). So the question is: how do you call it from the command line?
> Does the ISO now become an artifact?

If you need it to be an artifact, you can define it as an artifact via the artifact tab in Job configuration.


author: Cameron Ferguson
body: Ok this clears up some things, but I am still curious on calling the ISO build script. Would I do something like pass in a command line argument that specified the directory on the build server and an output directory for the ISO? Does the ISO now become an artifact?
Bamboo: how do I pass a value with a spaces on a command line script in Bamboo 3.2?
Asked by Chris Gill:

We are currently live with Bamboo 2.7.3 and everything is running fine. We have a custom command line tool for Windows that preps our code before the release, pulling in the right version of various mercurial repositories

I am currently checking that everything works as expected in Bamboo 3.2 before we upgrade. It all looks good apart from one case where the command line tool takes takes a parameter that has spaces. In Bamboo 2.7.3 we just wrapped this value with double-quotes as you would on the command-line and everything worked fine.

In Bamboo 3.2 the double quotes seem to be being removed, thus breaking the call to the command line tool. There are a couple of other issues on the forums here where people seem to have had issues where double quotes have been in arguments defined in Bamboo. Has the way of defining this sort of thing changed?

An example of the arguments that I am trying to pass to the command line tool is

/r:"Build Phase 3" /b:default /w:c:\\build\\debug\\Build3\\x86\\continuous\\default /c:Debug /bv:${bamboo.buildNumber}

The first value seems to have its double quotes removed before reaching the command line, causing the tool to see a repo of "Build", invalid paramaters of "Phase" and "3" rather than a repo of "Build Phase 3" (without quotes)


Answers:
author: Przemek Bruski
body: What if you pass "/r:Build Phase 3" ?

comments: author: Chris Gill
body: That does work - thanks!

Are there other things that have changed like this or was the 2.7.3 implementation wrong?


author: Przemek Bruski
body: To get better control over external processes, we have changed the library that launches processes and it's one of the things that has changed together with it.

Have fun using 3.2!


author: Eric Hood
body: What about /r:\\"Build Phase 3\\" ? Ron's answer gave me the idea of seeing if maybe the quote could be escaped. I'm surprised it actually worked for me.


author: Ron Chan
body: Use **\&quot;** in place of the double quotes.

comments: author: Chris Gill
body: Ron - that doesn't work. The command line is being trucated at the first **\&quot;**

E.g. defining

/r:\&quot;Build Phase 3\&quot; /b:default /w:c:\\build\\debug\\Build3\\x86\\continuous\\default /c:Debug /bv:${bamboo.buildNumber}

Leads to just**/r:** being passed to the command line
Problem integrating Bamboo with JIRA
Asked by siping liu:

I installed Bamboo 3.2.2 on Redhat (2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux). I created a simple plan and it executes fine. Now I want to integrate it with JIRA. The JIRA I have is running on another server and the JIRA version is 4.2.2. According to document: <http://confluence.atlassian.com/display/BAMBOO030/Integrating+Bamboo+with+JIRA> (Note: I was first on this document <http://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+JIRA> and get forwarded here since my JIRA version is older), there should exist a link "JIRA" under "Communication" on "Administration" page. I just can't find this link! There are three links under "communication": "mail server", "IM server", and "System notifications".

It's frustrating that the document sometimes don't match the software. I'd appreciate it if someone let me know where to find the JIRA config page.

By the way there's this line in atlassian-bamboo.log file:

2011-09-09 14:09:41,112 INFO \[Spring executor 2\] \[UnrecognizedModuleDescriptorServiceTrackerCustomizer\] Turned unrecognized plugin module com.atlassian.applinks.applinks-plugin:jira-project into module com.atlassian.applinks.applinks-plugin:jira-project (null)


Answers:
author: Przemek Bruski
body: Try following these instructions:

<http://confluence.atlassian.com/display/ATLAS/Dragons+Stage+7+-+Install+Bamboo#DragonsStage7-InstallBamboo-Step5GetBambooandJIRATalking>

Whenever you're integrating Atlassian tools, try looking at Dragon Quest documents first - they cover all tools and are always kept up to date with the latest releases.

comments: author: Dan Pincas
body: Thank you, thank you, thank you for recommending the Dragon Quest documentation. It helped me with a different issue I was having.
export/import bitbucket repo settings
Asked by Elamkumaran:

Is there a way we can export/import bitbucket repo settings?


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

Thank you for reaching out to Atlassian Community!

I'm afraid this is not possible in Bitbucket Cloud at this moment. We do have an [import feature](https://support.atlassian.com/bitbucket-cloud/docs/import-a-repository/), but it will only import the repository itself, not the repository settings.

However, we already have a feature request to add the ability to import the repository settings in Bitbucket, as you can see here:

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

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, 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.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

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

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Right way to add existing TortoiseGit local project to Bitbucket
Asked by ChuckieAJ:

I am getting myself really confused here because all the steps on the internet I found seem to go wrong.

I have afairly new local project on my PC to which I have already added source control and one or two commits. Now I need an equivalent bitbucket repository to link it to.

I can create an empty project online but I can't for the life of me work out how to make a repository online and link it with all the source control content etc I have on my PC with Tortoise Git.

Please help. Thanks.


Answers:
author: ChuckieAJ
body: I have sorted it out. I had to create an EMPTY repository so that it showed me the way to get my local Git repository on Bitbucket.


Tags: bitbucket-cloud

cloud
Global Sidebar is gone
Asked by Inger Marie Jakobsen:

I need to create a new repository, but the sidebar is missing.  

I had it a few days ago on my old PC, which broke and now I have a new PC (at work).

I have tried Chrome, Edge and Firefox as well as incognito on Chrome. I can see the top bar but not the side bar.

I also tried to follow this guide (<https://confluence.atlassian.com/confkb/side-bar-and-top-bar-menu-items-are-missing-when-using-chrome-or-internet-explorer-829053774.html>) but there were no errors.

A co-worker of mine can see the sidebar just fine.  

What can cause this and how to I fix it? Thanks


Answers:
author: Thomas Stubbe
body: I'm having the same issue... I cannot easily manage bitbucket anymore... The only way to go to the general bitbucket settings, is to go to a specific repository \> repository settings \> User and group access \> choose a random existing group. Then I'm being navigated to the general workspace settings. We got a Atlassian Administration page but only Confluence and Jira is available there.


author: seanaty
body: For future reference, here is a direct link for creating a new repository: <https://bitbucket.org/repo/create>


Tags: bitbucket-server

server

side-bar
SFTP deploy upload changed files only?
Asked by Carlo Vinci:

Hello,

Im new to pipelines and i'm using SFTP deploy via a pipeline in BitBucket. I noticed that when I deploy, all files get pushed to the server, even if they have not been changed.

Is there any way to avoid this? I have also tried to use git-ftp but have found it does not work with sftp.

Would appreciate any help!

Thanks!


Answers:
author: Halyna Berezovska
body: [@Carlo Vinci](/t5/user/viewprofilepage/user-id/4520713) correct, sftp is for copying files, not necessarily syncing, I don't see such functionality. However, welcome to use our rsync-deploy pipe : <https://bitbucket.org/atlassian/rsync-deploy/src/master/> - checkout its README (homepage).

Regards, Galyna

comments: author: Carlo Vinci
body: Great thanks Galyna, ill check it out.

\~ Carlo


Tags: bitbucket-pipelines

cloud

sftp
Can't receive email Invite
Asked by Simon Scholz:

Hey, I'd like to jump on this thread as we're currently encountering the same issue. [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) can you check if emails to our domain \<domain removed\> were blocked/bounced. We're currently trying to onboard a new team member, and this is blocking the process.

Thanks for your help!


Answers:
author: Theodora Boudale
body: Hi [@Simon Scholz](/t5/user/viewprofilepage/user-id/4520311) and welcome to the community!

I checked in our system and I saw that several emails from your company's domain were in a suppression list, with the message
> 550: 550-5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipient's email address for typos or unnecessary spaces

I went ahead and removed them all. I would suggest first try sending a test email to this new team member's email address e.g. from your email, to make sure they receive emails. If that works, you can then try resending the Bitbucket invitation.

A new invitation needs to be sent, as the previous ones were dropped.

Please feel free to let me know how it goes and if you need further assistance!

Just a heads up, I removed the domain from your post for privacy reasons, and I also moved your reply to a separate question. We generally recommend creating a new question for an issue you're facing instead of replying to another user's post, as in the latter case your post has limited visibility. If I'm out of office or on leave, it may take a long time for me to see posts where I've been tagged. A new question will be visible to more engineers who can assist with the issue.

You can also contact the support team for issues with a workspace that is on Standard or Premium plan, but even if the workspace is on the Free plan you can still contact support for workspace invitation issues. You can open a support ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product.

Please feel free to let me know if you have any questions!

Kind regards,  
Theodora


Tags: bitbucket-cloud
Is it able to create a pipeline without yml file?
Asked by ranzeplay:

Set up a repository on Bitbucket, then I want to set up a pipeline to build my project.

I know I can set up by creating a yml file in the repository, but it'll turn my repository into a mess. So, how do I set up a pipeline without yml file. Like using a web editor and drag steps?


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

Thank you for reaching out to Atlassian Community!

The bitbucket-pipelines.yml is the file that defines your Pipelines builds configuration, so it's not possible to use pipelines in Bitbucket Cloud without a yml file.

I hope this clarifies the situation, but please let me know if you have any questions.

Kind regards,  
Caroline

comments: author: ranzeplay
body: Thank you very much!

But I wonder if you guys can add a web pipeline editor, that'll be very cool!


Tags: bitbucket-cloud

bitbucket-pipelines

cloud