youngmon/atlassian-qna huggingface dataset:
Can I use an ec2 instance I create as a remote agent for Bamboo?
Asked by Paul Sanwald:

For a variety of reasons, I'd like to use a dedicated EC2 instance that I've set up / configured as an agent for running bamboo builds. Searching the forum, it [doesn't look like this is possible with Elastic Bamboo](https://answers.atlassian.com/questions/300904/can-i-link-existing-ec2-instance-to-bamboo-ondemand).

Is there any way I can do this with Atlassian OnDemand?


Answers:
author: Przemek Bruski
body: No, only self hosted Bamboo offers this atm.
How to trigger a dependent plan in Bamboo when using branches
Asked by reikje:

In Bamboo 5.6.1 is it possible to trigger a dependent plan if the parent plan (the plan that triggers) is using the branches features? As far as I understand, you can only trigger a child plan if that child has a branch of the same name. Is that correct? What we want is to trigger the child plan every time any branch in the parent is build without having to duplicate all the branches.

PARENT (branch FOO, branch BAR) -\> CHILD


Answers:
author: Steven Castelein
body: I do have a related scenario. So we're working with JGitflow on 2 projects. ProjectA has a branch Super Cool Feature. Project B also has a feature branch that depends on this project by declaring a maven dependency on project-a-super_cool_feature-1.0.0-SNAPSHOT .

So if a developer pushes changes to Project A's feature branch, I expect that the feature branch of ProjectB is built as well.


author: reikje
body: In our specific case, the MASTER branches are creating an RPM file that needs to be uploaded to S3 and our YUM repository needs to be refreshed. Previously we were doing this as task of each build but now the YUM repository has gotten too large so that this step takes too long. Instead each MASTER branch will create it's RPM artifact and move it to a shared location. Then the idea is to have a dependent CHILD that handles the S3 upload YUM repository updates. This CHILD doesn't really care about branches since it will work on the RPM files in the shared location.


author: Ted Schlossmacher
body: I too have this use case. Has it been implemented yet?


author: Divin Honnappa
body: @Krystian Brazulewicz  

Is this scenario still not being considered?

In my scenario, I'll be having lot of plan branches for release (one or two for each sprint) and hotfix and since the plans and deployment projects have one to one relation, it's a manual process and a pain to do deployment process.

For Continuous Deployments from branches, it would be really helpful if we can have automatic trigger update with active branches in deployment or if we can have the described scenario.

Thanks,

Divin


author: Krystian Brazulewicz
body: Reik

Bamboo works exactly as you described:
> As far as I understand, you can only trigger a child plan if that child has a branch of the same name.

We haven't considered scenario you have described:
> we want is to trigger the child plan every time any branch in the parent is build

Can you please describe your usecase more? I mean what are the reasons to build a single branch of CHILD whenever any branch of MASTER will be updated?

comments: author: krishna vaitla
body: We have same issue:

Plan A with (branch FOO , branch BAR) --\> trigger upon successful completion Plan B(without branches)

Plan A (has release and dev branches and developers want us to build both branches at different time we will use trigger to do this ) --\> after build is successful it needs to trigger PlanB (Regression jobs that will run on both parent branches at different time)


Tags: bamboo-administration
[Bamboo] Clean up Bamboo logs
Asked by Alexandr_Sirotkin:

Some times ago we migrated to new server. I noticed that our C:\\bamboo-home\\xml-data\\builds\\

folder eats about 25 Gb. And looks like some subfolders relate to plans which were deleted or not in use. Also Im not interested in old logs. How can I delete unused subfolders and old logs?

Any help?


Answers:
author: Alexandr_Sirotkin
body: Please help...


Tags: bamboo-administration
Plastic SCM does not appear as "Repository host"
Asked by Luis Luis:

Hello,

I'm testing the Plastic SCM plugin in Bamboo 5.6 and adapting it to the new eventual changes in API or functionality. Everything seems to work fine but the plan configuration, where users set the "Repository host". Plastic SCM is not listed in there (after that you can select it in the "Repositories" tab of the plan).

What do I need to do in order to make "Plastic SCM" be listed there as a Repository host? I've searched for information but found anything...

Thanks!


Answers:
author: Krystian Brazulewicz
body: Does your repository class implement StandaloneRepository?


author: Krystian Brazulewicz
body: GitRepository implements StandaloneRepository by extending AbstractStandaloneRepository. I guess this is the recommended way.Unfortunately we do not provide additional documentation for developers. You can of course obtain a source code for the whole Bamboo as mentioned on the <https://www.atlassian.com/software/bamboo/download>


author: Luis Luis
body: No it doesn't; could you point me to the proper documentation about what needs to be done? I've downloaded the Git plugin source code and it doesn't implement StandaloneRepository, either.

Maybe you mean "AbstractStandaloneRepository"?

Thanks for your help


Tags: plastic

source-control
Feature branch builds should only execute unit test stage automatically
Asked by Joachim Seibert:

In my bamboo instance I have configured a build plan that builds the master branch and all Feature-Branches ("feature\*") automatically.

To reduce load on the build machines I want to configure the plan, so that within a feature branch build only the first (unit test) stage of the build will be executed automatically. The second (integration test) stage should have to be executed manually by the developer if needed.

How can I do that within one build plan? Or is the only solution to create another build plan?

(Bamboo v5.6.2)


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Yes, you will have to create another build plan I guess. And since it is about integration tests, maybe you don't need one for each feature branch but have one only for the master?

i.e. the plan branches will only execute unit tests. Master branch will also execute only the unit tests. Then you have an integration build plan, which is also pointed to master, that will execute integration tests. Will that work?

comments: author: Joachim Seibert
body: OK, it seems as if another build plan is needed. I think I will copy the existing "master" build plan for the feature-branch builds and reconfigure this copy so that the second stage needs manual interaction. Another nice feature would be, if the second stage could be triggered by the content of the commit comment ("my commit test (IT)"). So the developer doesn't need to go to the bamboo gui to start the stage...


Tags: bamboo-administration
Cannot use ssh to checkout code with bamboo
Asked by NicholasL:

Is there any plan to add the capability to check out source code using SSH in bamboo on-demand using shared credentials? Currently you cannot do this and it causes many headaches in the build modifications with multiple repos to check out.


Answers:
author: Krystian Brazulewicz
body: OnDemand firewall only allows HTTPS connections to the outside world. Therefor SSH connections will be blocked. My knowledge is that this is not gonna change any time soon.

What kind of repositories are you using and what are exactly the problems with shared credentials and HTTPS?


Tags: cloud
Team Segregation - Bamboo
Asked by Clinton Smith:

Is it possible to segregate development teams in Bamboo?

I.E

Two teams, Team 1 and Team 2

Team 1 cannot see Team 2's plans and vice versa.

We are looking to POC Bamboo to see if it will work for CI at an enterprise scale. We will have hundreds of teams, all should only be able to see their own plans.

We would also need to have governance implemented. Such as approvals before a production deployment and seperation of duties (whomever approves to deploy to production will not be able to perform the actual deployment).

Any insight would be great.


Answers:
author: Krystian Brazulewicz
body: This feature is on our roadmap (permission for approving releases before deployment) but I'm unable to tell now when we'll ship it.

comments: author: serge_poueme
body: Hello. We are looking into a similar use case, since we are going through ISO compliance work. We would like to add an approval step before a production deployment, that step would be condititional to the successful deployment and testing of a release in staging. Is it possible to track that feature request from your roadmap so that we can plan accordingly ?


author: Clinton Smith
body: Perfect. Thank you.

How about the seperation of duties? Can an approval step be setup before a production deployment that does not allow the approver to deploy to production?


author: Krystian Brazulewicz
body: Clinton

I think this documentation covers your question: <https://confluence.atlassian.com/display/BAMBOO/Users+and+permissions>

In short: yes we implement plan permissions and we also allow authenticate/authorize users with LDAP directory.


author: Samuel Cameron
body: Yes. Access is controlled through groups. You just put them into different groups and remove access for the groups "Anonymous users" and "Logged in users".
endless running build with local agent
Asked by SysOps AIJKO:

Hi,

we have many projects running without errors. But sometimes we have a build process dying the agent is running and doesn't react to 'Stop build' command. The process was working for man builds and hasn't changed.

There is no error in build log and in bamboo log file.

The only way to end this process at the moment is to stop bamboo, kill all task of the bamboo user and start bamboo again.

Is there a way to end the process without killing bamboo or identify the real problem?

thanks


Answers:
author: SysOps AIJKO
body: Hi Sepideh,

We use Atlassian Bamboo version 5.6.0 build 4409.

The build was not queued. We have always free agents. The build is triggered by a commit in stash and the agents starts with the checkout from our stash.

The last lines of build log:  
*Submodule path 'Web/typo3conf/ext/realurl': checked out '994d051777f02da782bac0e170c5e80946a418e8'* *Initialized empty Git repository in /var/atlassian...*

last line of bamboo log for this build  
*...\[VcsCheckoutTask\] PROJECT-JOB1-128: Updating source code to revision: c3392...*

When i try to stop the agent i get an exception like 'Agent doesn't react to kill command' and nothing happens. Maybe it is a problem in communication between bamboo and stash.

Thanks!

comments: author: ssetayeshfar
body: Hi Julian,Can you please open a support ticket at <https://support.atlassian.com> and link to this question? As also noted by my colleague Krystian, we need to do more investigation for this issue.Thank you.Cheers,Sepideh


author: ssetayeshfar
body: Hi Julian,

Is the build picked up by the agent when you are trying to stop it or the agent dies when build is queued: <https://jira.atlassian.com/browse/BAM-14611>? What version of Bamboo are you using?

Thanks!

Best,

Sepideh

comments: author: Krystian Brazulewicz
body: I think this might require more investigation and qualifies for support case.


Tags: bamboo-administration
Problem with sudo cp an artifact to another location: No such file
Asked by S?ren Kornetzki:

I would like to sudo cp the downloaded artifact into the final deployment location. Unfortunately cp complains that it cannot find the file but looks in the very same working directory. Due to a debugging session I also insert a ls-debug task between artifact download and sudo cp. The file is there. Can anybody help me to solve this?

Snippets from the build log:

```
Preparing to download plan result TSDE-TSDE-1 artifact: Shared artifact: [TSDE Distribution Artifact], pattern: [Tomatenstau-de-*.tar.gz]Artifact [TSDE Distribution Artifact] downloaded successfully in 0s to working directoryFinished task 'Download release contents' with result: Success
```

```
Starting task 'DEBUG' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'...bamboo_build_working_directory=/srv/atlassian/data/bamboo/xml-data/build-dir/819202-950274...-rw-r--r-- 1 atlassian atlassian 9.1M Sep 17 10:53 Tomatenstau-de-0.001.tar.gz...Finished task 'DEBUG' with result: Success
```

```
Starting task 'Copy distribution artifact to the deplyment stage' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.command'...bamboo_build_working_directory=/srv/atlassian/data/bamboo/xml-data/build-dir/819202-950274...cp: cannot stat `Tomatenstau-de-*.tar.gz': No such file or directoryFailing task since return code of [/usr/bin/sudo cp -f Tomatenstau-de-*.tar.gz /home/meik/tomatenstau.de/deploy-me/] was 1 while expected 0Finished task 'Copy distribution artifact to the deplyment stage' with result: Failed
```


Answers:
author: Krystian Brazulewicz
body: Your *Copy distribution artifact to the deplyment stage* task is a Command task. Arguments to Command task are not shell expanded, it means that you are actually executing a command that you'd write in the shell like this:

```
/usr/bin/sudo cp -f 'Tomatenstau-de-*.tar.gz' '/home/meik/tomatenstau.de/deploy-me/'
```

and of course you don't have a file named `Tomatenstau-de-*.tar.gz`

I'd suggest using script task for the other task as well.

comments: author: S?ren Kornetzki
body: I use the script task an it works. Please let the PM notice that this information would have a major value when mention it within the script task box.


author: Krystian Brazulewicz
body: Thx for the suggestion, I passed it to our tech writer.


author: Przemek Bruski
body: that ls-debug - are you running it through sudo?

comments: author: S?ren Kornetzki
body: No. Do you think sudo is changing working directory? I will try it too.


author: S?ren Kornetzki
body: {{sudo ls -ahl}} will produce the same output as the normal {{ls -ahl}} does.


Tags: bamboo-administration

bamboo-deployment
Bamboo is hung while activating
Asked by P?l Brattberg:

I have activated a trial of Bamboo, but it hangs on "Bamboo is currently activating." and have been there for several hours.

How can I reset my trial or find out how to get it working?


Answers:
author: Krystian Brazulewicz
body: There could be multiple reasons for this behaviour and it is hard to tell without at least looking at the logs.

In cases like this (Bamboo instance down) the best way to get your answer is to contact Atlassian support <https://support.atlassian.com/servicedesk/customer/bsp>

comments: author: P?l Brattberg
body: Thanks, have filed a support case.


Tags: trial
Deployment Plan to deploy PHP website onto Windows Server 2008 on Cloud
Asked by Rajesh Kandepu:

Hai All,

I want to know whether we can use bamboo to create a deployment project to deploy a PHP website onto Windows Server 2008 on CLOUD.

Regards,

Rajesh Kandepu


Answers:
author: Rajesh Kandepu
body: Could you please provide a link explaining about deploying to cloud from Atlassian documentation.

comments: author: Krystian Brazulewicz
body: RajeshI'm unable to answer this question until you provide more specific information. Deployment procedures depend on type of cloud provider, type of application, application server and probably many more factors.


author: Krystian Brazulewicz
body: If you can do it from commandline then you can automate it with Bamboo.
I am using MSTest Runner to run the unit tests. However, I need to pass /category parameter to it. The MSTest Runner Task in Bamboo does no seem to have this option, can someone assist me please?
Asked by Awais Ahmed Awan:

I am using MSTest Runner to run the unit tests. However, I need to pass /category parameter to it. The MSTest Runner Task in Bamboo does no seem to have this option, can someone assist me please?


Answers:
author: Krystian Brazulewicz
body: Looks like we do not provide such functionality. Alternative options are:

* can you specify the category using environment variable? If so then you might use *Environment variables* field in task configuration
* using script task

I've also created an improvement request on your behalf: <https://jira.atlassian.com/browse/BAM-15032>. Please vote on this to increase its visibility.

comments: author: Awais Ahmed Awan
body: Thanks for your answer, I really appreciate it. I have not explored using the environment variables. However, I am using script task as an alternative for now. But the annoying thing with the script task is that, bamboo does not know, by default, the results of the tests (passed/failed).Do you happen to know a way around that? If I use an MStest Parser in conjunction with the test runner, will it do the said bit (where bamboo tells you upfront how many tests were passed/failed, etc). Have you used this combination, or do you have some suggestion regarding this?Many thanks.Awais


author: Krystian Brazulewicz
body: That's exactly what the MSTest parser task will do. It will analyze file produced by mstest.exe and feed Bamboo with data on passed/failed tests


author: Awais Ahmed Awan
body: but there is a small problem, if the tests are failing, the parser task does not get executed, or at least does not update the bamboo. Am I missing something? I dont see a point if the parser just shows 100% passed tests.


author: Paul Mateos
body: Hi Awais. You mentioned that you have got this working by using a script task. can you please provide us with what you implemented. Thanks


author: Matthias Kolbe
body: yes, this would really be great because the output of mstest runner always stops the process ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")


author: HURRICANE Support
body: run it as a final task


Tags: bamboo-administration
reset password
Asked by desarrollador4:

Hi

I am triying to reset my password.

But I don?t receive the reset link on my email (corporative gmail).

I tried many times, I already checked on spam folder too

I really need to reset it ASAP

Thanks


Answers:
author: Theodora Boudale
body: Hi [@desarrollador4](/t5/user/viewprofilepage/user-id/4860566),

Is the email with the issue the same one as the email of your community account?

This email address is not in any of our suppression lists. I also triggered a password reset email for you just a few minutes ago, and our logs show that it has been delivered to your mail server. Have you received that one?

In case this concerns a different email address, are you able to log in to <https://community.atlassian.com/> with that email and leave a reply here? I will then be able to view the email address of this account and check if it is in any of our suppression lists.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Bitbucket pipeline - How do i skip the deploy step to Dev & directly deploy to required environment.
Asked by Chanakya:

Bitbucket Pipeline : Is there any way to skip the deploy step to the Dev environment \& directly deploy to Stage / prod environment using manual triggers

Like in Gitlab pipeline, we can directly deploy to which ever environment we like dev/stage/prod etc.. by skipping the deploy step to Dev/stage using manual triggers after the build is succeeded.

Below is my pipeline, here i directly want to deploy to stage after build and i want to skip the Dev deploy step.

```

image: node:14.17.1 

pipelines:
  branches:
    develop:
      - step:
          name: build
          script:
            - ......
          artifacts:
            - .....
      - step:
          name: DEV-Deploy
          deployment: Dev
          trigger: manual
          script:
            - .....
      - step:
          name: STAGE-Deploy
          deployment: Stage
          trigger: manual
          script:
             - .....
```

Please advise..

Thanks


Answers:
author: Ben
body: Hey Chanakya,

If you would like to set up a manual trigger to deploy to an environment such as staging/production - you can try using the "custom" tag within the bitbucket-pipelines.yml file.

The "custom" tag allows you to select the pipeline step whenever you like manually from the drop-down list within **Repository \> Pipelines \> Run Pipeline**- you can run this against any branch within your repository accordingly.

More information can be found here:  
**<https://support.atlassian.com/bitbucket-cloud/docs/configure-bitbucket-pipelinesyml/>**

For example:

```
 custom:
? ?manualdeploy:
? ?  - step:
? ? ?name: 'Manual Build'
? ? ?deployment: staging
? ? ?script:
? ? ?- <Script goes here>
? ? ? ? ?
```

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Master Branch No Longer Updated by Pull Requests
Asked by dennis_bembenek:

Our Master Branch Commits stopped updating as of 1.11.22. Pull requests stopped updating the Master Branch at this time. It still allows for Pull Requests to be Merged but they do not update our Master Branch.


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

In order to further investigate what is happening, we would need to check this repository, however, I couldn't find any Bitbucket Cloud account associated with the email you used to create this question. Could you please confirm if this is related to Bitbucket cloud, and in case it is, what is the account associated with this repository?

Thank you.

Kind regards,   
Caroline

comments: author: dennis_bembenek
body: Hello [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) , we actually found the answer to our problem.

Someone had attempted to merge our Master Test Branch to our Master Branch and the merge was not completed. Once we deleted this merge request our issue was solved.

Thank you.


Tags: bitbucket-cloud

cloud
Pipe: SSH run, can I use a file as parameter?
Asked by Rafael F_:

I found this : <https://bitbucket.org/atlassian/ssh-run/src/master/>  

Used to "Run a command or a bash script on your server"  

It accepts string arguments, I'd like to know if I can use a file from the repository as argument somehow?  

That would allow me to leave a docker-compose.yml file on the repository and then use it to create a container on the remote server.


Answers:
author: Ben
body: Hey Rafael,

The ssh-run pipe allows you to execute bash commands and bash scripts. The extra arguments which can be passed through are SSH-based and don't appear to allow you to execute other file types, please see here for the documentation on the ssh-run pipe:  
<https://bitbucket.org/atlassian/ssh-run/src/master/>

The arguments has documentation as well for what can be passed through, this can be found here:  
[https://linux.die.net/man/1/ssh\\](https://linux.die.net/man/1/ssh\)

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Rafael F_
body: Thank you these references will help, I guess I'll copy the files to the destination server and execute the scripts there then.


author: Ben
body: Hey Rafael,

I believe this will be the best solution for you, yes :)

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud

ssh
PR got merged remotely - merge checks were skipped
Asked by David Fanjkuti?:

**EDIT:** ignore this question because we figured it was an error on our end - we disabled the merge check temporarily.*Bitbucket Server v7.17.4*   
Hi, we noticed that a PR that had conflicts got merged remotely while resolving those conflicts. That should not have happened because the PR was not yet passing the merge checks. Why is it possible to merge a PR remotely and avoid the merge checks? In our case the required number of approvals was not reached.


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Thanks for posting your EDIT update. Glad you worked it out! Let us know if you need any help with your SCM process in Bitbucket!

Cheers, Ulrich

[Izymes](https://marketplace.atlassian.com/vendors/1210584/izymes-pty-ltd)


Tags: bitbucket-server

merge

pull-request

server