youngmon/atlassian-qna huggingface dataset:
Bamboo with NPM, Webpack and Babel. Windows permissions ?
Asked by luis santos:

Hello guys, we are evaluating Bamboo CI to build our front end projects. We use Javascript, NPM, Webpack, ReactJS and Babel technology stack. When I create a build plan my repo gets checked out but the build fails since Babel doesn't seem to be compiling the files properly.

Weird thing is that this just happens in the build-dir directory. If I copy and paste the same project outside bamboo-home the whole build goes fine.

At this point I am trying to build my project straight from the console and I see the same results. Is there any configuration or maybe permissions that I am missing here ?

Thanks in advance

Luis


Answers:
author: Jeyanthan I
body: Hi Luis,

What does the bamboo build log complain?
> Weird thing is that this just happens in the build-dir directory.

I assume you are not able to compile your project within the build directory, but the compilation is successful when run outside. Am I right?

This to me looks like a permission issue. Check if the bamboo user has appropriate permission to build in that directory.

We can tell you more with the build log snip.

comments: author: luis santos
body: it is not building/compiling from cmd either but just if I am inside build-dir. Like I said if I copy and paste the same project outside bamboo-home it builds as expected.

```
ERROR in ./index.js
Module parse failed: C:\opt\bamboo-home\xml-data\build-dir\STA-DEV-JOB1\node_modules\babel-loader\lib\index.js!C:\opt\bamboo-home\xml-data\build-dir\STA-DEV-JOB1\src\index.js Unexpected token (24:8)
You may need an appropriate loader to handle this file type.
| const render = (Component, target) => {
| ReactDOM.render(
| <Provider store={store}>
| <AppContainer>
| <Component/>
 @ multi babel-polyfill react-hot-loader/patch ./index.js
```

It seems to me that it may be a permission issue as well but maybe with the OS (Windows in this case) or maybe a different environment is being used inside bamboo-home ...


author: Jeyanthan I
body: This looks like some environment variables are not available for the user running Bamboo. Let's test that by creating a test plan and run the below commands in a shell task choosing Powershell as the interpreter.

```
echo "Full Path"[Environment]::GetEnvironmentVariable("Path")echo "System Path"[Environment]::GetEnvironmentVariable("Path", "Machine")echo "User Path"[Environment]::GetEnvironmentVariable("Path", "User")SET
```

This will just list the contents of each PATH variable and the list of environment variables available for that user.

You can then compare the result by running the same outside Bamboo and spot the difference and define new ones accordingly.

Hope that helps.


Tags: network

npm
Unable to connect bitbucket repository from bamboo
Asked by Manuel Rajkumar:

I am getting below error while connecting to bitbucket repository fron Bamboo

We couldn't connect to the repository. Here's what we got back:

```
Git credentials storage exception.![errorscree shot.png](/t5/image/serverpage/image-id/13842i35366C354B04EB65/image-size/large?v=v2&px=999 "errorscree shot.png")
```


Answers:
author: Christian Glockner
body: Hi Manuel,

I'd look at the **atlassian-bamboo.log** file, which is located in **\<BambooHome\>/logs** immediately after reproducing the issue - most likely this will show you what underlying error occurs and that might give you an idea of where to look.

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: Manuel Rajkumar
body: Thank you Christian! Log folders and other few didn't had enough permission. After restarting with enough folder permission resolved the issue.

Cheers,

Manuel


author: hardik bhansali
body: I have the same issue and it says connection timed out in the logs. Any idea what can I do get around this?


author: Dev
body: Hi Hardik,

I too getting same error. Did you find a way to solve this? Please share if you had found. Thank you


author: ????? ???????
body: Hi

I have the same problem. And I can't solve it. Please help!


author: Nico
body: Make a traceroute to bitbucket.org in my case its a network issue with some router


author: Ayan Paul
body: I can't find any log file in that folder even after immediately![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/107718i2C167E1C97D8F9F8/image-size/large?v=v2&px=999 "image.png") encountering the error in bamboo.


author: deeksha
body: Try the Solution , Gonna definitely work .

While Creating the plan Make sure you have selected below options for Stablishing the configuration with bitbucket

1. Repository host- Link new Repository - Select "Bitbucket Server /Stash"

2. Repository - Select the repository from the drop down

3. Select the desired branch

4. Repository access - Only you

Reason - If This Repository is from any organization it must be private .

5. Configure the Plan.

Note : Below image for the reference .

Happy Learning :)

Please let me know if this works for you .

![BitbucketWithBamboo_TestPLan.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/153080i45661082160C7496/image-size/large?v=v2&px=999 "BitbucketWithBamboo_TestPLan.PNG")
Bamboo build and environment details in Jira
Asked by Seamus Kealy:

At the moment as far as I can see unless you enter the ticket number on a commit in bitbucket you will not get the build and deployment information (bamboo data) in Jira.

If this is the case the its very manual and easy to make typo which then links to the wrong Jira ticket creating a mess.

Are there plans to change is or is there a way to automate without entering the jira ticket number in the commit

Thanks...


Answers:
author: Edwin Kyalangalilwa
body: Hi Seamus,

Is this what you're referring to? If so, there is a **View Development Tools**permission in the permission scheme that you may not have.

![Screen Shot 2018-01-31 at 16.47.30.png](https://community.atlassian.com/t5/image/serverpage/image-id/13726i452DB8C100D1719D/image-dimensions/213x113?v=v2 "Screen Shot 2018-01-31 at 16.47.30.png")

comments: author: Seamus Kealy
body: Hi Edwin

Thank u for the reply

I know about this setting and its set and i see the bitbucket activity as per your screenshot. We use bamboo aswell for deployments but it appears u not see detail in the jira ticket unless u ref the ticket in the commit

Thanks

Seamus


author: Edwin Kyalangalilwa
body: Yes, that is correct.


author: Seamus Kealy
body: Thanks for that ... i was hoping i was wrong as this is quite poor and very open to error


Tags: jira-bamboo-plugin
Cannot see svn commits in Jira issues
Asked by Hristo Stoev:

I need to update version txt file after bamboo release pass. So i've created SVN script which does this, but when the script is running on bamboo server (it is as add as script file), seems that svn call doesn't work. I checked also server folder after the checkout, and svn commit options are missing.

So how could configure bamboo to commit particular file ?


Answers:
author: somethingblue
body: Hi Hristo,

* Do the commits ever show up in JIRA?

If they are delayed that is expected behavior:
> **Cause**
>
> Subversion Changes are shown on JIRA issues once the Subversion Revision Indexing Service is triggered `Administration >> System >> Services`. The time triggered is set to 60mins by default.

You can configure this by doing the following:

**Resolution**

Configure the delay time in `Administration >> System >> Services` so that the latest commit changes on the issues can be displayed in a shorter time.

If they are not showing up at all I would verify the commits have the correct JIRA keys etc. You can use an add-on such as [Commit Policy for Jira (Git, SVN, Hg)](https://marketplace.atlassian.com/plugins/com.midori.jira.plugin.jira-commit-policy-plugin/overview) to check this.

Once you verify the commits are correct and have proper issue keys, etc., let me know and we'll go from there.

Cheers,

Branden

comments: author: Hristo Stoev
body: Hello Branden,

thank you for your answer.

I think i did not explain very clear. Issue is that i cannot make SVN commit with PS script and when i log to bamboo server i don't even see SVN Commit options in the context menu of Tortoise. Some bamboo remove the SVN link when it make checkout.   

best regards,   
Hristo


Tags: svn
1) step to create ear file in unix machine.2) How to publish that ear in to artifactory
Asked by salamon pradeep:

1) step to create ear file in unix machine.2) How to publish that ear in to artifactory


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Depends on your project. If you use Maven, there is a Maven task in Bamboo. Same case with Ant. Or, at least, you can use the script task to create the EAR.

Publishing to artifactory also can be done using Maven. Or you can use the Bamboo artifactory plugin.

comments: author: salamon pradeep
body: Thanks for your reply and quick response.

See i am using build.xml - ant script only..

Can u provide me some steps, since windows machine successfully i am able to generate ear file and published.

But for unix machine i need to generate ear file. So for unix machine prespective how and step to create ear and copy into unix machine


author: salamon pradeep
body: can u share me any screen shot or steps need to follow for

1) Create a ear file in AIX machine using ant script.

2) how to publish ear in to artifactory.

3) how to deploy published artifactory in to some web server

Waiting for your kind response


author: Jobin Kuruvilla [Adaptavist]
body: Sorry, I do not have the set up to show you with the help of screenshots. It is just an idea for you to try out :)
Quarantined test not working cause test case ID different each time
Asked by Lei P:

```
Hi,  

?

We ran into a very strange test quarantine issue, basically we quarantined a failed test, and later the same test will be failed again with a different testcase ID. 

We will need to quarantine it again, this end up with we need to quarantine a test each time the Plan is running.  Which end up with duplicated testcases in quarantined tests. 

And take one test for example. From the URL, test ID seems to be 323063640, 323073025, and 323080843.

?

Any idea what could caused this?

Bamboo server is 6.0.5  

?

Thanks!  
```


Answers:
author: Lei P
body: ![2018-01-31_0903.png](https://community.atlassian.com/t5/image/serverpage/image-id/13646i69F6899FA1E1FA3A/image-size/large?v=v2&px=999 "2018-01-31_0903.png")
Value for Path When Adding a built-in Git Capability
Asked by ru_eas_sims2:

When defining a Git capability on a Bamboo (local/Solaris) server, I am trying to evaluate the default built-in Git implementation. Here are my parameters on the Server capabilities page:

Capability type == Git

Executable == Git

Path == \<\<??\>\>

I am wondering what the value should be for the built-in Git implementation? While I can ask to install a Git onto the server, the documentation said "... Note that Bamboo comes with its own built-in Git implementation. However, you need to use native Git to be able to use symbolic links, submodules, automatic branch detection and automatic merging - these are not supported by the built-in Git."


Answers:
author: Marcin Gardias
body: If you want to use Bamboo built-in implementation of Git, simply _do not_ define any Git executable.

That being said, I really recommend installing git executable and using that. Built-in git comes with number of limitations and we actually consider removing it from the product as in our own experience using official Git executable is much more reliable. All Bamboo servers in Atlassian are configured with external git capability.

comments: author: ru_eas_sims2
body: Thanks, Marcin.

I was able to use the built-in Git connecting to BitBucket. We are having an In-house Git server as well. I guess there are some network settings preventing the test case. Definitely will try to use a self-installed Git executable, which will at least keep the same version.
buildplan rewrite
Asked by Alex Koolschijn:

Do we need to rewrite all our build plans when upgrading to bamboo 6?


Answers:
author: Ellie Z _they_them_
body: Hi there,

Thanks for reaching out to the Atlassian Community!

When upgrading to Bamboo version 6, you will not need to rewrite your build plans.

Please see the [Bamboo Upgrade Guide](https://confluence.atlassian.com/bamboo/bamboo-upgrade-guide-720411366.html) for more details on the upgrade process. In most cases, you should be able to upgrade directly from Bamboo 5.x to the latest.

I hope this helps. If you have any other questions, please do not hesitate to reach out!

Cheers,

Elias \| Bamboo Support
Is Bamboo being discontinues
Asked by Stan:

Is Bamboo being discontinued in favor of bitbucket?


Answers:
author: Mathieu Yargeau
body: Bamboo and Bitbucket are different products to satisfy different needs. There is no way they will discontinue one in favor of the other.


author: Jeyanthan I
body: Absolutely not. Bamboo is actively being developed and new releases are happening almost every 2 weeks as you see in our [download archive](https://www.atlassian.com/software/bamboo/download-archives). Could you please elaborate what made you think that way?

If you got this thought due to Bitbucket Pipelines, you may find it answered [here](https://community.atlassian.com/t5/Bitbucket-questions/Will-Bitbucket-Pipeline-eventually-replace-Atlassian-Bamboo-6/qaq-p/667139).


Tags: atlassian-support

bitbucket-pipelines
i updated the value for global variable. but it is not reflected. it's still taking old value
Asked by Subin Shrestha:

i had set database server name as global variable. now, the database server is changed and i updated the global variable with new value (database name). but the build plan is still taking the old value. how can i fix this issue?


Answers:
author: Jeyanthan I
body: Can you check if you have plan variable configured with the same name?

Note that plan variables override global variables with the same name.
Hi, how do I connect a clean Bamboo installation to existing database?
Asked by moreservice:

Our server crashed so we are installing a clean server and want to connect it to a existing database. (MS-SQL)


Answers:
author: Jeyanthan I
body: If you are installing Bamboo fresh, it is sufficient to follow our usual [installation instruction](https://confluence.atlassian.com/display/BAMBOO/Installing+Bamboo+on+Windows).

Once installed, you may change your database settings by editing this file - `<Bamboo-Home>/bamboo.cfg.xml`file as explained [here](?https://confluence.atlassian.com/bamboo/changing-bamboo-database-settings-289277406.html).

If you intend to restore the old instance by connecting to your old database, it is essential to restore \<bamboo-home\> as well to your previous working state.

comments: author: moreservice
body: Tnx, installed Bamboo 6.0 and created a backup. But can I connect a 6.0 database to a new installed 6.3 Bamboo? Or do I have to import the from the import to a new database?


author: Jeyanthan I
body: > But can I connect a 6.0 database to a new installed 6.3 Bamboo

Generally, the upgrade instruction goes like this as mentioned in [this documentation](https://confluence.atlassian.com/bamboo/bamboo-upgrade-guide-720411366.html).

* Unzip the [latest archive](https://www.atlassian.com/software/bamboo/download).
* Point bamboo.home variable in this file \<*bamboo-install-dir\>/* atlassian*-bamboo/WEB-INF/classes/bamboo-init.properties* to your old home directory location.

The upgrade runs automatically referring to the old database that you have configured in your *\<Bamboo-Home\>/bamboo.cfg.xml*.

Hope that clarifies.
contents of the file's name are not visible in the selection fields
Asked by Roman Yumashev:

Hello,

When choosing a file on Bamboo pages, the entire contents of the file's name are not visible in the selection fields, as a result of which it is not known what files are selected


Answers:
author: Alexey Chystoprudov
body: Can you please provide information about Bamboo version, browser and its version and screenshot of issue

comments: author: Roman Yumashev
body: the problem is in

* Bamboo version 6.2.5 build 60212 - 06 Dec 17
* browser Chrome version 55.0.2883.87 m
* browser IE 11 version 11.0.9600.18537CO (update 11.0.38)

![image003.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/13558i92AA770E9A4F6C98/image-size/large?v=v2&px=999 "image003.jpg")


author: Alexey Chystoprudov
body: So problem is that it's hard to choose correct release as several releases have the same long name part. It would be more convenient if release chooser shows full name of release without trimming.

Does it correct description? After you confirmation I'll report Improvement request at jira.atlassian.com


author: Roman Yumashev
body: Exactly as you wrote


author: Alexey Chystoprudov
body: <https://jira.atlassian.com/browse/BAM-19652>
Bamboo build plan in a loop after using maven release
Asked by Deepak:

Hi,

I have a bamboo CICD pipeline using maven build and release. Have created a trigger of type "Repository triggers the build when changes are committed" and my repository is Stash.

Whenever there is a change in my repository, build pipeline is getting triggered. Last step of my build pipeline is maven release which updates and checks in the pom file. This check-in is in turn invoking the pipeline resulting in a loop. Is there any way this loop can be stopped by not invoking the pipeline for pom file changes checked in by bamboo?


Answers:
author: Deepak
body: Since this issue was due to the commit message format. I had added a custom commit message in commit hooks and allowed maven release to check-in the files using default commit message beginning with \[maven-release-plugin\]. This resolved the issue.


author: Steffen Opel _Utoolity_
body: This can be achieved via the advanced option **Include/Exclude Files** when you configure a source repository in Bamboo, see section 'Change detection options' within [Bitbucket Server](https://confluence.atlassian.com/bamboo/bitbucket-server-779302738.html) (formerly Stash):
> Allows you to specify the files that Bamboo should, or should not, use to detect changes. When you configure the Include option, it means that you want Bamboo to use **only** the mentioned files for change detection (by default Bamboo checks all the files). In the same way, if you configure the Exclude option, Bamboo will not consider the excluded files when detecting changes.
>
> Enter into **File Pattern** a [regular expression](http://download.oracle.com/javase/1.4.2/docs/api/java/util/regex/Pattern.html) to match the files that Bamboo includes or excludes. The regex pattern must match the file path in the repository. See [this page](https://confluence.atlassian.com/bamboo/_planrepositoryincludeexcludefilesexamples-289277478.html) for examples.

comments: author: Deepak
body: Hi Steffen, Thank you for the response. Guess the above mentioned option excludes matching files checked in by all users but I need to exclude only the checkins made by Bamboo. When a user checks in pom file, build should still be triggered automatically. Is it possible to ignore checkins made by Bamboo alone?

From the information I have got, Bamboo always ignore the commits starting with "\[maven-release-plugin\]" by default. Since I had pre commit hooks which checks for the commit messages, I have added a different commit message for the files checked in by maven release. This might be a reason why Bamboo is not ignoring these checkins.

Is there any way that Bamboo can ignore commits with certain pattern?


Tags: continuous-delivery

maven
Using ssm send-command with a Script named "NUnit Runner" throws error
Asked by Jeremy Roelfs:

Can someone confirm this?

If you make a Script Task

* Name it "Run Test"
* Any interpreter
* inline

And in the script use the aws ssm send-command --instance-ids "\<id\>"

Make sure it passes when you run the plan.

Now go and change the Name of the Script Task to "NUnit Runner"

When you run the plan again you will receive this error:

```
Parameter validation failed:
Invalid length for parameter InstanceIds[0], value: 19, valid range: 10-10
```

Once the Script fails on this error. It will continually fail no matter what you name it. You must remove the send-command or create a new script.

I think it is a bug.


Answers:
author: somethingblue
body: Hi Jeremy,

I found a post that may explain this behavior, however, it's interesting this only happens if you rename the task.

If you run the same command from terminal do you get the same behavior? In case the instance id is causing the problem it would happen in the terminal too.

Let me know and we'll go from there.

Cheers,

Branden

comments: author: Jeremy Roelfs
body: I do not seem to have any issues running it in cmd or powershell. But if my credentials are not set correctly, then it does throw an error on that instance-id.

**EDIT:** Not the same Parameter error though.

I'll try to reproduce and map my exact steps.


author: somethingblue
body: Thanks Jeremy. Let me know the exact steps and we'll go from there.


Tags: aws

error

nunit
No such file or directory installing Bamboo
Asked by jeremybooj:

/Users/mobile/Downloads/atlassian-bamboo-6.3.1/bin/catalina.sh: line 429: /Library/Java/Home/bin/java: No such file or directory

Im getting this when trying to install bamboo I did check and $JAVA_HOME is displaying a path


Answers:
author: jeremybooj
body: So I just set java home to a location on the web which suggested that I needed to set JAVA_HOME=/Libarary/Java/Home   

that was incorrect I needed to run the following command in order to know where to sat the variable JAVA_HOME

/usr/libexec/java_home -v 1.7
Bamboo Maven Build JDK version upgrade/downgrade using API's
Asked by Sai N:

Hi Everyone,

I am started using Bamboo in my new organization, I am fairly new to Bamboo and API's. I want to know if we can upgrade/downgrade Build JDK version in Maven 3.x using any scripts or API's. Currently we are using Build JDK (JDK 1.7). We have so many builds, so doing it manually might take some time. Please suggest the best practice.  

Please have a look at the picture below. Thanks in Advance.

![Bamboo Maven.PNG](/t5/image/serverpage/image-id/13478i81F77F2E1026281B/image-size/large?v=v2&px=999 "Bamboo Maven.PNG")


Answers:
author: Sai N
body: I am using a script with the use of curl to edit the http form parameters.


Tags: jdk

maven

rest

rest-api