Setting up Selenium on Bamboo OnDemand

Tony Murphy January 3, 2013

I followed the instructions on Confluence:

https://confluence.atlassian.com/display/AOD/Populating+your+EBS+volume#PopulatingyourEBSvolume-SettingupSeleniumonelasticagents

I placed the setupSelenium.sh in /mnt/bamboo-ebs

I edited /mnt/bamboo-ebs/bin/customise-extras.sh and added the following line

#!/bin/bash

/mnt/bamboo-ebs/setupSelenium.sh

I created a snapshot

I added the custom capability (e.g. selenium=true) to the agent image

-------------------- IT DIDN'T WORK --------------

Nothing is added to the bamboo users home directory

bamboo@ip-10-194-37-76 ~ $ ls -la

total 144

drwx------ 5 bamboo bamboo 4096 Jan 4 09:05 .

drwxr-xr-x 4 root root 4096 Oct 7 16:47 ..

drwxr-xr-x 6 bamboo bamboo 4096 Jan 4 08:39 bamboo-agent-home

-rw-rw-r-- 1 bamboo bamboo 930 Oct 7 16:47 bamboo-capabilities.properties

-rw-rw-r-- 1 bamboo bamboo 89909 Jan 4 09:05 bamboo-elastic-agent.out

-rw------- 1 bamboo bamboo 537 Jan 4 09:05 .bash_history

-rw-r--r-- 1 bamboo bamboo 18 Jul 28 2011 .bash_logout

-rw-r--r-- 1 bamboo bamboo 176 Jul 28 2011 .bash_profile

-rw-r--r-- 1 bamboo bamboo 124 Jul 28 2011 .bashrc

-rwxr-xr-x 1 bamboo bamboo 45 Jan 4 08:36 build.properties

-rw-r--r-- 1 bamboo bamboo 121 Jul 28 2011 .kshrc

drwxr-xr-x 3 bamboo bamboo 4096 Jan 4 08:39 .m2

drwxrwxr-x 2 bamboo bamboo 4096 Jan 4 08:39 .subversion

-rw------- 1 bamboo bamboo 1267 Jan 4 09:05 .viminfo

bamboo@ip-10-194-37-76 ~ $

looks like firefox etc has been installed - yum.log suggest so (Jan 04 08:37:29 Installed: firefox-3.6.26-1.el5.centos.i386).

But if I do a `which firefox` then, it shows up as /usr/bin/firefox - which has a created date feb 2012

If I look deeper, I can see updates to /usr/lib/firefox-3.6

Any ideas on what I'm doing wrong? Where can I see logs?

2 answers

1 accepted

0 votes
Answer accepted
Tony Murphy January 8, 2013

Thanks Lucas

Turns out that I had installed everything ok.. Our test code was the problem.

0 votes
LucasA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 3, 2013

Hi Tony,

The "/usr/bin/firefox" may be a symlink to the real Firefox location. You can assure whether Firefox was correctly installed or not by the following command:

rpm -ql $(rpm -qa | grep -i firefox)

This will return where Firefox was installed.

I hope it helps!

Best regards,
Lucas Timm

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events