Enabling extended logging in Atlassian Bamboo
To help us investigate unexpected behaviour involving MettleCI functions triggered by Local Bamboo Agents, take the following steps in the Atlassian Bamboo Server GUI…
Go to Bamboo’s menu Administration → System → Log settings.
Add the relevant MettleCI Java class to Bamboo’s log4j-based logging list by...
putting “com.datamigrators.mettle.services.joboperation.DataStageJobLaunchOperation” (no quotes) in the Classpath field.
selecting “DEBUG" from the Type menu; and
clicking on the “Add” button.
In the new entry that appears in the 'Edit current levels' table, check that the Current Level value is set to ‘DEBUG’. If not, correct it in New Level and click the Save button to the right.
Run the CI Plan where the Unit Tests are exhibiting the issue.
Get a copy of the resulting Bamboo Server log (BAMBOO_HOME/logs/atlassian-bamboo.log) and forward that to Data Migrators for diagnostics.
Go to Bamboo’s menu Administration → System → Log settings.
Remove the
com.datamigrators.mettle.services.joboperation.DataStageJobLaunchOperationline by clicking ‘Delete’ on the relevant line in the 'Edit current levels' table.
Bamboo doesn’t have to be restarted during these operations.