youngmon/atlassian-qna huggingface dataset:
Fake loop detection, how can I avoid this?
Asked by Jes?s Parra D?az:

Hi there!

I was trying to do what It seemed like a simple task but it got complicated, I have gmail integrated to a board and there is especifics e-mails always with the same name that are delivered to that board, and, basically, I'm trying to move those comments to especifics boards that have a different name from the card created in the e-mail, after they reach the specific board they organize themselves with their cards, but the thing is that I couldn't achieve this in a simple way so I made it work with this:![1.png](https://community.atlassian.com/t5/image/serverpage/image-id/244946iA2CBAEDCEF9DF049/image-size/large?v=v2&px=999 "1.png")

![2.png](https://community.atlassian.com/t5/image/serverpage/image-id/244948i4882E5D6B9BDEB02/image-size/large?v=v2&px=999 "2.png")

![3.png](https://community.atlassian.com/t5/image/serverpage/image-id/244949i86A34D8452289621/image-size/large?v=v2&px=999 "3.png")

I just have to create a card in the board that resends the cards with the same name that the board I want to be sending the cards. The problem is that when if it happens, in a short period of time, more than 3 times, is automatically detected as a loop, which is not because the e-mails are not infinite. How could avoid this? Or can you think any other way to make this work automatically? Like in the first place, instead of doing all this just moving the original e-mail to the board I want.

Thanks in advance!


Answers:
author: Cody C.
body: Loop detection is a bit opaque I'm afraid, but there may be another way to get this working!

Is it important that this happens in real time? If not, one option would be to batch those operations a few times per day.

For example, you could have the integration add your cards to an "Intake" list on Board A. Then create a calendar rule to run at 9am and 1pm daily to move all cards from "Intake" to "Processing". You could also try batching these hourly, or every half hour during your working hours to see if that works as well.

Separately, create an automation for "whenever a card with a name starting with "X" is added to list "Processing" move it to List "Y" on board "Z"". You could then duplicate that rule, and edit its criteria so that emails with different content were moved into different boards.

comments: author: Jes?s Parra D?az
body: Thank you for the answer!

Yes, is not really needed to be in real time but it would be nice like each 5 minutes, is there any way to tell trello to trigger every 5 minutes without creating a rule for each time?


Tags: butler
Is there any good calendar to powerup with Trello? Besides Google Calendar.
Asked by Erika Suzuki Toledo:

I am paying Tick Tick calendar, which I love because I can manage it very well from my cell phone. But now, it does not make sense to enter my tasks into Trello and Tick tick anymore, so I am wondering if there is any other good calendar to powerup with Trello, besides Google Calendar which I do not like

Thanks


Answers:
author: Katarina Harbuzava _ Planyway
body: Hi [@Erika Suzuki Toledo](/t5/user/viewprofilepage/user-id/5166899) !  

There is one more robust Trello power-up for making your planning process faster, called [Planyway](https://trello.com/power-ups/58bd1f9aca72f48c8900574f/timeline-calendar-time-tracking-by-planyway).

Planyway is a third-party app that integrates with Google Calendar to provide additional features and functionality for managing tasks and events. When you connect your Google account to Planyway, the app uses Google's Calendar API to retrieve information about your calendar events and sync them with Planyway.

![pic1-google-sync-settings.png](https://community.atlassian.com/t5/image/serverpage/image-id/247284i5F591ECA0F3EBA87/image-size/large?v=v2&px=999 "pic1-google-sync-settings.png")

Planyway syncs with your Google Calendar in real-time, so any changes you make to your calendar in either app will be automatically reflected in the other. This includes creating, editing, or deleting events, as well as changes to event details like the start time, end time, and location.

In addition to syncing events, Planyway also allows you to create tasks and assign them to specific dates and times on your calendar. These tasks can be synced back to your Google Calendar as events, so you can see them alongside your other appointments and commitments.

Btw, Planyway for Trello is available for free.   

Maybe, that could help you.  

Best.

comments: author: Erika Suzuki Toledo
body: Thanks a lot


author: Dreamsuite Mike
body: Cronofy Is the best a syncing Trello and Google Calendar

[Trello Connector by Cronofy](https://trello.cronofy.com/)

comments: author: Erika Suzuki Toledo
body: Thanks
Is it possible to point out the svn commit causing a Bamboo build failure?
Asked by shaijujanardhanan:

We use Bamboo for CI. But developers are used to unloading the unit test projects and commiting without reloading and building the tests again. This often causes build failures. So is it possible to mention the name of the person and the commit that caused the Bamboo build failure, in the build result mail


Answers:
author: Felipe Kraemer
body: Hello Shaiju,

It is possible to customize notification templates:

<https://confluence.atlassian.com/display/BAMBOO/Modifying+notification+templates>

Have you already tried that?

If this answer was helpful, please allow me to ask you to mark my answer as accepted in order to have it in the top of the thread, also helping other customers.

Thanks in advance!

Kind regards,  
Felipe Kraemer


Tags: bamboo-administration
Is there a way to clone a large number of jobs in Bamboo?
Asked by Gerald:

I have a large number of functional tests that I'd like to run in Bamboo. I've created a job to run a single test; but how can I easily clone this test to run each test in my test suite? It seems I'd have to clone each job individually, which could take a very long time.


Answers:
author: Krystian Brazulewicz
body: You can use our REST API for cloning plans: <https://docs.atlassian.com/bamboo/REST/5.7.1/#d2e217>

[](https://docs.atlassian.com/bamboo/REST/5.7.1/#d2e217)[How to use Bamboo REST API](https://developer.atlassian.com/display/BAMBOODEV/Using+the+Bamboo+REST+APIs)


Tags: clone

rest
SQL Server 2014 and Bamboo
Asked by CTS Software Group SIL PNG:

I am running Bamboo 5.5.0 and am using SQL server 2008R2. I have moved the Bamboo DB to a SQL 2014 server and now it doesn't work.

I get this exception:

2015-02-13 11:22:58,729 ERROR \[localhost-startStop-1\] \[AbstractUpgradeManager\] java.sql.SQLException: Invalid object name 'hibernate_unique_key'.

java.sql.SQLException: Invalid object name 'hibernate_unique_key'.

at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)

at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2816)

...


Answers:
author: CTS Software Group SIL PNG
body: It looks like I just have a dbo schema. I haven't created any others.

comments: author: Przemek Bruski
body: I am not an SQL Server expert, but you may still need to define that schema as a default schema for that database.


author: Przemek Bruski
body: Do you have default schema defined on your database?


author: Norman Abramovitz
body: Bamboo has only been tested with Sql Server 2012. You can call support, but I would expect them to say you will need to use one of the supported databases.

<https://confluence.atlassian.com/display/BAMBOO/Supported+platforms>


Tags: bamboo-administration
Jenkins Import to Bamboo - How little can I get away with?
Asked by Todd Ellner:

I've read through these questions

<https://answers.atlassian.com/questions/178325>

<https://answers.atlassian.com/questions/153182>

And I've watched most of the video <https://www.youtube.com/watch?v=9SGWRWcJTyA>

If I understand correctly I only really need the main Jenkins config.xml, a jobs directory, the job subdirectories under it and the config.xml files in those directories.

Is this correct? If it is do I need all of the job directories? There is a huge number of jobs, and there are only a few we really need.

Thanks in advance.


Answers:
author: Marcin Gardias
body: That's *almost* correct :smile:

* you don't need directories of jobs you don't want to import
* as far as main Jenkins dir goes, you might want keep other .xml files from that dir, in particular, configuration files of the plugins. If they are missing Bamboo should cope but if they are present it gets a chance at creating things like proper Maven paths for you


Tags: administration

jenkins
Bash Behavior - Bamboo vs OS/X
Asked by saywhat42:

I have created a small bash script that I am using on Bamboo via a Linux Instance. I am no bash expert, so maybe I am doing something stupid, but when I execute this code:

----------------------------

grep -e "All Component Failures\\\|All Test Failures:" $1 \> /dev/null 2\>\&1

if \[ "$?" -ne "0" \]; then

echo "Exited with no Errors Detected"

exit 0

else

echo "Build generated errors Has in Pre-deployment Enviroment"

exit 1

fi

-----------------

I exit 0 if I feed it the string "All Test Failures" - this is incorrect.

Now if I run the same script on my Mac against I log I dl'ed from Bamboo, it finds the error and exits 1.

So, I am confused - I would at least expect the same results on Bamboo and my desktop.

Does anyone have any insight, or know what is causing this?

Thanks,

Peter


Answers:
author: saywhat42
body: Sadly Przemek, that behaves in the same way as my script - thanks for trying though :smile:


author: Przemek Bruski
body: What about the following script?

```
if egrep -q 'All Component Failures|All Test Failures:' "$1" ; then    echo "Build generated errors Has in Pre-deployment Enviroment"    exit 1else    echo "Exited with no Errors Detected"    exit 0fi
```


Tags: cloud
Bamboo artifact publishing never ends: I/O Exception caught when processing request: broken pipe
Asked by L W:

Whenever I attempt to publish a produced artifact from my bamboo agent (OSX Yosemite) to the bamboo server (version 5.6.0 build 4409) for deployment, the task never finishes.

<br />

If I check the agent log I get to see:   
\[DefaultHttpClient\] I/O Exception (java.net.SocketException) caught when processing request: Broken pipe.  
\[DefaultHttpClient\] Retrying request  

If I disable the production of the artifact, the build plan completes succesfully, as this task is the last step.  
The bamboo server is up \& running. The agent's internet connection is working fine.  
All other shared artifacts between my jobs are working correctly.  

Any ideas or suggestions?

Thanks in advance!


Answers:
author: rsperafico
body: Hello LW,

Thank you for your question.

Broken pipe, that could be due to a client disconnect.

There are several reasons for that, such as: timeout, internet connection/network broken, server refused to accept request because of load etc.

I would kindly ask you to review [Troubleshooting Remote Agents](https://confluence.atlassian.com/display/BAMKB/Troubleshooting+Remote+Agents) documentation. In there, you will have information on how to enable debug in Bamboo Server and Agents.

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support


Tags: artefact

publish
How do I see which build slave a build ran on?
Asked by Richard Cross:

Is there a way I can see a list of the build plan numbers, along with the build slaves eeach one ran on? I'm trying to ascertain whether or not a seemingly random build failure is due to one build slave having a problem.


Answers:
author: Jeff Kaffenberger
body: If you look at the build logs for your plan, at the top of the first stage it should show the agent used for example:

```
Build {ORG{ - {Build Project} - {Stage} {build#} {PlanKey} started building on agent {Agent_Name}
```


Tags: bamboo-administration
Unexplained pauses between Bamboo plan runs growing over time
Asked by David Thompson:

Over time, we're seeing longer and longer pauses between Bamboo plan runs, to the point that they're not keeping up with demand. In our scenario, a small plan runs on a remote agent once for each Perforce check-in, acting like a pre-processor for other build plans, at a rate of a few check-ins per minute, occasionally up to 20 check-ins per minute. The duration of our jobs in the plan is about 8 to 10 seconds, so they do queue up when there are bursts of check-ins. But the problem is over time, thousands of builds, there's a growing pause between plan runs, and even within jobs of the plan. Eventually it's only running once per couple minutes, and at that pace, it's not keeping up with an ever-growing queue of check-ins. Restarting the server (5.4.1) seems to help, but the pauses eventually come back. Any ideas?

With debug logging on the server and remote agent during the slowed builds, the agent is just sitting idle waiting for the server, and the server isn't working on anything either. We see a number of Quartz jobs starting and expiring, and message consumers polling for messages:

```
2015-02-10 11:28:46,919 DEBUG [bambooAgentMessageListenerConnector-1] [FingerprintMatchingMessageListenerContainer] Consumer [PooledMessageConsumer { ActiveMQMessageConsumer { value=ID:remoteagent.ourcompany.com-39415-1423368652369-3:1:1:1, started=true } }] of session [PooledSession { ActiveMQSession {id=ID:remoteagent.ourcompany.com-39415-1423368652369-3:1:1,started=true} }] did not receive a message
```


Answers:
author: Krystian Brazulewicz
body: General rules are:

* upgrade to most recent version (5.7.2)
* bump memory settings

If that won't help contact [our Support](https://support.atlassian.com/servicedesk/customer/portal/10)


Tags: bamboo-administration
Why is my build queued for more than 1 minute while my remote agent is idle?
Asked by Pascal:

Since I've configured multiple build plans, Bamboo all of a sudden started queueing my manually started builds for more than a minute. It starts with 10 seconds, and then it moves up to more than 1 minute, whereas the remote agent is completely idle. Why is that and what can I do about it?


Answers:
author: Jeff Kaffenberger
body: Do you have branches enabled, and branch merging happening? If so the Merge happens before the agent actually shows busy.
How do I autodetect capabilities on a Bamboo Remote Slave?
Asked by Richard Cross:

In the Capabilities section, it is very easy to get the Bamboo server to auto-detect capabilities, but in a massive build environment, where you have dozens of slaves - how do you get them to auto-detect their own capabilities?


Answers:
author: Ondra Medek
body: If you your machine installations are similar, you can define own `bamboo-capabilities.properties` see <https://confluence.atlassian.com/bamboo/configuring-remote-agent-capabilities-using-bamboo-capabilities-properties-289276849.html>

You can also make own script autodetecting SW and creating `bamboo-capabilities.properties` the if your installations differ.


author: Richard Cross
body: Can you provide a list of which environment variables the remote agent uses, and any other places it searches?

For example, the main Bamboo server has auto-detected Oracle JDK installed at /usr/java/latest (which points to /usr/java/jdk1.7.0_65); however, when I added

```
export JAVA_HOME=/usr/java/latest
```

to \~bamboo/.bashrc on the remote host and restarted the Bamboo Agent, the capabilities screen does not report this.

UPDATE: Additionally, in the bamboo agent log, I see this:

```
[Jdk] Environment variable JAVA_HOME does not point to valid JDK
```

comments: author: rsperafico
body: Hello Richard,Thank you for your update.What happens when you run "which java" from terminal? Does the same outputs "/usr/java/latest/bin/java" ?Have you updated .bashrc by reloading it after changes being made? (ie.: source \~bamboo/.bashrc)---Kind regards,Rafael P. SperaficoAtlassian Support


author: Richard Cross
body: Yes, I have done all of the above. When I run which java, it resolves as /usr/java/latest/bin/java


author: rsperafico
body: Hello Richard,

Thank you for your question.

There are some capabilities will be picked up when you start the remote agent (by looking at the environment variables you have set up in the remote agent box, i.e.: M2_HOME) and others that you have to add manually.

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support

comments: author: sbloomquist
body: <https://confluence.atlassian.com/display/BAMBOO/Bamboo+Best+Practice+-+Using+Agents#BambooBestPractice-UsingAgents-Unknowncapabilities>That doc says that it should be possible to trigger a detection via:Bamboo admin \> Agents \> ${AGENT} \> Detect Server CapabilitiesBut that doesn't seem to be the case. The Bamboozled Ruby Plugin -- <https://marketplace.atlassian.com/plugins/com.alienfast.bamboozled.ruby.bamboozled-ruby-plugin> -- requires auto detection in order to find the ruby runtime capability. Is it a bug that the "Detect Server Capabilities" option is no longer available?


Tags: bamboo-administration
How does bamboo handles tests that are skipped?
Asked by Bianca Pirte:

- using <http://testng.org/javadoc/org/testng/SkipException.html>

===============================================

Default suite

Total tests run: 27, Failures: 0, Skips: 27

Configuration Failures: 0, Skips: 105

===============================================

\[TestNG\] Time taken by org.testng.reporters.EmailableReporter2@46446e0c: 6 ms

\[TestNG\] Time taken by org.testng.reporters.JUnitReportReporter@1abcd898: 3 ms

\[TestNG\] Time taken by org.testng.reporters.XMLReporter@6ce1d9a: 37 ms

\[TestNG\] Time taken by org.testng.reporters.jq.Main@2ab2dd47: 25 ms

\[TestNG\] Time taken by org.testng.reporters.SuiteHTMLReporter@69d4fb43: 20 ms

\[TestNG\] Time taken by \[FailedReporter passed=0 failed=0 skipped=0\]: 3 ms

does Bamboo marks such builds as failed?


Answers:
author: Krystian Brazulewicz
body: We count them and display as "Skipped". We do the same thing with JUnit's `org.junit.Ignore` annotation
Plugin Bootstrapping/On-Enable Action
Asked by Tim Coulson:

Hi,

I'm developing a plugin for Bamboo and wondered if there was the ability to run some bootstrapping code every time the plugin is enabled/reinstalled?

Thanks!

Tim


Answers:
author: Daniel Wester
body: SAL provides <https://developer.atlassian.com/static/javadoc/sal/2.6/reference/com/atlassian/sal/api/lifecycle/LifecycleAware.html>

Create an class that implements it and declare it as a public component in your atlassian-plugin.xml and you should be good.
Bamboo trigger build based on Maven dependency
Asked by ewout_van_gossum:

Hi,

Is it possible to trigger a build based on an update of a maven repository?

We have a project that produces a maven artifact and publishes it on a private maven repository. Then we have projects that have a maven dependency set to the artifact.

Right now, our build pipeline deploys the artifact to our private repository and triggers child build plans (that have a maven dependency on the artifact). This ensures that the artifact is present in the repository, and that the dependents rebuild with the new artifact

Ideally the deployment to our private repository should be done by a deployment project, in order to ease control of what's published on our private repository. So in order for the child build plans to build with the new version its needed to either trigger a build based on a deployment plan, or trigger a build based on a change in a maven repository. Is this possible at all?

Kind Regards,

Ewout.


Answers:
author: Timothy
body: You might want to consider triggering the build using the REST API (<https://developer.atlassian.com/display/BAMBOODEV/Bamboo+REST+Resources>). This would be an example:

* <https://answers.atlassian.com/questions/245008>

comments: author: ewout_van_gossum
body: That seems to be an acceptable solution, accepted your answer. Too bad there aren't any triggers based on deployment though.


Tags: bamboo-administration
How do I disable a deployment environment?
Asked by Richard Cross:

Beyond the obvious answers such as:

1. disabling any triggers
2. changing the permissions
3. Putting in a task at the beginning that immediately fails

Is there a way to disable deployment environments in the same way that you can disable Plans, Jobs and Tasks?


Answers:
author: francis
body: I deleted the plans which is a bit drastic.


author: Andy Norris
body: I'm watching, too. I just change the name of the deploy script on the target machine, as I don't want to chance messing anything up in the sometimes precarious world of Atlassian's stuffware.


author: Charlie Misonne
body: alright! watching issue


author: Nirmal Shankar
body: <https://jira.atlassian.com/browse/BAM-13409>


author: Charlie Misonne
body: I'm also interested. Did you find a solution for this?


Tags: bamboo-administration
Can I trigger a nightly build when changes have been made in the last 24 hours?
Asked by David Paquin:

I'm testing about a dozen applications, all written in PHP using Zend Framework, which do their unit testing with PHPUnit. I've recently turned off code coverage for all these builds, as many of them take 30+ minutes to finish a single build with code completion turned on, and 15-60 seconds to do a build with it turned off. I am starting to miss the nice charts which show the code coverage history though.

So, is there a way I can schedule a nightly build which happens when a change has occurred in the last 24 hours? For this build, I will have a custom variable set which will include the code coverage options for PHPUnit. I suppose I could have it do a nightly build whether or not a commit has occurred, but it seems like a waste of build numbers for some of our projects which aren't being actively worked on.

Can anyone think of a way to do this, or a better alternative I'm totally missing?

Thanks!


Answers:
author: Marcin Gardias
body: How about using repository polling trigger with cron schedule set to once a day?

comments: author: David Paquin
body: If there is another trigger set (Stash Repository Triggered, the default one) will it see changes? Or will it know that a build was already done earlier in the day which built off that code change?I also just realized there doesn't seem to be a way to set custom variables to different values within the triggers... Is there a way to trigger a build manually with custom parameters outside of Bamboo's UI? Like maybe a linux cron job?


author: Marcin Gardias
body: Sorry for not coming back to you earlier.If you have 2 triggers on a plan, they 'share' the history. So if Stash triggers the build, the polling later on will not trigger it again.You can use /queue REST resource to start build from a script. If you add params in form of "bamboo.variableName" to the query string, bamboo will use those to override respective global/plan variables.


author: Marcin Gardias
body: REST doc: <https://developer.atlassian.com/display/BAMBOODEV/Bamboo+REST+Resources#BambooRESTResources-BuildQueueService>


author: David Paquin
body: Thanks, I'll take a look at that documentation


Tags: bamboo-administration