youngmon/atlassian-qna huggingface dataset:
Automatic build pull-requests from fork
Asked by gotrunko:

Hi,

I'm trying to configure bamboo to automaticly build all pull-requests on some repositories, but I can't find any option to build them when the pull-request is create from a fork. Is there any way to do this without a custom trigger or java code?

Regards

Edit: I'm working with Atlassian Bamboo version 5.4.2 build 4208 and Atlassian Stash v2.12.1


Answers:
author: gotrunko
body: I'm not sure this is a minor issue. How teams can have the best workflow for dev if they can't work like github repositories. We must build pull request before merging them like Travis :/


author: ssetayeshfar
body: Hello Pierre and Robert,

I created the following improvement request ticket for this issue/question:

- [](https://jira.atlassian.com/browse/BAM-14844)<https://jira.atlassian.com/browse/BAM-14844>

Please vote for it and add yourself as a watcher to receive future updates. Also, please feel free to add any details in a comment.

Thanks!

Best,

Sepideh


author: Krystian Brazulewicz
body: That's a good idea. Please create feature request using our public tracker [](https://jira.atlassian.com/browse/BAM)<https://jira.atlassian.com/browse/BAM>

PS.

We've just released Bamboo 5.6 which brings Bamboo - Stash integration to a new level. See release notes: <https://confluence.atlassian.com/display/BAMBOO/Bamboo+5.6+release+notes>


author: Robert Dailey
body: There really should be a way to do this. It's frustrating.


Tags: bamboo-administration
Where is the displayed IP address obtained from?
Asked by Greg Hansen:

Bamboo question: on my General Configuration page, there is a Network section which shows two items: a hostname, and an IP address. The IP address is incorrect. Where does this address come from? Is there a configuration file somewhere that specifies it? Base OS = CentOS 6.4. We recently moved to a new building, and had to reset the IP addresses of all the servers, but it appears that this value didn't get changed. Doing an "ifconfig" shows the correct IP, so it's not getting it from there.


Answers:
author: Greg Hansen
body: It turns out that the /etc/hosts file had a line defining that IP address as related to the name of the machine. Changing /etc/hosts to the correct value solved the problem of the errant IP address. It did not, however, solve the connectivity problem. That was solved by upgrading Stash from 2.11 to 2.12, at which point things started working well.


author: Greg Hansen
body: It turns out that the /etc/hosts file had a line defining that IP address as related to the name of the machine. Changing /etc/hosts to the correct value solved the problem of the errant IP address. It did not, however, solve the connectivity problem. That was solved by upgrading Stash from 2.11 to 2.12, at which point things started working well.


author: rsperafico
body: Hi Greg,

I would kindly ask you to have a look at **Remote Agent Communication with the Server** under [Troubleshooting Remote Agents for further information](https://confluence.atlassian.com/display/BAMKB/Troubleshooting+Remote+Agents "Troubleshooting Remote Agents for further information").

Kind regards,  
Rafael


author: Felipe Kraemer
body: Hi Greg,

I've tried to locate this Network section in a 4.4.1 instance and in a 5.5.0 instance, but none had it. Can you please clarify what is your Bamboo version?

If the IP you mean is the one displayed sometimes in the Base URL, that IP address from the server in which Bamboo was installed for the first time. If your Bamboo instance was migrated to another server, this IP must be updated manually.

Kind regards,  
Felipe Kraemer  
Atlassian Support

comments: author: Greg Hansen
body: Sorry, should have included that to begin with. [Atlassian Bamboo](http://www.atlassian.com/software/bamboo/) version 5.4.2 build 4208 - 03 Mar 14. I'm doing an evaluation, and trying to connect the remote agent to the server, and this may be the issue preventing that. At least, I hope it is! I keep getting "Connection refused", but as far as I can tell the channel between the machines is open. Somthing like this might explain it.


Tags: configuration

ip-address
Check if variable exists
Asked by V:

Is it possible for a bamboo-build to check if a variable exists? I'm having some trouble building a nightly-build-plan which can be run manually, because if it's run manually it passes the ${bamboo.ManualBuildTriggerReason.userName} to my shell-script which executes the nightly build, but if it's run scheduled it exits with an error "bad substitution" because the variable doesn't exist. I'd imagine my problem would be solved if I somehow could check beforehand, if the variable exists and only use it, if it does.


Answers:
author: Kristof Boeykens
body: Perhaps a little bit tool late. There is a workaround.

In your bamboo plan, create a variable with the name: ManualBuildTriggerReason.userName

And leave its value empty.

In your script, this variable will be empty in case of a triggered build.

It will not be empty in case of a manual build.


author: Timothy
body: What happens if you do an if-else in your shell script?

comments: author: V
body: The job wont run, because it exits as soon as I mention the ${bamboo.ManualBuildTriggerReason.userName}-Variable, since it's nonexistant when the job is run automatically.


author: Timothy
body: Mind sharing the script?


author: V
body: I don't think, that the script has anything to do with what I'm asking, but here it is:

```
#!/bin/bashuser=$1;pw=$2;build_plans=(A-A A-B A-C A-D A-E A-F);for plan in ${build_plans[@]}; do        `dirname $0`/bamboo.sh --user $user --password $pw --action queueBuild --build "$plan" --waitdoneexit 0
```

Where bamboo.sh holds the server-info.


author: gwohletz
body: I'm also looking for an answer to this question, i've tried all sorts of ways to test if the bamboo variables exist, but if they do not exist bamboo intercepts things before the script is even run which is very annoying.


Tags: bamboo-administration
Import into Bamboo from other CI Tools
Asked by rahuldanwade:

Please tell how can I import into Bamboo from other CI tools like Hudson,Jenkin, CruiseControll  
Apache continuum etc?

In Bamboo Docs only importing data from Jenkins has been provided.


Answers:
author: Felipe Kraemer
body: Hello Rahul,

It's currently impossible to import into Bamboo from Hudson and from CruiseControl. Please vote and add any comments to these improvement requests below:

[](https://jira.atlassian.com/browse/BAM-12797)<https://jira.atlassian.com/browse/BAM-12797>

[](https://jira.atlassian.com/browse/BAM-1901)<https://jira.atlassian.com/browse/BAM-1901>

As you've realized, it's currently only possible to import from Jenkins:

[](https://confluence.atlassian.com/display/BAMBOO/Importing+data+from+Jenkins)<https://confluence.atlassian.com/display/BAMBOO/Importing+data+from+Jenkins>

Kind regards,  
Felipe Kraemer  
Atlassian Support


Tags: bamboo-administration
Installing bamboo remote agent on mac machine
Asked by Mujahed:

Is there any procedure or document is there for the Agent installation on mac machine.


Answers:
author: Felipe Kraemer
body: Hello Mujahed,

Please follow this installation guide:

[](https://confluence.atlassian.com/display/BAMBOO/Bamboo+remote+agent+installation+guide)<https://confluence.atlassian.com/display/BAMBOO/Bamboo+remote+agent+installation+guide>

The procedure is the same for Mac, Linux and Windows operating systems.

Kind regards,  
Felipe Kraemer  
Atlassian Support
Bamboo not artifacting empty folders
Asked by Stephen Kestle:

We have build agenst that are not putting empty folders in their artifacts. Our artifact mask is \*\*/\* so it should put everything in.

What should we be looking at to determine why these folders aren't getting copied?

(Bamboo 5.3)

*Thankfully the local build agent works, so we've put that restriction on for now.*


Answers:
author: rsperafico
body: Hi Stephen,

Would be possible to to give it a try by replacing \*\*/\* by \*\*, please?

Kind regards,  
Rafael

comments: author: Stephen Kestle
body: Nope - same result. What library is it using to do these globs - is it really ant? Could it possibly depend on what ant is on the system classpath or something?


author: Przemek Bruski
body: It's really ant library and no, we're not using system ant. We are aware that there's an issue with empty dirs - they are sometimes included, sometimes not, depending on OS.


author: Si Moahmmed MZIRDA
body: I have the same issue with the latest version of bamboo [Atlassian Bamboo](http://www.atlassian.com/software/bamboo/) version 6.0.3 build 60004 - 07 Jun 17 on a Windows 7 machine,

do we have a fix ?


Tags: artefact

bamboo-administration
Bamboo ANT build fails yet Bamboo claims success
Asked by Marc Benstein:

I have a build which failed with a compile error using ANT 1.9.3 with Bamboo 5.4 build 4206. However, Bamboo claims the build was successful. Why did Bamboo not detect the ANT failure even though the log clearly says BUILD FAILED? Could this be related to the fact that I build a jar, run unit tests, then build a jar and run unit tests?


Answers:
author: Marc Benstein
body: The process of compile, test, compile, test, etc was causing Bamboo to believe the build was successful. By changing the build to compile, compile, compile, test, test, test fixed the issue of Bamboo believing the build was sucessful.

Previous build file process:

1. compile src for project a
2. create a.jar
3. run tests for a.jar
4. compile src for project b
5. create b.jar
6. run tests for b.jar

Fixed build file process:

1. compile src for project a
2. create a.jar
3. compile src for project b
4. create b.jar
5. run tests for a.jar
6. run tests for b.jar


author: rsperafico
body: Hi Marc,  

Would be possible to provide your *build.xml* file so we can identify the steps you are taking to run your build, please?

Please, find below a sample *(build.xml)* to a project I have created:

```
&lt;project name="HelloWorld" basedir="." default="main"&gt;	&lt;property name="src.dir" value="src" /&gt;	&lt;property name="build.dir" value="build" /&gt;	&lt;property name="classes.dir" value="${build.dir}/classes" /&gt;	&lt;property name="jar.dir" value="${build.dir}/jar" /&gt;	&lt;property name="main-class" value="sample.HelloWorld" /&gt;	&lt;property name="lib.dir" value="lib" /&gt;	&lt;path id="classpath"&gt;		&lt;fileset dir="${lib.dir}" includes="**/*.jar" /&gt;	&lt;/path&gt;		&lt;path id="application" location="${jar.dir}/${ant.project.name}.jar" /&gt;	&lt;target name="clean"&gt;		&lt;delete dir="${build.dir}" /&gt;	&lt;/target&gt;	&lt;target name="compile"&gt;		&lt;mkdir dir="${classes.dir}" /&gt;		&lt;javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath" includeantruntime="false" /&gt;	&lt;/target&gt;	&lt;target name="jar" depends="compile"&gt;		&lt;mkdir dir="${jar.dir}" /&gt;		&lt;jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${classes.dir}"&gt;			&lt;manifest&gt;				&lt;attribute name="Main-Class" value="${main-class}" /&gt;			&lt;/manifest&gt;		&lt;/jar&gt;	&lt;/target&gt;	&lt;target name="run" depends="jar"&gt;		&lt;java fork="true" classname="${main-class}"&gt;			&lt;classpath&gt;				&lt;path refid="classpath" /&gt;				&lt;path location="${jar.dir}/${ant.project.name}.jar" /&gt;			&lt;/classpath&gt;		&lt;/java&gt;	&lt;/target&gt;	&lt;target name="junit" depends="jar"&gt;		&lt;junit printsummary="no"&gt;			&lt;classpath&gt;				&lt;path refid="classpath" /&gt;				&lt;path refid="application" /&gt;			&lt;/classpath&gt;			&lt;batchtest fork="yes"&gt;				&lt;fileset dir="${src.dir}" includes="*Test.java" /&gt;			&lt;/batchtest&gt;		&lt;/junit&gt;	&lt;/target&gt;	&lt;target name="clean-build" depends="clean,jar" /&gt;	&lt;target name="main" depends="clean,run,junit" /&gt;&lt;/project&gt;
```

Kind regards,

Rafael
After installing the Bamboo remote agent and starting bamboo services also Bamboo agent is not showing in the online agents list
Asked by Mujahed:

We upgraded our Bamboo server to 5.4.1, after upgradation we are facing the issue while installing the Bamboo Remote Agent on windows machine for the online status, even after starting the services and approvig the access the bamboo agents are not reflecting in the online/offline agent section. For linux its working fine.

Please suggest


Answers:
author: rsperafico
body: Hi Mujahed,  

While you were upgrading Bamboo server, did you remove the Service you were using to start up the previous Bamboo instance? After the installation, have you started Bamboo as a new Service?

Please, notice that Services point to an specific location and by upgrading to a new version, this same service does not get updated. It is required to remove the previous one and install the new one.

If you continue on experiencing issues, I would kindly ask you to open a Support Ticket.

Kind regards,  
Rafael
Error Please select Repository even though I selected previously linked TFS Repository
Asked by Shashank Vaidya:

I added TFS plugin to Bamboo. I have linked the TFS repository from hosted TFS. When I am trying to create plan It gives me error to select the Previously linked repository. I am using TFS repository 1.1.5 and downloaded Trail version of Bamboo


Answers:
author: Sergey Podobry _Stellarity Software_
body: Hi Shashank,

Could you attach a screenshot with the error? Also please, take a look at the bamboo log file. Are there any errors?


Tags: bamboo-administration
Why my Bamboo AWS elastic Instance is suddently deleted?
Asked by Anand Sanklipur:

I have Bamboo on demand. I have noticed that twice my elastic agent got deleted on Moday. Looking for answers found out that many more people are also facing this issue, but did not get a satisfactory answer as to why it is happening and what needs to be done to avoid this issue.


Answers:
author: Przemek Bruski
body: There's an upgrade window on Mondays. If your server is restarted, the instance will be shut down.

comments: author: Anand Sanklipur
body: Why the shut down causes termination of instance and is there any way to avoid this? I have to have many pre-reqs installed before I can build my project. Loosing the instance make me redo all the work.


author: Przemek Bruski
body: There's no way to avoid this atm. Making EC2 instances survive restart will happen eventually, but there's no schedule for it.


Tags: cloud
Firefox on elastic bamboo
Asked by Alex Kane:

I'm trying to install Firefox on my elasticbamboo instance (ami-430a452a) so that I can run selenium tests. None of the methods described in the knowledge base or elsewhere on the 'net are working. Is there a method known to work for this AMI?


Answers:
author: Alex Kane
body: Was able to get the startup script working by doing this:

#!/bin/sh

export PATH=/sbin:/bin:/usr/sbin:/usr/bin

install()

{

apt-get update

apt-get install -y libpq-dev

apt-get install -y firefox

apt-get install -y xvfb

apt-get install -y python-dev

apt-get install -y unixodbc-dev unixodbc-bin unixodbc

apt-get install -y libxml2-dev

apt-get install -y libxslt1-dev

#apt-get install -y fabric -o=DPkg::NoTriggers=true

apt-get install -y python-pip

pip install fabric

pip install cuisine

pip install django-cachebuster

pip install django-celery

}

install \>/tmp/startup.log 2\>\&1


author: Alex Kane
body: I've added the following to the setup script and it looks like it's hanging when trying to install fabric. Is there a way to see the stdout/stderr from the setup script?

apt-get update

apt-get install -y libpq-dev

apt-get install -y firefox

apt-get install -y xvfb

apt-get install -y python-dev

apt-get install -y unixodbc-dev unixodbc-bin unixodbc

apt-get install -y libxml2-dev

apt-get install -y libxslt1-dev

apt-get install -y fabric

apt-get install -y python-pip

pip install cuisine

pip install django-cachebuster

pip install django-celery


author: Alex Kane
body: That works when I login as root via ssh, however I can't get root as the bamboo user when my tests are running.

comments: author: Przemek Bruski
body: Use the instance setup scipt - check Image Configuration screen in Bamboo. This script runs as root.


author: Alex Kane
body: I've added the following to the instance setup script, but it looks like the script is hanging while installing fabric. Is it possible to see the stdout/stderr of the script?

apt-get update

apt-get install -y libpq-dev

apt-get install -y firefox

apt-get install -y xvfb

apt-get install -y python-dev

apt-get install -y unixodbc-dev unixodbc-bin unixodbc

apt-get install -y libxml2-dev

apt-get install -y libxslt1-dev

apt-get install -y fabric

apt-get install -y python-pip

pip install cuisine

pip install django-cachebuster

pip install django-celery


author: Przemek Bruski
body: Use the Ubuntu image and install it using

apt-get install firefox

in the instance setup script.


Tags: cloud
unable to connect bitbucket
Asked by jayaprakash sy:

I am facing in connecting to bitbucket, getting blow error.

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch origin  
remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.  
remote: See our community post for more details: <https://atlassian.community/t5/x/x/ba-p/1948231>  
remote: App passwords are recommended for most use cases and can be created in your Personal settings:  
remote: <https://bitbucket.org/account/settings/app-passwords/>  
fatal: Authentication failed for '[https://bitbucket.org/gvaidya/paybooks.git/'](https://bitbucket.org/gvaidya/paybooks.git/%27)


Answers:
author: Jeff Thomas
body: As of March 1, 2022, you can no longer use your account password for Git authentication. This is explained in more detail in <https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231>  

Following the steps there, you should create an App Password and change the password you're using for the Git operations - <https://bitbucket.org/account/settings/app-passwords/>
I can not pull request from my bitbucket repository, how can i use the app password to pull my repo?
Asked by Hugo Paulo:

I whant to pull request from my repo and i cannot


Answers:
author: Caroline R
body: Hi, [@Hugo Paulo](/t5/user/viewprofilepage/user-id/4798818), welcome to the community!

Before we start, I would like to confirm if you are trying to run a git pull or if you want to create a Pull Request to your remote repository using an API call.

If you are trying to run a **git pull** using an [App Password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/), the first thing you need to confirm is if you are using the HTTPS method (and not SSH) in your local repo. In order to check that, you can run the following command:

```
git remote -v
```

If you see the following structure, this means you are using HTTPS:

```
origin https://{username}@bitbucket.org{workspaceID}/{repository_name}.git (fetch)
origin https://{username}@bitbucket.org{workspaceID}/{repository_name}.git (push)
```

By your description, it seems that the issue you are facing is related to the recent changes with the removal of support for Atlassian account password for operations GIT over HTTPS and API requests.

This was announced in our Blog post [Deprecating Atlassian account password for Bitbucket API and Git activity](https://bitbucket.org/blog/deprecating-atlassian-account-password-for-bitbucket-api-and-git-activity) and shared on multiple email communication sent to our customers in the last few months. This announcement was also included in the terminal message response for HTTPS GIT transactions.

For more details on how to resolve this issue, please refer to our community post here:

* [Bitbucket Cloud account password usage for Git over HTTPS and API ending March 1, 2022](https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231)

This post provides detailed instructions users need to take to help resolve the issue. This community post also provides answers to FAQ, make sure you scroll to the bottom of the page to find the answers.

If after reading the community post you have further questions, please do reach out and we will be happy to help.

Kind regards,   
Caroline


Tags: bitbucket-cloud

cloud
Firebase deployment fails - Not in a Firebase app directory (could not locate firebase.json)
Asked by Phil Beville:

I get this message even though I have a firebase.json file in my root directory?

I have searched the web, including stackoverflow and still can't seem to find a solution. Please assist! ??


Answers:
author: Theodora Boudale
body: Hi Phil and welcome to the community!

I'd like to ask if you could share some additional info so we can better help you:

**1.** Do you use the [firebase-deploy](https://bitbucket.org/atlassian/firebase-deploy/src/master/) pipe to deploy, or are you doing the deployment in a different way?

**2.** Can you add the command **ls -lah** in your bitbucket-pipelines.yml file, right before the command that does the deployment, and let us know if the firebase.json file is listed in the output?

**3.** Could you please provide the full output of the deployment command? (make sure to mask any private/sensitive info in the output prior to sharing it here)

Kind regards,  
Theodora

comments: author: Phil Beville
body: Hi Theodora

Thank you for your reply, I can confirm that I am using atlassian/firebase-deploy:1.3.0, I have added the command but am unable to run the pipe as I have run out of build minutes in my efforts to test and resolve the issue. I do not want to upgrade my plan until I know that this issue is resolved as firebase deployment is critical to the project. Can you please provide me with a few more minutes in order to run the test?

Kind regards,

Phil


author: Theodora Boudale
body: Hi Phil,

I'm afraid that I cannot add build minutes to workspaces, I would suggest debugging this the following way:

**1.** Log in to your Bitbucket Cloud account and create a new workspace for testing purposes  
**2.** Fork your repo under this new workspace (which will have 50 build minutes available)   
**3.** Recreate in the newly forked repo any Pipelines variables you may be using  
**4.** Add the command **ls -lah** in the bitbucket-pipelines.yml file of the forked repo, in the same step that does the deployment, and right before the pipe command  
**5.** Add the variable **DEBUG: 'true'** in the pipe's variables in the bitbucket-pipelines.yml file  
**6.** Then trigger a build for this new repo

Please let us know if firebase.json is listed in the output of ls -lah, and also the full output of the pipe command (make sure to remove or mask any private/sensitive info in the output prior to sharing it here)

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

firebase