Bamboo Testless script

Pankaj Chawla November 28, 2011

Hi All,

I am new to bamboo. I want to know when it will give me the build pass and build failed notifiacation.

Till date what i have done is:

I have installed bamboo on my local machine and integrated it with SVN.I did checked in code in my svn server. code is just an hello world example in java.

when i check in the code it triggers a build and the result always is builed failed.

can any build please tell me what i will have to do see builed passes :)

-Pankaj

2 answers

1 accepted

0 votes
Answer accepted
Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 28, 2011

Which version of Bamboo is it?

I think the problem is that you have no Tasks defined except for the checkout. Go to the Job configuration as described above, click Add Task and use one of the tasks there.

For a start, you can define a Script Task that will just 'exit 0' or run javac on your program or whatever you want really :-)

0 votes
Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 28, 2011

I think you need to uncheck 'This build will produce test results' in your Ant/Maven Task configuration.

Pankaj Chawla November 28, 2011

Thaks for you reply,

kindly tell me where can i locate this option?Because i am unable to see this option any where i am using bamboo 3.3

-pankaj

Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 28, 2011

In plan view, click 'default job', select 'Configure Job' from the menu, go to the Tasks tab, click on the Ant/Maven task (whichever you use)

If that doesn't help please post the build log.

Pankaj Chawla November 28, 2011

i have not added this in my task, ant/Maven is not even installed on my machine

do i need to add it to my task and then uncheck it?

Pankaj Chawla November 28, 2011

simple29-Nov-2011 14:24:52Running on server: post build plugin 'Build Hanging Detection Configuration'

simple29-Nov-2011 14:24:52Running on server: post build plugin 'Maven Dependencies Postprocessor'

simple29-Nov-2011 14:24:52All post build plugins have finished

simple29-Nov-2011 14:24:52Generating build results summary...

simple29-Nov-2011 14:24:52Saving build results to disk...

simple29-Nov-2011 14:24:52Indexing build results...

simple29-Nov-2011 14:24:52Finished building TESTING-DB-JOB1-9.

Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 28, 2011

No, I've just assumed you use one of those. Please post your build log.

Pankaj Chawla November 28, 2011

simple29-Nov-2011 14:24:50Build TESTING-DB-JOB1-9 started building on agent Default Agent

simple29-Nov-2011 14:24:50Build working directory is D:\xml-data\build-dir\TESTING-DB-JOB1

simple29-Nov-2011 14:24:50Executing build TESTING-DB-JOB1-9

simple29-Nov-2011 14:24:50Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'

simple29-Nov-2011 14:24:50Running preRetrieveSourceCode task...

simple29-Nov-2011 14:24:50Updating source code to revision: 7

simple29-Nov-2011 14:24:50Existing workspace found at 'D:\xml-data\build-dir\TESTING-DB-JOB1'. updating...

simple29-Nov-2011 14:24:52Updated source code to revision: 7

simple29-Nov-2011 14:24:52Running postRetrieveSourceCode task...

simple29-Nov-2011 14:24:52Finished task 'Checkout Default Repository'

simple29-Nov-2011 14:24:52Running pre-build action: Build Number Stamper

simple29-Nov-2011 14:24:52Running pre-build action: Clover Grails PreBuild Action

simple29-Nov-2011 14:24:52Running pre-build action: VCS Version Collector

simple29-Nov-2011 14:24:52Running pre-build action: Repository Isolation Enabler Action

simple29-Nov-2011 14:24:52Running pre-build action: Maven Settings Prebuild Action

simple29-Nov-2011 14:24:52Running post build plugin 'NCover Results Collector'

simple29-Nov-2011 14:24:52Running post build plugin 'Clover Results Collector'

simple29-Nov-2011 14:24:52Running post build plugin 'Artifact Copier'

simple29-Nov-2011 14:24:52Running post build plugin 'Cleanup Build Processor'

simple29-Nov-2011 14:24:52Finalising the build...

simple29-Nov-2011 14:24:52Stopping timer.

simple29-Nov-2011 14:24:52Build TESTING-DB-JOB1-9 completed.

simple29-Nov-2011 14:24:52Running on server: post build plugin 'NCover Results Collector'

simple29-Nov-2011 14:24:52Running on server: post build plugin 'Clover Delta Calculator'

Pankaj Chawla November 28, 2011

Hi,

Thank you so much!!!

its working!!

cheers :-)

have a nice day ahead!!!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events