Menu
  • HOME
  • TAGS

JUnit rules TemporaryFolder - Error on Bamboo

java,junit,bamboo,rule

Finally I found my mistake... It has nothing to do with the Rule JUnit... It was when I tried to list the files in my directories I had a structure like [TEMP_REPO]\test\test and the separators where hard written. So I replace them by System.getProperty("file.separator") and everything went fine. Hope this...

Git commit user is different than git push user

git,bash,bamboo

Commits are actual things (specifically, "objects") that live inside the git repository. They contain text strings giving the author and committer. Once written into an object, these are permanent and unchangeable. Aside: git commit --amend does not change them; instead, it makes a new, different commit, with different data in...

Bamboo maven plugin cannot be found

bamboo

The Bamboo agent machine, or one of the services on it, was not finding the correct JDK. We were able to fix the problem by pre-pending the JDK path to the PATH environment variable.

Automating Bamboo Remote Agent Installation for windows 7 - Cannot stop the running agent with StopBambooAgent-NT.bat

bash,automation,jvm,continuous-integration,bamboo

Via @Etan Reisner I wasn't installing the bamboo agent as a windows service, despite that being my intention, and that is why the scripts weren't working. To fix this I passed in the installntservice in the java command in the install script. (See: https://confluence.atlassian.com/display/BAMBOO056/Additional+remote+agent+options#Additionalremoteagentoptions-ntservice)...

How to setup phpUnit in Atlassian Bamboo?

php,phpunit,bamboo

I finally solved this issue myself. Here is a proper documentation for setting Phpunit with Bamboo https://confluence.atlassian.com/display/BAMBOO/Getting+started+with+PHP+and+Bamboo Also in order to set the PHPunit Executable path, we have to set path as: path/to/executable(phpunit folder).cmd and not just: path/to/executable(phpunit folder) Else When you will run the build task, build will fail...

How can I change the passing percentage for code coverage?

bamboo,clover

You can specify in maven-clover2-plugin a configuration of targetPercentage. You can also specify excluded classes <configuration> <targetPercentage>60%</targetPercentage> <excludes> <exclude> myPackage/AppConfig.java</exclude> </excludes> </configuration> ...

Order of Grails Bootstrap classes

grails,continuous-integration,bootstrap,bamboo

Grails makes no guarantees about ordering of BootStrap classes so it isn't something that should be relied about in your application. If you need to control ordering of logic that is run at startup there are better solutions, for example you could use the platform-core plugin's event model to trigger...

What Java properties to pass to a Java app to authenticate with a http proxy

java,apache-httpclient-4.x,bamboo,http-proxy,apache-httpcomponents

Finally I figured out by trial and error. Passing java.net.useSystemProxies=true along with https.proxyPort, https.proxyHost resolved this. Basically the java vm command line got -Djava.net.useSystemProxies=true -Dhttps.proxyPort=80 -Dhttps.proxyHost=proxyserver.mycompany.com I didn't have to pass https.proxyUser, https.proxyPassword. I believe proxy authentication used the same credentials as my login NTLM credentials....

Skip celery warnings

django,celery,bamboo

There's a celery settings with which you can specify the log level of things written to stdout within celery processes. It's CELERY_REDIRECT_STDOUTS_LEVEL. Use e.g. in your configuration: CELERY_REDIRECT_STDOUTS_LEVEL = 'INFO' Take a look at the docs: http://docs.celeryproject.org/en/2.2/configuration.html I'm not sure about the second log line, but the first should go...

running karma-cli fails on bamboo agent

karma-runner,bamboo

Answer: do not run Bash Command in Bamboo agent, but use node.js plugin So, node.js task with command: node_modules/karma-cli/bin/karma arguments: start config/karma.conf.js --single-run Then it works fine....

Bamboo npm.load() required error

amazon-web-services,npm,bamboo,atlassian

I have your answer, go to C:\opt\node-v0.10.35\node_modules\npm then open the file npmrc using the notepad and replace he following line: prefix=${APPDATA}\npm with prefix=C:\opt\node-v0.10.35\node_modules\npm That's the solution. Make sure you have administrator permissions for that folder.

Error replacing XML element contents with maven-replacer-plugin

xml,maven,replace,bamboo

Answering my own question. The error message is confusing. One of the properties was not available on the CI configuration. For some reason, the replacer plugin does not allow the text in <value> to contain {, and an error is thrown, even though the error text makes it appear to...

Remote agents vs local agents for continous integration and deployment

.net,git,bamboo

As explained in this link, the main difference between local and remote agents is where they run: Local agents run on the same machine as the Bamboo server. They even run as part of the same process/JVM. Remote agents can pretty much run anywhere. A dedicated server or VM in...

spring-security-core 2.0.3 spring-aop 2.0.8 cause NoSuchMethodError

linux,spring-security,spring-aop,bamboo,nosuchmethoderror

I had a problem like the one that you described in the past. That weird behaviour is possible because the order of the class loading isn't guaranteed. So, it's possible that the same WAR file works on one server and fails on another one. The easy way to debug that...

Setting Dependencies/Triggers in bamboo?

automation,dependencies,bamboo

A dependency tree is usually setup as a parent triggering one or more child plans. In this case you could set the three plans to build sequentially - Plan 1 completion triggers Plan 2, and Plan 2 completion triggers Plan 3. The downside is a longer overall time to build,...

Writing a bamboo deployment task

task,bamboo

The TaskType Module Definition's category element within atlassian-plugin.xml is purely informational, i.e. only determines into which section of Bamboo's task selection dialog the task will be sorted. Section Introduction to 5.0 - Deployments within the Bamboo Developer Documentation explains the underlying concepts and necessary changes so that a task supports...

Set Bamboo variable in batch file

variables,batch-file,bamboo,atlassian

set bamboo_releaseDate = %mydate% ^ ^ The spaces are included in the name of the variable and in the value. So, you are assigning value to a new variable (that includes a space in its name), not to the existing one (without the space). Replace with set "bamboo_releaseDate=%mydate%" Now, there...

How to do Selenium test on Bamboo

selenium-webdriver,maven-3,bamboo

Found an work around for the problem. I am posting that as an answer for anyone who will go through this situation. But think there will be (Should be) a better answer for this. Please post if you know a better way. First (for us) this situation occurs only when...

How to parameterize Bamboo builds?

rest,automation,continuous-integration,bamboo

This seems to be a work around but I believe it can help resolve your issue. Atlassian has a free plugin call Bamboo Inject Variables Plugin. Basically, with this plugin, you can create an "Inject Bamboo Variables from file" task to read a variable from a file. So the idea...

SoapUI integration with bamboo

continuous-integration,soapui,bamboo

Problem is solved. Solution: POM-plan in Bamboo-correct dependencies. For jms I used "geronimo" <dependency> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-jms_1.1_spec</artifactId> <version>1.1.1</version> </dependency> ...

How can I migrate to automated builds while keeping Git's commit log clean?

git,build,continuous-integration,bamboo,atlassian

Add a tag to the last non-testing commit git tag backup Then continue to work like you did git add .;git add -A;git commit -m "Trigger Bamboo build.";git push Once you have found a Bamboo setup that works for you, revert your local changes by going back to the commit...

Configuring PhPUnit.phar with Atlassian Bamboo

php,unit-testing,phpunit,bamboo,atlassian

Found solution to my problem. While setting Executable path you have to set path as: path/to/executable(phpunit folder).cmd and not just: path/to/executable(phpunit folder)...

node-huxley fails to start on elastic bamboo w/ubuntu

administration,bamboo,selenium-chromedriver,huxley

I posted this question on Atalassian Answers and got this response from an Atlassian developer. Looks like this tool needs actual X Server display. In order to make it work on a headless Ubuntu you'll need to install xvfb and use xvfb-run command to run your tool with a virtual...

REST endpoint to kick off Bamboo build?

rest,continuous-integration,bamboo

Yes, it can be done. POST to the build queue service: https://developer.atlassian.com/display/BAMBOODEV/Bamboo+REST+Resources#BambooRESTResources-BuildQueueService

Bamboo CI Plan Templates?

templates,continuous-integration,bamboo

That isn't currently possible, unfortunately: A fairly old feature request for plan templates to reuse across projects (BAM-907) has been resolved as Fixed due to the introduction of plan branches in Bamboo 4.0 (see Using plan branches for details): Plan Branches are a Bamboo Plan configuration that represent a branch...

Making Bamboo detect items removed from git repo

git,salesforce,build-process,bamboo

Solved it using git log --pretty=format: --name-only --diff-filter=D ${bamboo.repository.previous.revision.number}..HEAD --summary | sort -u > removals.txt results in a nice clean output of removed files...

Bamboo does not want to create Artifacts

bamboo,atlassian

In artifact definition screen: For Location specify a relative path to the files you want to create artifact For Copy pattern, specify the pattern to be copied. For you case, put ./release into the Location box, then specify *.bz2 as a copy pattern. For more info, see this issue https://jira.atlassian.com/browse/BAM-2149...

Putting version file into EAR or WAR using Maven

java,git,maven,bamboo

You have at least to options: Customize the manifest entries. The war plugin allows you to add some information into the manifest file. Some examples are on the usage page: https://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html (note: today its ${project.version} and not ${pom.version}. The ear plugin has options to specify a manifest file or set...

How can I integrate ReSharper's Dotsettings File in SonarQube?

c#,resharper,sonarqube,bamboo,stylecop

You cannot use an existing .DotSettings file with SonarQube's R# plugin at the moment. This feature however will be added in the upcoming release of the R# plugin, refer to http://jira.sonarsource.com/browse/SONARRSHPR-15 for details. Note: The re-use reports mode was already supported in the past (with the C# plugin version 2.x),...

Bamboo: error on svn checkout - version mismatch

svn,continuous-integration,bamboo

problem solved: I used variables to generate the repository path and wanted to control the svn-path from the bamboo variables. This intention of having a dynamic task killed my process and mixed the revision/checkout.

Bamboo build stuck on “Waiting to be built…” and Cloning into 'Common'

git,msbuild,continuous-integration,bamboo

It was password issue for submodule which is fixed. Now I'm getting this error Failure in artifact preparation phase during processing of: Subscription for Shared artifact: [bla, pattern: [**] anchored at: [deploy_artifact], destination: [] – Log message "C:\bamboo-home\artifacts\XXX\shared\build-xxxx\package is not a directory" You can look at this thread: Did...

Bamboo SCP Task without maintaining directory structure

ant,scp,bamboo,atlassian-stash

Ok I figured out a way to complete what I was looking to do. Basically, I ended up creating a few more targets in my ant build file that (re)moved files to achieve the structure that I wanted.

How to tag a git repo in a bamboo build

bamboo,git-tag

Yes, if you navigate to the job workspace, you will find that Bamboo does not do a straightforward git clone "under the hood", and the the remote is set to an internal file path. Fortunately, Bamboo does store the original repository URL as ${bamboo.repository.git.repositoryUrl}, so all you need to do...

Bamboo remote build agent cannot find powershell.exe after installing nodejs

windows,node.js,powershell,continuous-integration,bamboo

If you do a default installation of nodejs you will see that it adds nodejs and npm to the path. Sometimes I have seen that the installer adds a user variable named PATH - it might be that the Bamboo agent decides to read the user path without "merging" it...