youngmon/atlassian-qna huggingface dataset:
Bamboo build is failing with the below error in Bamboo Version 6.0.5
Asked by Mohit Saraf:

Hi Team,

Our Bamboo Builds are failing with the below error after Bamboo Upgrade to version 6.0.5.

The error logs are

```
:14:31	  File "/amp/local/tobld/build-and-deployment-automation/python/create_build_plans.py", line 557, in <module>error	20-Feb-2018 08:14:31	    main()error	20-Feb-2018 08:14:31	  File "/amp/local/tobld/build-and-deployment-automation/python/create_build_plans.py", line 500, in mainerror	20-Feb-2018 08:14:31	    build_plan.add_group_permission(group, group_permission='READ')error	20-Feb-2018 08:14:31	  File "/amp/local/tobld/build-and-deployment-automation/python/packages/Bamboo.py", line 361, in add_group_permissionerror	20-Feb-2018 08:14:31	    current_groups = self.get_group_permissions(force_refresh=True)error	20-Feb-2018 08:14:31	  File "/amp/local/tobld/build-and-deployment-automation/python/packages/Bamboo.py", line 383, in get_group_permissionserror	20-Feb-2018 08:14:31	    plan_yaml = self.get_yaml_config(force_refresh)error	20-Feb-2018 08:14:31	  File "/amp/local/tobld/build-and-deployment-automation/python/packages/Bamboo.py", line 157, in get_yaml_configerror	20-Feb-2018 08:14:31	    extracted_yaml = match.group(0)error	20-Feb-2018 08:14:31	AttributeError: 'NoneType' object has no attribute 'group'
```


Answers:
author: somethingblue
body: Hi Mohit,

* Does the script need to run with permissions it's not allowed to?
* If you run the script from the command line does it work?

The only thing the script seems to show are permission issues

* add_group_permission
* get_group_permissions
* current_groups = self.get_group_permissions(force_refresh=True)
* build_plan.add_group_permission(group, group_permission='READ')

Without seeing the script it would be difficult to determine what's going on. The first thing I would check is the permissions of the user running the script during execution and go from there.

I would also take a look at the error ***AttributeError: 'NoneType' object has no attribute 'group'*** . Here is a [StackOverflow article that may help.](https://stackoverflow.com/questions/15232832/python-regex-attributeerror-nonetype-object-has-no-attribute-groups)

Cheers,

Branden

comments: author: Mohit Saraf
body: Hi Branden,

Thank You for your reply!

We are using a python script to automate the process of creating the bamboo build plan. This script is failing after the bamboo upgrade to version 6.0.5.

The issue is not with the permission, because the same script was working fine with the version 5.15.7. The error we suspect is yaml configuration of build plans has changed drastically between v5.15.7 and v6.0.5. Please can you suggest some solution.
Substitute env variable in docker repository field
Asked by sta-szek:

Is there any way to use env variables or anything that can be dynamically configured in repostiory field in docker build task?

e.g. repo/image:{tag}


Answers:
author: Alexey Chystoprudov
body: Yes. It's possible since Bamboo v5.14.4.1. <https://jira.atlassian.com/browse/BAM-15861>

comments: author: sta-szek
body: Yes I saw that issues but it didn't work for me...

The key is I used: ${bamboo_variable} instead of ${bamboo.variable}

It's quite confusing that you have to use \`.\` instead of \`_\` especially when you see in logs:

\`using extra environment variables .... bamboo_variable\`


author: Steffen Opel _Utoolity_
body: You can reference [Bamboo variables](https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html) to achieve that, i.e. something like the following should work conceptually:

```
${bamboo.dockerRepository}/${bamboo.imageName}:${bamboo.buildNumber}
```

Please note that there used to be a few regressions with this in older Bamboo versions (e.g. [BAM-15861](https://jira.atlassian.com/browse/BAM-15861) and [BAM-18282](https://jira.atlassian.com/browse/BAM-18282)), but I think the remaining ones have been addressed as of Bamboo 6.1.


Tags: build

docker

environment-variable
Include/exclude pattern and change detection option
Asked by Anna:

So I have one repo and I have three builds. Repo has front end and back end code.

I am trying to create three builds

1\> FE only

2\> BE only

3\> FE+BE only.

My reqmt is:

\\A\> i want to create a plan branch (on FE_only) for a bitbucket branch only when when changes are made to files in a/x, a/y or z folders of a particular repo.

B\> I also want to create a plan branch on BE_only when a branch "doesn't" change files in a/x, a/y or z

I tried many patterns, but nothing seemed to work. Any pattern I give creates a plan branch in both the above mentioned plans. Can you help me with the regex i should use to implement A and B?

for FE+BE build I'll create a plan branch irrespective of where the change happened. So thats easy.


Answers:
author: Alexey Chystoprudov
body: Exclude/include pattern doesn't work for branch detection. It's possible to use pattern for branch path ![Screen Shot 2018-02-27 at 15.15.34.png](https://community.atlassian.com/t5/image/serverpage/image-id/15904i6D91C8AA08B39A07/image-size/large?v=v2&px=999 "Screen Shot 2018-02-27 at 15.15.34.png")
Bamboo Specs tutorial not running on Bamboo server 6.4
Asked by Kristoffer Granberg Cauchi:

Hello,

The bamboo specs tutorial fails against the 6.4 server.

<https://confluence.atlassian.com/bamboo/tutorial-create-a-simple-plan-with-bamboo-java-specs-894743911.html>

While I am very new to bamboo specs and java in general it seems like the java project in the tutorial is built against 6.2.1.

I would be happy to "hack" the projects but any of my attempts have been in vain.

Any pointers are welcome,

/Kristoffer


Answers:
author: rsperafico
body: Hello [@Kristoffer Granberg Cauchi](/t5/user/viewprofilepage/user-id/1079425),

You could either:

* recreate a new Maven project providing the Bamboo version you are running (e.g. 6.4)  

      mvn archetype:generate -B \    -DarchetypeGroupId=com.atlassian.bamboo -DarchetypeArtifactId=bamboo-specs-archetype \    -DarchetypeVersion=6.4.0 \    -DgroupId=com.atlassian.bamboo -DartifactId=bamboo-specs -Dversion=1.0.0-SNAPSHOT \    -Dpackage=tutorial -Dtemplate=minimal

* if using IDE (e.g Eclipse, NetBeans, Intellij IDEA), you can simply open up "pom.xml" and update version from 6.2.1 to 6.4, updating your project so new libraries can be downloaded and updated due to version changed.  

      <parent>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>bamboo-specs-parent</artifactId>
        <version>6.4.0</version>
        <relativePath/>
      </parent>

Kind regards,

Rafael
Bamboo can't start
Asked by Jose Flavio Castillo:

I'm running bamboo as a standalone, and I noticed it rebooted.

After reboot I can't access the site.

Logs says:

Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.  
2017-12-07 02:10:38,457 INFO \[17-BAM::Default Agent::Agent:pool-32-thread-1\] \[BuildAgentControllerImpl\] Agent 196609 checking build queue for executables...  
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000ff180000, 7864320, 0) failed; error='Cannot allocate memory' (errno=12)  
#  
# There is insufficient memory for the Java Runtime Environment to continue.  
# Native memory allocation (mmap) failed to map 7864320 bytes for committing reserved memory.  
# An error report file with more information is saved as:  
# /opt/atlassian/bamboo/atlassian-bamboo-6.0.3/bin/hs_err_pid19148.log  
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-3.b12.el7_3.x86_64/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory  
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-3.b12.el7_3.x86_64/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory


Answers:
author: Christian Glockner
body: Hi Jose,

Based on the errors it sounds like you're running out of memory and/or your Java installation is broken.

How much physical RAM is installed on this machine? Did you change the heap size of Bamboo from the defaults? What else is installed on the machine where Bamboo is installed?

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: Jose Flavio Castillo
body: Hi Christian,

Thanks,

Tried adding RAM, currently it has 8GB of ram,

But still the same error,

/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-3.b12.el7_3.x86_64/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

possible java is corrupted,
Starting Bamboo as a service in Centos 7
Asked by Jason Fuller:

Hi,

I tried following the instructions at:

<https://confluence.atlassian.com/bamboo/running-bamboo-as-a-linux-service-416056046.html>

But the script on that page requires an argument (start, restart, stop), but this is not specified anywhere in the procedure.

And my installation is not starting upon boot, but I can manually start with that script.

I've checked the catalina.out file, but it doesn't even get that far -

How can I troubleshoot this?

How do you enter the "start" argument with the start of the system?


Answers:
author: Jeremy Owen
body: > But the script on that page requires an argument (start, restart, stop), but this is not specified anywhere in the procedure.

It's not necessary to reference these explicitly anywhere. They're standard commands issued by the underlying OS service manager once the service has been registered.

Rather than troubleshooting the *systemv* service, for CentOS 7 I'd recommend setting it up as a *systemd* service using these instructions instead:

* [How to add Bamboo startup script to systemd](https://confluence.atlassian.com/bamkb/how-to-add-bamboo-startup-scripts-to-systemd-867344988.html)

It's the standard on modern distros and more robust. I'll get the above instructions linked in the official doc too.

Hope this helps :)


author: Jason Fuller
body: Hey Jeremy -

Perfect! It all works, and things make a lot more sense to me now.

Thanks for your help.

Best,

Jason

comments: author: Jason Fuller
body: Also would suggest noting that in the first link I tried. And add "centos7" in the description of the correct link.


author: Jeremy Owen
body: You're welcome! :)

I'll absolutely add CentOS 7 into the description too.


author: Christian Glockner
body: Hi Jason,

It sounds like Bamboo isn't starting when you reboot the system. Did you run **sudo /sbin/chkconfig --add bamboo**, which configures Bamboo to start on system startup?

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: Marcel Van der Vliet
body: a


author: Jason Fuller
body: Hi Christian, yes. But as I mentioned - it makes sense that it will fail, as the script requires an argument, and none is provided upon reboot, as far as i can see.
I cant locate wrapper.conf in Bamboo 6.4
Asked by pouya parsaie:

Based on given instruction it should be in {{$BAMBOO_INSTALL/conf}} but when I open

"C:\\Program Files\\Bamboo\\conf" folder I cant find any wrapper.conf

Is it removed or replaced with something else or I am looking at a wrong place.

I would really appreciate it if anyone could help me with this.

Kind regards,

Pouya


Answers:
author: Alexey Chystoprudov
body: wrapper.conf is part of Bamboo agent installation, not server.
Does anyone have a sample MuleSoft Cloud Hub deployment built?
Asked by Bradley Morgan:

Need to figure out how to push successful MAVEN builds to MuleSoft cloud hub


Answers:
author: Rohit
body: [@Bradley Morgan](/t5/user/viewprofilepage/user-id/1190757) if you were successful in deploying maven build to cloud hub , can you please share details of it ?

We are facing issue while deploying (<https://community.atlassian.com/t5/Bamboo-questions/Bamboo-Deployment/qaq-p/851962>) and currently blocked.

Your inputs will be helpful.

Cheers,

Rohit
NullPointerException in SSHKeyProvider since update to Bamboo 6.4.0
Asked by Daan Kets:

Yesterday, we updated our bamboo to version 6.4.0, and as of then, the SCP task no longer works: it throws the NPE below. As a result, all of our deploy jobs now fail. This happens both with custom and shared credentials.

```
Error occurred while running Task 'Copy binary to server(3)' of type com.atlassian.bamboo.plugins.bamboo-scp-plugin:scptask.
23-Feb-2018 13:24:03 java.lang.NullPointerException
23-Feb-2018 13:24:03 at com.atlassian.bamboo.plugins.scp.SSHKeyProvider.<init>(SSHKeyProvider.java:26)
23-Feb-2018 13:24:03 at com.atlassian.bamboo.plugins.scp.ScpTask.execute(ScpTask.java:257)
23-Feb-2018 13:24:03 at com.atlassian.bamboo.plugins.scp.ScpTask.run(ScpTask.java:120)
23-Feb-2018 13:24:03 at com.atlassian.bamboo.plugins.scp.ScpTask.execute(ScpTask.java:106)
23-Feb-2018 13:24:03 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$1(TaskExecutorImpl.java:281)
23-Feb-2018 13:24:03 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:224)
23-Feb-2018 13:24:03 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:281)
23-Feb-2018 13:24:03 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:112)
23-Feb-2018 13:24:03 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:71)
23-Feb-2018 13:24:03 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:203)
23-Feb-2018 13:24:03 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:175)
23-Feb-2018 13:24:03 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:122)
23-Feb-2018 13:24:03 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:185)
23-Feb-2018 13:24:03 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:117)
23-Feb-2018 13:24:03 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:126)
23-Feb-2018 13:24:03 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
23-Feb-2018 13:24:03 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
23-Feb-2018 13:24:03 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
23-Feb-2018 13:24:03 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
23-Feb-2018 13:24:03 at java.lang.Thread.run(Thread.java:748)
```


Answers:
author: Alexey Chystoprudov
body: try to save SCP task configuration and run it again

Upd

looks like a bug. Reported at <https://jira.atlassian.com/browse/BAM-19712>
Adding git capability causes "New access key is required but could not be added to Bitbucket Server"
Asked by John Gill:

I have bitbucket and bamboo on two separate windows servers.

I have git installed on bamboo server.

When I add Git capability I get "New access key is required but could not be added to Bitbucket Server"  

I have installed keys in bamboo and bitbucket.

I can used git on the command line on bamboo server to clone repository. It does ask me for the passkey though.

With Git Capability added bamboo can no longer build. If I remove the git capability from bamboo, it can build. Refreshing the repository doesn't help.

I want to use the merging feature of bamboo which needs to Git capability added.


Answers:
author: rsperafico
body: Hello [@johngillwp](/t5/user/viewprofilepage/user-id/611017),

Could you please have a look at <https://jira.atlassian.com/browse/BAM-18511> - *Improve error communication for "New access key is required but could not be added to Bitbucket Server" in Bamboo*checking if any of the issues described relates to the problem you are facing?

Kind regards,

Rafael

comments: author: John Gill
body: Well better error reporting would help, but it doesn't really help right now getting it working.

I'm in the middle of evaluating bamboo, but if this isn't solvable then I don't see atlassian getting a sale.


author: John Gill
body: If I go to the repositories tab of the plan, I see this

* New access key is required but could not be added to Bitbucket Server.
* com.atlassian.bamboo.executor.CancelException: Command was canceled: command system.git.executable version failed with code -1. Working directory was \[\\\].


author: John Gill
body: * com.atlassian.bamboo.executor.CancelException: Command was canceled: command system.git.executable version failed with code -1. Working directory was \[\\\].  

  The problem is obvious...   
  system.git.executable needs to be d:\\tools\\Git\\bin\\git  

  I tried that before, but I think it didn't work because my keys were wrong. So I blew it all away and started again, and this time forgot to set the path properly.  

  I knew if I posted the question, I'd spot my own mistake.  

  So basically the problem was PEBKAC (Problem exists between keyboard and chair).


author: rsperafico
body: I am glad the [https://jira.atlassian.com/browse/BAM-18511](https://jira.atlassian.com/browse/BAM-18511?_ga=2.224054047.588195666.1519045672-1334508958.1497274795) - *Improve error communication for "New access key is required but could not be added to Bitbucket Server"*helped you out:
> 2. Git executable couldn't be found / launched.

Kind regards,

Rafael
Actions that can be performed on bamboo build fail
Asked by Deepak:

Hi,

Can we perform any actions other than sending notifications if a bamboo build fails? Just want to check if we can trigger other plans or add some stages which can be executed if a build fails?

I need to invoke few REST API's if a build plan is failed. Is this possible?

Thanks \& Regards,

Deepak.


Answers:
author: Alexey Chystoprudov
body: Try <https://marketplace.atlassian.com/plugins/com.atlassianlab.bamboo.plugins.bamboo-fail-trigger/server/overview> plugin.

It was created exactly for such scenario

comments: author: Deepak
body: Hi Alexey,

Thank you for the response. Looks like the plugin is what I was looking for but it doesn't work with the current bamboo version (5.6.2) used by our organization. Though there is a plan to upgrade the bamboo server, is there any other way to implement this?

I was going through the Final Stage which would run irrespective of the build status of the previous stage. Thought of using this but I am not aware of how to get the build status of the previous stage. Is there any way to get the status?

Thanks \& Regards,

Deepak.


author: Alexey Chystoprudov
body: It's open source, so you can try to adopt it to your Bamboo version. <https://bitbucket.org/chystoprudov/bamboo-failtrigger-plugin>

As I know it's not possible to get status of previous stages. But there's question where people found some possible solutions: [https://community.atlassian.com/t5/Bamboo-questions/Is-there-a-bamboo-variable-with-the-build-job-s-result/qaq-p/166595](https://community.atlassian.com/t5/Bamboo-questions/Is-there-a-bamboo-variable-with-the-build-job-s-result/qaq-p/166595?)


Tags: build

continuous-delivery

error

plan

rest-api
Run Selenium Tests on Remote machine
Asked by Cynthia Fehr:

Hello,

Can I use bamboo to run a job that kicks off a build and run of selenium tests on a remote windows machine? The remote machine does not have a bamboo agent on it.

I would like bamboo to collect the results from the remote windows machine when the tests complete.

Has anyone implemented this configuration?


Answers:
author: Bill Carreon
body: Hi Cynthia,

Bamboo can execute the Selenium tasks on the Windows machine by use of a remote agent, and the results can be exported into an Artifact. Allow me to include some documentation below. I've also included a link to the Charlotte plugin below, which may be beneficial for your configuration.  

* [Bamboo Script Task](https://confluence.atlassian.com/bamboo/script-289277046.html)s
* [Remote Agents](https://confluence.atlassian.com/bamboo/remote-agents-289277115.html)
* [Difference between Local agents and Remote Agents](https://confluence.atlassian.com/bamkb/difference-between-local-agents-and-remote-agents-457703602.html)
* [Bamboo Remote Agent Installation Guide](https://confluence.atlassian.com/bamboo/bamboo-remote-agent-installation-guide-289276832.html)
* [Configuring a Build Job's Artifacts](https://confluence.atlassian.com/bamboo/configuring-a-job-s-build-artifacts-289277071.html)
* [Charlotte Bamboo Plugin](https://marketplace.atlassian.com/plugins/com.mumosystems.charlotte/server/overview)

Best Regards,

Bill


Tags: selenium
Can I restart a failing job while other jobs in the same stage are still running?
Asked by Roel:

I have a build plan with a stage that consists of multiple jobs, which are distributed over multiple agents. Sometimes one of these jobs fails, but will succeed if we restart it the job.

However: the failing job can only be restarted *after all the other jobs have finished* . The **Run** \> **Rerun all failed Jobs** option is not visible until all jobs have finished.

Is there a way to restart this failing job while the other jobs are still running? In the case that a short-running job fails, and other long-running jobs are still running, ideally the failing job would be restarted. In our case, the restarted job would succeed before the long-running job would.


Answers:
author: Alexey Chystoprudov
body: No, there's no such option available. There's feature request to implement it: <https://jira.atlassian.com/browse/BAM-11831>. Vote for it and leave your comment there

comments: author: Roel
body: Thanks, will do!
How to Build a burn down report for service desk
Asked by RSavage_stellarindustrial_com:

Hi, I have teams working in queues for customer request. Those request come in via email and into Jira service desk.  

We are looking to create a burndown report and chart. Has anyone done this and can share? I see video on doing it in Jira but not service. Thank you in advance.


Answers:
author: Danut M _StonikByte_
body: Hi [@RSavage_stellarindustrial_com](/t5/user/viewprofilepage/user-id/4276797),

As far as I know, the burndown report in Jira Service Management is not available unless you also have Jira Software.

But, you can easily generate a burdown chart by using the **Release Burndown Burnup Chart gadget** offered by our [Great Gadgets](https://marketplace.atlassian.com/search?query=agile%20great%20gadgets%20stonikbyte) app. This gadget does not requires an agile board; it works with a filter of issues instead.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/311471i04278B3E0B0A2E43/image-size/large?v=v2&px=999 "image.png")

The gadget is highly configurable, you can use it as a burndown chart or burnup, allows you to include subtasks, can calculate by issue count, story points, time estimates or any numerical custom field and can make forecast.

See how to use this gadget, along with the many other gadgets offered by the same app, in these articles:

* <https://community.atlassian.com/t5/App-Central/An-effective-dashboard-for-Service-Desk-and-Customer-Support/ba-p/2360369>
* <https://community.atlassian.com/t5/App-Central/Creating-a-cross-teams-release-burndown-chart-in-Jira-with-Great/ba-p/1803421>

Hope this helps.

Danut


Tags: cloud

jira-service-management

jira-service-management-cloud