youngmon/atlassian-qna huggingface dataset:
UnhandledWebdriverError empty message!
Asked by Luciana Silva:

Hi everyone,

I m facing a problem and after hours looking for an answer on the web, I ve decided to ask you about it!

During my build, firefox is launched by Selenium, Right? I found out that the elastic instance that has been built uses firefox 23.0.1 and Selenium 2.35.0.

When I run my plan, the error I get in my log is

|----------------------|------------------------------------------------------------------------------------------------------------------------|
| 15-May-2014 16:06:19 | 1) TesteGoogle::testSave                                                                                               |
| 15-May-2014 16:06:19 | UnhandledWebDriverError:                                                                                               |
| 15-May-2014 16:06:19 |                                                                                                                        |
| 15-May-2014 16:06:19 | /mnt/bamboo-ebs/bamboo-agent/build-dir/SYS-CI-JOB1/Library/php-webdriver-master/lib/WebDriverExceptions.php:61         |
| 15-May-2014 16:06:19 | /mnt/bamboo-ebs/bamboo-agent/build-dir/SYS-CI-JOB1/Library/php-webdriver-master/lib/remote/HttpCommandExecutor.php:246 |
| 15-May-2014 16:06:19 | /mnt/bamboo-ebs/bamboo-agent/build-dir/SYS-CI-JOB1/Library/php-webdriver-master/lib/remote/HttpCommandExecutor.php:147 |
| 15-May-2014 16:06:19 | /mnt/bamboo-ebs/bamboo-agent/build-dir/SYS-CI-JOB1/Library/php-webdriver-master/lib/remote/RemoteWebDriver.php:33      |
| 15-May-2014 16:06:19 | /mnt/bamboo-ebs/bamboo-agent/build-dir/SYS-CI-JOB1/Test/TesteGoogle.php:17                                             |
| 15-May-2014 16:06:19 |                                                                                                                        |
| 15-May-2014 16:06:19 | FAILURES!                                                                                                              |
| 15-May-2014 16:06:19 | Tests: 1, Assertions: 0, Errors: 1.                                                                                    |

<br />

Can you give me some tips... to debug and find this error!!!!!

Thank you in advance,

Luciana

By the way... on that file, line 17... that s what I ve got:

$this-\>driver = new RemoteWebDriver($host, $capabilities);

Wich has been built with:

// the endpoint of the Selenium Standalone Server

$host = 'http://localhost:4444/wd/hub'; // this is the default

// edit the capability, choose firefox as the browser

$capabilities = array(WebDriverCapabilityType::BROWSER_NAME =\> 'firefox');

Works fine in my machine.. but my selenium version is newer and so my firefox version!


Answers:
author: Luciana Silva
body: I don t know if anyoneelse is facing this problem.. but I had to compile firefox, saved an AMI with this compilation... and had to add a script to intialize selenium and firefox and I had to intialize it using:yum install alsa-lib-devel -y and Xvfb :1 -screen 0 1280x768x24 \&  
export DISPLAY=:1.

Now it s working!


Tags: error

selenium
How to access Bamboo agent system properties ?
Asked by mnsanghvi:

In Bamboo, an agent has its properties listed on the System Properties tab. How can that information

be accessed in a plan ? I can get ${system.os.name}, but what about getting the host name, which is one of the

properties listed on that page ? How would I get that ?


Answers:
author: Felipe Kraemer
body: Hello Mehul,

In Linux/Mac systems, echoing $HOSTNAME in the Terminal will tell you the computer name.

In Windows systems, echoing %computername% in the Command Prompt will tell you the computer name.

Basically, every system variable that can be echoed in Terminal or Command Prompt can be retrieved in Bamboo.

So, in Bamboo, it would be just a matter of using ${system.HOSTNAME} or ${system.computername}.

Kind regards,  
Felipe Kraemer  
Atlassian Support

comments: author: mnsanghvi
body: Thanks for the response. I will try it out over the weekend.
Cleanup of bamboo /tmp directory
Asked by Dan Vella:

Can the bamboo /tmp be cleaned up. It takes a lot of space up and we are trying to manage the space on our server. Can we remove these files/folders nightly with a script? Or should we keep everything and move the temp directory via the config files?


Answers:
author: Richard Cross
body: I don't think Rafael's response answers the question.

The problem is that Bamboo (and its 3rd party tasks) dumps dozens of directories in /tmp (for example, /tmp/npm-81678765765). These directories on our system are each around 250MB or more, and simply remain in /tmp until it fills up.

This causes issues with builds failing due to "no space left on device".

Best solution at the moment is to write a script that checks which of these directories has no recent files, delete them, and then cross your fingers.

EDIT: And I can confirm that, unfortunately, launching the Bamboo Agent with an alternate temp directory does not solve this problem.


author: rsperafico
body: Hi Daniel,

Depending on the way you environment is set up, Bamboo local and remote agents will look for files under the temporary directory. If you don't have them, the same will throw an error/exception.

You can check the option "**Clean Working Directory after build** " under the miscellaneous tab of your job configurations. This will clear the local copy of the repository available at **\<bamboo-home\>/xml-data/build-dir/** before each build. *Please note that this may increase the time taken to run a build but will save space.*

Kind regards,  
Rafael

comments: author: Charlie Misonne
body: does this also clear the tmp dir used for a build under /tmp?


author: Richard Cross
body: No, it only clears the working directory.
How to access Bamboo variables in an msbuild task
Asked by Douglas Mccorison:

I am trying to create a new msbuild task. I would like to use some of the Bamboo variables in the task (specifically bamboo.repository.revision.number in this case, but I have the same problem in other cases). I have set up the build to diagnostic verbosity (/v:diag) so I can see all the environment variables. Any Plan variables I have manually created show up in the environment, but none of the built-in variables show up.

I have tried setting the variables in the Plan varaibles section, but that does not seem to work. I have tried setting them on the Options and that did not work. I have tried using both %...% and ${...} syntax in both fields on the MSBuild configuration page.

So, how do I set up the MSBuild task to any Bamboo global/build/project variables are available to the build script?


Answers:
author: Chuck Ma
body: Doug,

I had the same problem but I had "Invalid value for 'AssemblyVersion' " in my log.

problem was the version number. I used something like: v.5.0.9.100, turns out I need to remove the "v."

I can confirm that ${xxx.xxx.xxxxxx} works .

Good luck.


author: Douglas Mccorison
body: I've checked, it is spelled correctly, but that is not the problem.

Note: the /v:diag option to MSBuild shows all environment variables for that build. None of the bamboo variables listed in their documentation appear in the list of environment variables available to to build. The manually created variables are present, but not the automatic variables.


author: Jason Monsorno
body: You misspelled "revision" in the question, is it possible you misspelled it in your MSBuild task?


Tags: ms-build
Mercurial integration
Asked by Rafa?F:

Hi!

I believe that I don't understand something in Mercurial-Bamboo integration.

I've added a Mercurial repository. Cloning went fine, but there is no push task available, so I have manually added Command task that performed hg push. That is my first question - is this by the book? Shouldn't exist Source Code Push task?

And the second problem - I did not disablad repository caching in repository settings. So code cloned for my (release) plan has cache directory set as remote repository. So all my changes were pushed to the cache instead of my real remote repository. This is not what I want. I want the changes to be pushed to my real remote repository. How can I get those chages from cache pushed in proper repository?

Best regards!


Answers:
author: Timothy
body: > I've added a Mercurial repository. Cloning went fine, but there is no push task available
>
> Shouldn't exist Source Code Push task?

Which task are you using? Are you using the Source code Checkout Task and expecting it to push code to your repo?

Can't answer the 2nd question as I have not tested it out yet.

<br />

comments: author: Rafa?F
body: No, I am using Source code checkout task to clone the repository. But there is no task for pushing changes - I had to define custom command task, which is basically hg push.


Tags: bamboo-administration
Bamboo failed to start with socket exception
Asked by Malte Peters:

Hi!

I want to try Bamboo but i have the Problem where the script comes to the point for port 8007 i get this exception:

SEVERE: StandardServer.await: create\[localhost:8007\]:

java.net.SocketException: Invalid argument

at java.net.PlainSocketImpl.socketBind(Native Method)

at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)

at java.net.ServerSocket.bind(ServerSocket.java:328)

at java.net.ServerSocket.\<init\>(ServerSocket.java:194)

at org.apache.catalina.core.StandardServer.await(StandardServer.java:427)

at org.apache.catalina.startup.Catalina.await(Catalina.java:766)

at org.apache.catalina.startup.Catalina.start(Catalina.java:712)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)

I have noe clue whats wrong here.

OS: Linux Debian 6.x


Answers:
author: Malte Peters
body: Hi

No nothing is running on 8007.

comments: author: Timothy
body: Have you tried going into conf/server.xml and changing 8007 to something else?


author: Malte Peters
body: Hi Yes.

I changed it to 8100

netstat -antp

does not show any port of 8007, 8100 or all other ports i change to before i exec the shell script.

My "java -version" output:

java version "1.7.0_55"

Java(TM) SE Runtime Environment (build 1.7.0_55-b13)

Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)


author: Timothy
body: I think you already have something running and using port 8007. Please review your server's ports.


Tags: bamboo-administration
Automate creation of Bamboo projects and plans
Asked by John Cromartie:

Is there any way to create a Bamboo plan via the REST API, or a custom plugin? I don't see any documented way to do this, and need to be able to create projects and plans via code.


Answers:
author: Carolyn Van Slyck
body: I am working on [Trade Depot for Bamboo](https://marketplace.atlassian.com/plugins/com.carolynvs.trade_depot) which provides a REST api for creating plans. It is still under development but you can try the beta and checkout the [project homepage](https://bitbucket.org/carolynvs/bamboo-trade-depot) for details on what is finished.

Feel free to add feature requests to the issue tracker or just provide any feedback you may have.


author: Bob Swift (personal)
body: This support is well underway as part of [Bamboo Command Line Interface](https://bobswift.atlassian.net/wiki/display/BCLI). Watch [BCLI-47](https://bobswift.atlassian.net/browse/BCLI-47), [BCLI-48](https://bobswift.atlassian.net/browse/BCLI-48), and related issues (requires a login in). EAP participants are welcome.

comments: author: John Cromartie
body: Does that mean that the API additions are part of a plugin? Or will it be part of an official Bamboo release?


author: John Cromartie
body: That's great. If it is available as an add-on, then we could use it with our current version of Bamboo, correct? We would be very interested in making use of the new REST endpoints.
Bamboo setup with 175 Repositories
Asked by Andrew Hanson:

I'm evaluating Bamboo to see if it would work for us, and I had a question in regards to Projects and Plans for an organization with 175 repositories. While there are numerous repositories, there's only 3 or 4 different types of repository. For the most part it's simple:

1. Checkout source code
2. Run MSBuild for the only .sln file in the repository

Then from there we would either copy it directly to one location, or possibly zip up the contents and move the zip file to another location.

From what I can tell I'm going to have to go through and create a project and a plan for each one of these so each plan can have the correct repository. Is that what I would end up with?


Answers:
author: Przemek Bruski
body: > While there are numerous repositories, there's only 3 or 4 different types of repository

Can you elaborate on that?

comments: author: Andrew Hanson
body: Sure can.

One type of repository would checkout the code on the main branch, build the project using MSBuild, zip up the output of the MSBuild run, and copy them to a directory. This might apply to 15-20 repositories, where the only differences would be the name of the repository, the name of the MSBuild file, and the name of the directory, (all of which would be named the same).

Another type of repository would checked out the code on the main branch, build the project using MSBuild, and copy the build directory contents to another directory. Just as above, the only variation would be the name of the repository, the name of the MSBuild file, and the name of the final directory. Again, all three of these would be named the same. This would apply to aroun 75-80 repositories.

I have a couple of other "types", but for the purpose of this question we can ignore those and assume I meant around 100 repositories and 2 "types".


Tags: bamboo-administration
Unable to run script in Bamboo agent
Asked by Andrew Shvets:

Hello,

Recently I configured my agent to run once a day on RHEL 6.5. The agent is supposed to execute a script in /opt/automated_testing/hl_script.sh. My problem is that when I run this script, it's supposed to create a logs directory in the same location of /opt/automated_testing (it has write permissions in that location.) However, this directory is not created... when I run the script itself I see some of the default output (that normally gets forwarded to the console.)

Ok, weird. Then I create a test.sh in the same directory and set it up to execute just this "touch foo.txt". I have the shebang "#!/bin/sh" at the top and all of the scripts are executable to the user (which is also how the bamboo proc is started as.)

What am I doing wrong?


Answers:
author: rsperafico
body: Hi Andrew,

If your /opt/automated_testing/hl_script.sh has the following content:

```
#!/bin/sh# create a new directorymkdir logs# create a new log filetouch logs/foo.txt
```

The script above will generate its output under \<bamboo-home\>/xml-data/build-dir/

In case you decide on having them created under the same directory as your running script (/opt/automated_testing/), you should append the full path to your commands as per following:

```
#!/bin/sh# create a new directorymkdir /opt/automated_testing/logs# create a new log filetouch /opt/automated_testing/foo.txt
```

The script above will generate its output under /opt/automated_testing

Kind regards,  
Rafael


author: Andrew Shvets
body: Hi Rafael,

This was due to me not realizing that I was running the script in a different directory entirely. Thanks for your help.
How to use /testlist with /testmetadata
Asked by chris spencer:

I'm attempting to use the MSTest Runner as per this page [](https://confluence.atlassian.com/display/BAMBOO053/MSTest+Runner)<https://confluence.atlassian.com/display/BAMBOO053/MSTest+Runner>

I enter the path to the \<solutionName\>.vsmdi file and this appears to work. However, I need to use the /testlist option in order to filter which tests are run. There does not appear to be an obvious place to enter this extra parameter in the UI. I've tried simply adding it after the path to the metadata file but this doesn't work.

This seems like something that should be simple to do and from the command line it is - worked first time. I would like to get it running via the MSTest Runner however. Is this possible?


Answers:
author: chris spencer
body: I resolved this issue by setting up a 'Command' task for the MsTest executable and calling it directly. I fail to see any benefit with using the MSTest Runner wrapper.

comments: author: Jason Monsorno
body: The wrapper is just an executable with some of the parameters broken out, it was probably added to directly compete with competitors that have similar plugin/macro/etc.

I would setup an executable to MsTest instead of using a command task; that way you can have different server capabilities, audit which jobs use that executable, and can easily change the source/location of the executable if you upgrade versions. Easier to plan for the future proactively than retroactively.


author: chris spencer
body: I've setup MsTest.exe as an executable for the build image. Is this what you are suggesting? I then use a task of type command, selecting MSTest from the Executable drop-down


author: Jason Monsorno
body: Yeah, I saw you say 'Command' but for some reason I had 'Script' in my head.


Tags: cloud

ms-testrunner
Artifact Sharing , which is branch specfic.
Asked by Nick Winder:

I've been looking into sharing artifacts between plans, which all work fine until I want to pick up a specfic artifact that has been produced by a specific branch. By deafult the Artifact Downloader seems to take the latest published artifacts from the default branch.

This issue seems to have been brought up before and even though it seems it was fixed in 5.1.1 (as per BAM-13584) , still in 5.3 I cannot chose a branch to pick up my shared Artifacts from in the Artifact downloader. Just wondered if this is still a issue or am I missing something?

Thank you


Answers:
author: jlmverhoeven
body: Same problem here using the on demand version. Very much not handy...


author: Radek Antoniuk
body: It is currently not supported by Artifact downloader task to select the branch.

However, I found a workaround for this.

I needed to:

* include the branch name in the artifact name (e.g. product-**trunk** .war, product-**integration**.war)
* change the build plan artifact definition and define
  * TRUNK war artifact as \*trunk.war
  * INTEGRATION war artifact as \*integration.war
  * ANY war artifact as \*.war

The last ANY artifact is needed for the deployment plans to fetch the artifact because in deployment projects there **IS** a possibility to select a branch.

Using this workaround you can create even triggerred plans that will deploy from branches you choose in their definition.


author: Shai
body: I have the same problem. Is there a solution for it?


Tags: artefact

branch
Non-english characters not working properly
Asked by Daniel Purkhus:

I'm using the Powershell plugin to copy artifacts to network shares and some of these shares have non-english charaters in them and it seems to be a problem for both the plugin and thei are also displayed incorrectly in the logs. I've tried a couple of differente encodings for the JVM but that does not seem to fix this. Is there some one correct encoding to use?


Answers:
author: Sergey Podobry _Stellarity Software_
body: Fixed in 1.1.6 and 1.0.9. For now non-english characters are working in scripts but in logs they are not shown right.


author: Sergey Podobry _Stellarity Software_
body: Hi Daniel,

I'll look how to solve that and write you back.


Tags: addon-com.stellarity.bamboo.powershell-task
how to link manual ant clover build results to bamboo
Asked by vinay mummadi:

Hi, i am facing a similar issue linking clover results to bamboo. I need help on linking the clover.xml / html results to bamboo. it's ant based build and the output is generated manually.

The build is generated in the path e:/d11/0037/ut_build/engineering/clover. the output is in the engineering/clover/clover.xml and engineering/clover/html dir. In the Bamboo it is not taking the absolute path.

I gave the following relative paths.

1. \*\*/Engineering/clover/clover.xml. This is assuming bamboo will pick up the results from d11/0037/ut_clover_2014/engineering/clover/clover.xml  
2. I did an scp to /u/build/build4/indirect/indirect_ut_clover and configured bamboo to point to "R:/buildroom/pub/builds/build4/indirect/indirect_ut_trunk/mou1bldrm-d11/latest/clover".  
3. Copied the content from d11/0037/ut_build/engineering/clover to e:/d11/latest/clover/

<br />

In all these cases, it doesn't pickup the results in bamboo. If you have any pointers let me know.

here's the log result. i tried pulling artifacts from different folders, but no success.

Publishing an artifact: Clover Report (System)  
Finished publishing of artifact Job artifact: \[Clover Report (System)\], pattern: \[\*\*/\*.\*\] anchored at\[latest/clover/html\] in 0s  
Publishing an artifact: Clover Report  
Finished publishing of artifact Job artifact: \[Clover Report\], pattern: \[\*\*/\*\] anchored at\[latest/clover/html\] in 0s  
Publishing an artifact: Clover Report main  
Finished publishing of artifact Job artifact: \[Clover Report main\], pattern: \[\*\*/\*\] anchored at\[\*\*/Engineering/clover/html\] in 0s  
Running post build plugin 'Clover Results Collector'  
Failed to execute plugin 'Clover Results Collector' with error: No file matches the specified pattern:\*\*/Engineering/clover/clover.xml  


Answers:
author: vinay mummadi
body: the workspace dir is e:/d11/


Tags: clover