youngmon/atlassian-qna huggingface dataset:
How to revive expired branches in Bamboo?
Asked by Sven_Paulus:

<br />

We're currently using Bamboo 5.10 for automatic building processes. In one plan we enabled branch detection to build different branches automatically (multiple release and feature branches), which is a really awesome feature.  
Before we realized that we should switch the "Inactive branches" dropdown to "Do not delete inactive branches" one branch got recognized by Bamboo but then removed a few days later due to inactivity. However this an important branch where a release is created every few weeks, so we need it back in the game.  
I tried to switch manually to this branch in the "Repositories" tab, which worked to build the branch, but when switching back the repository configuration to the "master" branch, the build on the special branch got recorded as "master" build and the special branch is still not in the list of branches. So this trick couldn't be used to re-add the branch.  
When changing the branch name in the "Repositories" tab, Bamboo displayed a warning message "This change could invalidate existing branches repository configuration. Please fix them manually." What does that mean? How do I fix the branch configuration manually?  
Yes, I'd really like to manipulate the list of branches manually (to re-add the special release branch), but I haven't seen a place where the list of branches known (or formerly known) to a Bamboo plan is exposed to be edited.  
So, what's the best way to resolve this problem? The only way that I can currently think of is to clone the plan and start over, this time making sure "Do no delete inactive branches" is always enabled. But this seems to be extremely inelegant ...


Answers:
author: Tim Crall
body: You should be able to go to Actions-\>Configure Plan and then click on the Branches tab. It should show the currently existing branches on the left.

You can add a new branch with the "Create plan branch" button in the top-right. It will show you a list of branches on your source repo that don't exist as plan branches or allow you to create a branch manually.

You can also delete branches by clicking on them in the sidebar (which takes you to the "Branch details" screen) and then clicking Actions-\>Delete branch.

comments: author: Sven_Paulus
body: Ah - great, thank you :smile:

I hadn't noticed the "Create plan branch" button - that worked fine. This was exactly what I was looking for.

Yay, problem solved!


author: Leon de Almeida
body: Is it possible to get Bamboo to automatically (re)create build plans for branches that have expired? We are experiencing difficulties where we go back to (not very) old feature branches that have expired (over 7 days) but Bamboo does not run builds for new commits. What can I do?
Does an artifact triggered build plan require a branch plan configuration?
Asked by Nick Hilton:

If a parent build plan has branch plans, does a child plan that consumes the artifact require the same branch plan configuration?


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Yes, otherwise it will get the artifact from the main branch.
> Right now it will look for Bamboo branch of the same name - if it can find it it will take artifact from that branch; if not it will take it from master.

See <https://jira.atlassian.com/browse/BAM-13584>


Tags: artefact

branch
How do I detect deployment completion?
Asked by Clay Harris:

So obviously, its easy enough to figure out when the bamboo deployment task is complete, but unfortunately that does not mean my app has fully started when that happens.

I have an app that builds on bamboo, gets deployed to a server (via scp then ssh to start the service). Once the ssh start command completes, as far as bamboo is concerned, deployment is complete. However, I have a test suite I want to run against it once it's deployed, and it's not yet ready if I try to run it in a deployment project triggered by the service deployment project.

What's the best way to handle this? Should I add a task to the deployment that pings an endpoint until it gets a valid response (with a timeout), so that the deployment doesn't show as complete until it's actually up? Should my test deployment do the pinging instead? Is there a better solution I'm completely missing?

Thanks


Answers:
author: Alexey Chystoprudov
body: Hello @ Clay Harris,

You mentioned correct solution - add script task to ping your deployed application to confirm it started. It will also allow you to mark deployment as failed if application can't start in given period of time

comments: author: Clay Harris
body: Thanks. We were sure there had to be a better way, but this works


Tags: cloud
How to commit changes after build
Asked by Maxim Kuzmik:

Hello. I wiant than bamboo commit changes after build. So I add script file like this:

'git commit -a -m "${bamboo.buildKey} ${bamboo.buildNumber}"

git push origin development'

But iot's not do it. Error is \[detached HEAD 8943e60\] So. This is simply question. How can i commit changes in bamboo task script job?


Answers:
author: Tim Crall
body: I wrote this guide specifically for tagging a commit and pushing back to Stash (BitBucket), but it should be easily adaptable. <https://almfirst.wordpress.com/tagging-from-bamboo/>

It's surprisingly not as simple as you'd think, as far as I've been able to figure out, because of the somewhat funky way that Bamboo does git and because the build may actually be running on an agent that doesn't share the SSH set up that the server itself uses.


author: Tim Crall
body: Ok. In the actual source? Usually I've seen that as just tags, but I can see the use case for wanting it to be in the source as well.

I wrote a guide to tagging a commit and pushing it back to BitBucket. I'll page a link as an answer - I think it should be easily adaptable to your situation.


author: Maxim Kuzmik
body: It's not bad practice. Release version and build number.


author: Tim Crall
body: That sounds like generally bad practice - what changes are you making to your source within your build that you want to commit back into source control?


Tags: git
How to cut a Maven release in Bamboo?
Asked by Adam Pryce:

I am looking for how to run release builds in Bamboo. Coming from Jenkins there is a handy one click link for Maven projects that auto populates parameters for the Maven Release Plugin. What is the equivalent in Bamboo? The best I can figure is to literally clone the existing project and add parameters, however the build configuration will then get out of synch and the user needs to manually enter versions.

I hope I am missing something here.


Answers:
author: Preston Gilchrist
body: Depending on your SCM implementation you could use mvn:release or jgitflow. These can be executed with the standard maven task. We typically set these up as a manual stage after the primary build stage.

comments: author: Adam Pryce
body: So it's not a separate plan but a separate task. That manual stage doesn't interfere with builds from SCM changes? We are using Bitbucket w/ git and no special workflow.


author: Preston Gilchrist
body: An additional manual stage will not interfere with the first build stage. The release process must be a task in the manual stage. With no GIT workflow, you should be able to use mvn release, but if you start to roll in something around tagging/branching during release, that may change.


author: Sud Ramasamy
body: If your build has other optional manual tasks/stages then this might not be feasible since the tasks/stages have to complete in sequence.
Post JDK 'jdk1.8.0_73' Install on Bamboo Remote Agent Server the Agent crashes
Asked by Sandeep Nagaraja:

Hello

We need JDK 8 for build executions and i installed JDK 'jdk1.8.0_73' on the Remote Agent server. Post installation the application never comes up and we get a message saying A remote agent is loading like below

Feb 19, 2016 2:03:07 AM A remote agent is loading on [\<](http://USADC-VSBBMTR02.quintiles.net)Server-Name\> (10.1.54.23).

However when i uninstall JAVA 8 the application comes back to life and everything works fine.

We are on Bamboo 5.3 , please help me to troubleshoot this issue.

Cheers

<br />

Sandeep


Answers:
author: Alexey Chystoprudov
body: You need to use JDK 1.6 to run agent and then add JDK 1.8 as agent capability. Please check that agent starts using JDK 1.6, not 1.8

comments: author: Sandeep Nagaraja
body: Thanks Alexey ,

Can you please let me know how to start the Bamboo Agent with JDK 1.6 instead of 1.8 , As soon as i install JDK 1.8 the RA might be picking up JDK 1.8 to start instead of 1.6.

Do i have to perform 'Disabling auto-capability detection for the remote agent' so that it will not use JDK 1.8 ?

<https://confluence.atlassian.com/bamboo/additional-remote-agent-options-436044733.html>

Cheers

<br />

Sandeep


author: Alexey Chystoprudov
body: how do you start your RA?


author: Sandeep Nagaraja
body: The RA is installed on Windows 2008 box and i have installed it as Windows Service. The services automatically starts during server reboot or we can manually start from services box.


author: Alexey Chystoprudov
body: look at your JAVA_HOME path variable, it should point to JDK 1.6


author: Sandeep Nagaraja
body: Still i am getting the same error. The home is set to JDK 1.6 ..,

C:\\Users\\s736228\>echo %java_home%  
D:\\ProgramFiles\\Java\\jdk1.6.0_95

C:\\Users\\s736228\>java -version  
java version "1.8.0_73"  
Java(TM) SE Runtime Environment (build 1.8.0_73-b02)  
Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)

C:\\Users\\s736228\>


author: Sandeep Nagaraja
body: Now i set the path to JDK 1.6 and restarted the services. However the problem still exists.

C:\\Users\\s736228\>java -version  
java version "1.8.0_73"  
Java(TM) SE Runtime Environment (build 1.8.0_73-b02)  
Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)

C:\\Users\\s736228\>echo %java_home%  
D:\\ProgramFiles\\Java\\jdk1.6.0_95

C:\\Users\\s736228\>set PATH=D:\\ProgramFiles\\Java\\jdk1.6.0_95\\bin;%PATH%

C:\\Users\\s736228\>java -version  
java version "1.6.0_95"  
Java(TM) SE Runtime Environment (build 1.6.0_95-b12)  
Java HotSpot(TM) 64-Bit Server VM (build 20.95-b02, mixed mode)


author: Fr?d?ric CORNU
body: Hi,

in your RA's configuration, conf\\wrapper.conf file, you could try and set 'wrapper.java.command' to explicitly use your JRE 1.6 java.exe


author: Sandeep Nagaraja
body: Thanks Alexey and Frederic

I entered '%java_home%\\bin' in the PATH of Environment Variable and things got fixed. Looks like from command prompt if we set the PATH it will not save permanently.


Tags: bamboo-administration
How does one run a specific branch plan manually?
Asked by Nick Hilton:

*This question is in reference to Atlassian Documentation: [Running a plan build manually](https://confluence.atlassian.com/pages/viewpage.action?pageId=289276898)*

If my plan has a set of branches (i.e. branch plans), can a manual run be executed against one of the branches?


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Yes. You can go to the Plan \> Branches. Click on the branch and then "Run" branch.

comments: author: Nick Hilton
body: That didn't work. I'm afraid the bamboo configuration is so complex that something this simple can fail if the wrong checkbox is set/unset.


author: Nick Hilton
body: This actually woks as expected, but my child plans are not being triggers, but that's another question, thanks.


author: Nick Hilton
body: I also want this manual run to trigger child plans, which isn't happening.


Tags: branch

plan
Remote triggers from Git, to Bamboo working - not allowed, even when in allowed list
Asked by Dwane van der Sluis:

We are have having trouble getting remote triggers from Git, to Bamboo working.

The message LOGGED IS:

2016-02-19 04:42:21,952 INFO \[http-bio-8085-exec-287\] \[TriggerRemoteBuild\] Build request for plan "PLAYGROUND - Deploy using Curl To Strategic BAMS Artifactory (runs but artifact does not appear)" originated from **unknown** ,**10.52.132.2** which is not an allowed address (one of\[, **10.52.132.2**\]).

Bamboo version is 5.9.4 build 5919 - 15 Aug 15

This is of course odd, as the IP address is in the list of allowed addresses. Can I get this exact version of source code of this class and surounding classes? Or could someone suggest other methods of resolving this.

many thanks

Dwane


Answers:
author: Marcin Gardias
body: It seems to me that your request comes from through a proxy with "unknown" origin. Since "unknown" is not host trusted by Bamboo, it will not let the request go through.

If you use proxy for remote triggers both proxy and origin server's IP must be allowed in Bamboo.

comments: author: bogdancraciun
body: We have this issue too, but we don't use a proxy. What else can I try ?


author: Dwane van der Sluis
body: Some more digging gave us the following cause and solution

There was a squid proxy between github and bamboo who's x-forwarded settings were changing the headers in the request to:

**X-forwarded-for \[unknown\]**

This proxy could not be changed, so a NEW squid reverse proxy (just for github webhooks) was installed on the bamboo server, which could override this setting, and then the webhooks were successfully
Cannot configure SonarQube Bamboo Add-On - Validation Failed
Asked by Craig Oliver:

I've downloaded the SonarQube Add-On and configured the settings, however they will not validate.  

The configuration screen shows an error `sonar4bamboo.admin.server.task.validation.errors`, the bamboo log shows:  
`ERROR [http-bio-8085-exec-35] [SonarTaskConfigUpdater] SONAR4BAMBOO: Failed to validate the updated Sonar Server for task 2`

There are no error logs in SonarQube.

I am using Bamboo 5.9.10 and SonarQube 5.3 both are running against an Oracle 12c database.

I have previously successfully used the SonarQube add-on in Bamboo 5.9.7 (running against SQL Server 2012) connecting to the same SonarQube 5.3 instance (on Oracle). I need to migrate Bamboo off SQL Server and so we upgraded and moved the Bamboo database to Oracle... but now SonarQube won't connect.  

So the issue would seem to be either due to the new Bamboo 5.9.10 version, or the new database flavour. However the error logs are not sufficient to diagnose the issue... it doesn't say *why* the validation failed or what is wrong... I have triple-checked all entries in the plug-in configuration and had my colleague check them.. all are correct.  

Any insights are appreciated.

<br />

Edit: I have downgraded Bamboo to 5.9.7 on Oracle 12c and it still occurs. So it would seem this is an incompatibility between the Sonar Bamboo add-on and Oracle 12c. I realise Atlassian does not (yet) support Bamboo on Oracle 12c however Bamboo runs ok on Oracle 12c without any issues. SonarQube also runs on Oracle 12c without issues. But the Sonar add-on appears to be broken in this environment.


Answers:
author: Mibex_Software
body: Hi,

It is hard to tell what caused the validation to fail without a stack trace. But if this error only occurs when you save the plug-ins administration settings (SonarQube server settings) but not if you save the tasks settings (or if you run tasks), then I think it is worth to try our newest version of the plug-in which does not need to update the settings in all tasks when the SonarQube server configuration changes. If you create a bug report at https://mibexsoftware.atlassian.net/browse/SONARBOO, I can attach a snapshot of the newest version (which will be released in the next couple of days) to the bug report. Please let me know.

Cheers,

Michael

comments: author: Craig Oliver
body: Thanks Michael <https://mibexsoftware.atlassian.net/browse/SONARBOO-27>


author: Craig Oliver
body: This issue has been resolved after upgrading to add-on version 1.3.0. Thanks Micheal.


Tags: addon-ch.mibex.bamboo.sonar4bamboo

bamboo-administration

sonarqube
How do a prevent a newly created plan branch from being created in all plans
Asked by stephen dimilla:

When I create a plan branch ( from available VCS branches), I am noticing that that branch is getting created in all of my plans.

Is there way to make it so that it only gets created in a single plan instead of all of them?


Answers:
author: Alexey Chystoprudov
body: Turn off Automatic branch management for other plans - <https://confluence.atlassian.com/bamboo/using-plan-branches-289276872.html#Usingplanbranches-Automaticbranchmanagement>
Can I delete bamboo-home/artifacts folder
Asked by jijoj:

Can I delete bamboo-home/artifacts folder?


Answers:
author: Mike Friedrich
body: No, better is to configure your plans / global expiry options.

comments: author: jijoj
body: I agree. We are in the situation, where we have disabled the build expiry for now. And disk space is filling up, May, I know what would the impact if I delete, apart from deleting the artifacts?


author: Przemek Bruski
body: Yes, you can delete the files under this folder. Obviously, your artifacts will no longer be accessible.

comments: author: terisgr
body: Hi, is it safe to delete /artifacts/globalStorage. The globalStorage takes \~ 98% of storage space


Tags: bamboo-administration
Does Automatic branch managements "Deleted branches" option and "Inactive branches" option remove the branch from GIT?
Asked by stephen dimilla:

If I enable these 2 options, when they run will they just remove the plan branches from Bamboo but leave the underlying branch that is in GIT or will it delete both? If it's both how can I just remove the one in Bamboo?


Answers:
author: Marcin Gardias
body: No, Bamboo does not remove branches from remote vcs. It only remove the sub-plan (a.k.a plan branch) that refers to vcs branch.
knowledge base, an error message appears stating, "We are unable to load this page."
Asked by Dastagir:

When attempting to enable the knowledge base, an error message appears stating, "We are unable to load this page. You might not be signed into the correct account


Answers:
author: Eugenio Onofre
body: Hi [@Dastagir](/t5/user/viewprofilepage/user-id/5358465)

Welcome to the Atlassian Community.

This feature is only available on Standard, Premium and Enterprise plans and require a Confluence subscription.

Please remember to accept this answer in case it helps you resolve your question as it may also help other community members in the future.

Regards,  
Eugenio


Tags: cloud

jira-service-management

jira-service-management-cloud
What is the best practice to integrate JIRA Service management and JIRA Software Cloud products
Asked by S Jena:

Hi Experts,

I'm a new Jira Cloud site admin, and I need to learn more about best practices to integrate JIRA Service management and JIRA Software Cloud products.

**JIRA Service Management \<-\> JIRA Software**

We are using standard plan for both the product and both product available in one instance.

**Cross-Team Collaboration -**Service desk users and development teams can collaborate on service requests/incident through integrated communication channels. Comments, updates, and attachments in JIRA Service Management are synchronized with JIRA Software, facilitating effective communication and knowledge sharing.

Please guide me the best practice options.

Thanks

Swopna


Answers:
author: Ajay _view26_
body: Hi [@S Jena](/t5/user/viewprofilepage/user-id/5288802)

As long as you have the user roles \& licenses configured properly in Jira \& JSM, its easy to follow the best practices outlined by Atlassian in the documentation

- <https://www.atlassian.com/software/jira/service-management/product-guide/tips-and-tricks/jira-service-management-and-jira-software#add-jira-service-management>

Cheers

Ajay


author: Odd_lynice
body: Hi [@S Jena](/t5/user/viewprofilepage/user-id/5288802)

There are a few documentation I would like to share with you as a reference you can use as a guide when using Jira Service Management + Jira Software.

[Best practices for IT teams using Jira Service Management](https://support.atlassian.com/jira-service-management-cloud/docs/best-practices-for-it-teams-using-jira-service-management/)

[Best practices for teams using Jira Service Management](https://support.atlassian.com/jira-service-management-cloud/docs/best-practices-for-jira-service-management/)

[Collaborating with teams in other Jira products](https://support.atlassian.com/jira-service-management-cloud/docs/best-practices-for-collaborating-with-other-jira-products/)

I hope these pages help in maximizing both JSM and JSW.

Theodore


author: Dhiren Notani_Exalate_
body: HI [@S Jena](/t5/user/viewprofilepage/user-id/5288802) ,

Thanks for asking your question here.

I am Dhiren, one of the Solutions Engineers working at [Exalate](https://marketplace.atlassian.com/search?query=jira%20issue%20sync).

I would recommend you to use a fully decentralized and bidirectional solution like Exalate to integrate Jira Software with Service Management instance.

With the Groovy scripting based interface provided by the tool, you can choose what projects, issue types and fields to map and also updates can be synced back from the target within a few seconds!

Do let me know if you have any questions.

Thanks, Dhiren


Tags: cloud

jira-service-management

jira-service-management-cloud
Is there a way to embed images into a conditional section of a form?
Asked by MichaelC:

I am writing a Form to contain different troubleshooting tips to show up depending on radio button choices while the user works through the fields, I would like to embed images into these conditional info panels,  
how can I do this?


Answers:
author: Joseph Chung Yin
body: [@MichaelC](/t5/user/viewprofilepage/user-id/5397677) -

It looks like Atlassian is still trying to build into the ability to add images to the FORM product against the CLOUD env.

As you can this outstanding enhancement ask - <https://jira.atlassian.com/browse/JSDCLOUD-9486>

As far as I know this ability is currently available only for the Data Center env. <https://confluence.atlassian.com/proforma/adding-images-to-forms-1087521544.html> In the meantime, it was briefly opened for the Cloud env as a beta functionality (I am not certain if that was the case or not, because it is not there anymore).

My recommendations are as follow -

1) Contact Atlassian Support ([https://support.atlassian.com](https://support.atlassian.com/)) to obtain further updates on this functionality.

2) In your current FORM design, insert public accessible URLs point to your images in your FORM configuration which you can instruct the user to click on the URL link to see the images. I know this is not ideal, but it is a possible workaround for now.

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.


Tags: cloud

jira-service-management

jira-service-management-cloud
User
Asked by tracy.pendergast:

One of my users who has been using the platform for months, is suddenly unable to access their tickets in JIRA. When I look their details in the users, JIRA has their contacts listed, but when I click on their profile JIRA tells me that I've reached a deadend and there's no listing.

Seeking advice on how to troubleshoot the problem and solution. Specifically

- it sounds that they've been de-activated somehow, but I don't have admin privileges to see how

- if i re-add them as a customer, will they still have access to old tickets?

THanks for your advice.


Answers:
author: Eugenio Onofre
body: Hi [@tracy.pendergast](/t5/user/viewprofilepage/user-id/5286094)

Welcome to the Atlassian Community.

Do you have admin access to your organixation? If yes, you can check the changelog of that specfic customer in the system log at admin.atlassian.com.

You can also check, under Settings \> User Management of your instance if the user is deactivated and force it to enabled back again.

Please remember to accept this answer in case it helps you resolve your question as it may also help other community members in the future.

Regards,  
Eugenio


Tags: cloud

jira

jira-cloud

jira-service-management

jira-service-management-cloud