youngmon/atlassian-qna huggingface dataset:
How to run a python application in Bamboo with out docker
Asked by Vineesh:

Is it possible to run the python application with all the dependencies . With out using Docker.

Since, Docker handle all the dependencies and creating the virtual environment to run the program.

Is it possible to run the same using Bamboo?


Answers:
author: Philip Colmer
body: Vineesh

If you are running Bamboo on your own server then the answer is yes if you are able to install the software required to run the Python application.

You can use virtualenv or Pipenv to create the virtual environment then use a simple script task in Bamboo to call the Python application.
Build queue has a number of "undefined You do not have the permission to view this build" entries
Asked by Eric Pederson:

Our Bamboo build queue has a number of stuck "undefined You do not have the permission to view this build" entries (see screenshot). How can I get rid of these?

![2019-06-25 17_42_11-Build dashboard - IDB Bamboo.png](/t5/image/serverpage/image-id/58748i44914D17F202283B/image-size/large?v=v2&px=999 "2019-06-25 17_42_11-Build dashboard - IDB Bamboo.png")


Answers:
author: Daniel Santos
body: Hi [@Eric Pederson](/t5/user/viewprofilepage/user-id/2688338)  

I see you opened a ticket with our support team as well and the ticket was addressed before this question. I'm just taking the chance to share the findings with other users that may come to this post.  

**Findings**Bamboo was facing some indexing issues that were solved by restarting the instance.

Thank you!
How do i configure bamboo server to launch elastic agents from a bastion host
Asked by Venku Jayanti:

Hello - I would like to know how elastic agents will be launched in AWS. does bamboo need direct access to the instance or it can reach them via bastion host. the way our accounts are set up in AWS, all instances are launched in a private subnet only access is via bastion host. will elastic agents work for this scenario. Thanks

Venku


Answers:
author: Venku Jayanti
body: We were able to make bamboo master reach the elastic agent using AWS direct connect.
Bamboo how to set scl enable with docker environment
Asked by Joonbum Lee:

Hello :)

I am having a hard time to change GCC version on centos image.

I use Docker image to build on a centos environment.

I made my base image and I tried to use the image.

I already set the "*scl*" command for my base image.

I also gave these two commands inside of my Dockerfile.

SHELL \[ "/usr/bin/scl", "enable", "devtoolset-8"\]

ENV BASH_ENV=/opt/app-root/etc/scl_enable \\  
ENV=/opt/app-root/etc/scl_enable \\  
PROMPT_COMMAND=". /opt/rh/devtoolset-8/enable"

So, when I ran container from the image, it works well (I checked both bash and sh ).

But bamboo seems not to use my base image and cannot compile source code because it uses GCC version 4.

If anyone has an idea, please let help me.

I used a script Task and also tried *scl* command inside of it. but it didn't work

Thank you


Answers:
author: Joonbum Lee
body: I don't know why *scl enable devtoolset-8 bash,* *scl enable devtoolset-8 sh were not working*

but I changed my*. /opt/rh/devtoolset-8/enable*now it is working correctly.

Thank you

comments: author: saravanansaminathan
body: <https://unix.stackexchange.com/questions/175851/how-to-permanently-enable-scl-centos-6-4>  

Instead of scl enable you should try scl_source enable  

*/opt/rh/devtoolset-8/enable*and scl_source enable devtoolset-8 are same according to this answer


Tags: docker
Bamboo YAML import failed: Document structure is incorrect
Asked by Arturo A Salazar:

Hi I'm a little confused with YAML structure I can't run multi stage CI, I got this error

```
Bamboo YAML import failed: Document structure is incorrect: stages / [0] / jobs: Property is required.
```

> ---  
> project:  
> key: MARS  
> plan:  
> key: SLAYER  
> name: Plan Banboo Spec 1  
> stages:  
> - First Stage:  
> jobs:  
> tasks:  
> - scrtipt: echo "first stage"  
> - Second Stage:  
> jobs:  
> tasks:  
> - scrtipt: echo "Second Stage"


Answers:
author: Alexey Chystoprudov
body: Recent release of Bamboo 6.9.0 introduced new format of YAML Specs, version 2.

Previous format didn't allow to provide stage name. According to your sample it's mixed format of version 1 and version 2.

Please follow [this documentation](https://docs.atlassian.com/bamboo-specs-docs/6.3.0/specs-yaml.html#minimalistic-definition) if you have Bamboo before 6.9.0. Or [this documentation](https://docs.atlassian.com/bamboo-specs-docs/6.9.0/specs.html?yaml) if you have Bamboo 6.9.0+

comments: author: Arturo A Salazar
body: Works perfectly, thanks ;)
Failed to start LSB: Atlassian Bamboo Server
Asked by Sudheer Potluru:

Our bamboo service on CentOS 7 is not starting. It shows error as "Failed to start LSB: Atlassian Bamboo Server".


Answers:
author: Steven F Behnke
body: you need to find actual examples of errors in the log files: <https://confluence.atlassian.com/bamboo/locating-important-directories-and-files-289277247.html>

comments: author: Sudheer Potluru
body: Below output found from bamboo.log.

![bamboo.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/58584iD89DFFB121EC826A/image-size/large?v=v2&px=999 "bamboo.PNG")


Tags: centos
Is server Id unique for each instance on the same server.
Asked by Abhradeep Roy:

Hi,

We are planning to have two instance (v5.12.2.1 and v6.9) on the same bamboo server.

Can we have a single server id, for getting the license key to be used for multiple bamboo instances in same server.

Also can the server id be changed after we get license.

Thanks,

Abhradeep


Answers:
author: Daniel Santos
body: Hi [@Abhradeep Roy](/t5/user/viewprofilepage/user-id/1623375)
> Can we have a single server id, for getting the license key to be used for multiple bamboo instances in same server.

Technically you can, but you should not. There are two implications here:

1. A Bamboo production license should be used in one server at a time. Should not be shared. The license is per instance.
2. To have an instance with the same Server ID you will need to clone the installation and as consequence, you will have problems to link these two instances to one shared Bitbucket server. The Server ID is what helps the application links feature to identify the instance.

Regarding the Server ID saved in the license side, you don't need to worry about it. A license is initially associated with a Server ID, but it can be used in any server instance.
> Also can the server id be changed after we get license.

You can't change it and as shared above you don't need to change it.

If you have a commercial license of a tear above starter you should be able to generate another license for testing purposes or to maintain a staging Bamboo instance. Details on how to get this license can be found at:   

* [Purchasing \& Licensing FAQ (10. What are developer licenses, how are they used?)](https://www.atlassian.com/licensing/purchase-licensing#licensing-10)

Please let me know if you still have any questions on this matter.
Run maven task
Asked by Clarizza Campos Ramirez:

Hi, i am trying to add a maven task to one of our project but it shows following error

**"This job can not be built.**

No agents meet this job's requirements."


Answers:
author: Daniel Santos
body: Hello [@Clarizza Campos Ramirez](/t5/user/viewprofilepage/user-id/3361244),

<br />

This happens because Bamboo is not finding an agent with the right capabilities available for one or more jobs in this plan.

I would try to follow these steps to diagnose the issue:

1. Check the requirements tab of each job in the plan affected (**Plan configuration \>\> (JOB) \>\> Requirements** ).  
   This will allow you to see what agents are capable to build each job. You need to have agents capable of building all the jobs in your plan.
2. Check the agent matrix (**Admin \>\> Agents \>\> Agent Matrix** ).  
   Select the plan you want to investigate and the matrix will show what agents are not able to build the jobs of your plan and why (you will need to hover the mouse over the red boxes to see the message).

Once you understand what is the limitation you are facing, you may need to:

* adjust the requirements in your plan.
* adjust the capabilities of the agent(s).
* adjust the dedication of the agent(s).

Please let me know if that will helped you to find out the issue.

comments: author: Clarizza Campos Ramirez
body: HI [@Daniel Santos](/t5/user/viewprofilepage/user-id/502125) i look into details you mentioned and my error was due we have an invalid JDK installation, i just change that and everything works good.

Thanks.


author: Daniel Santos
body: I'm glad you could find it. =\]  
Have a good one!
Need to add script task through api
Asked by Akshara Prasad:

Can anyone help me with the api (post )for adding task (Script task) to deployment plan

I am trying to add it through bash script and also through java

Any leads will be helpful


Answers:
author: Daniel Santos
body: Hi [@Akshara Prasad](/t5/user/viewprofilepage/user-id/1696826),

I wish it was that simple and I could just provide you with a REST API endpoint for this.

Bamboo provides a way to add and remove tasks from deployments but only if your deployment is configured through specs. There is know public REST API endpoint only to add tasks.

If you don't know specs, I suggest you start with this document:

* [Bamboo Specs](https://confluence.atlassian.com/bamboo/bamboo-specs-894743906.html)

And run some tests with:

* [Tutorial: Create a simple plan with Bamboo Java Specs](https://confluence.atlassian.com/bamboo/tutorial-create-a-simple-plan-with-bamboo-java-specs-894743911.html)

<br />

In Java specs the code part to create a script task in a deployment environment would be something like:

```
.environments(new Environment("MyEnvironment")
  .tasks(new ScriptTask()
    .description("My script task")
    .inlineBody("echo \"Hello World\"")));
```

I hope that helps.

comments: author: Akshara Prasad
body: Thanks Daniel..will try with this


author: Daniel Santos
body: You are welcome! =\]


Tags: bamboo-development
Can I notify to Slack channel on deployment events in yaml-spec?
Asked by matgry:

Have been fiddling with yaml-spec deployments with some late success (that yaml-structure is a hump, you know).

Got email notifications working after some trial and error.

Is it possible to trigger Slack channel notification from yaml-specs too?

If so, what is the recipient type and how do we get the slack channel name and webhook token in there?

My google-fu got me some interesting links (some old, some rudimentary):

<https://community.atlassian.com/t5/Bamboo-questions/Setup-notification-in-YML-bamboo-specs/qaq-p/731810>

And the obvious links to reference docs etc, but no definitive answers.

My guess is that slack notifications is not implemented for yaml-spec yet, though...

This is what I've got now (works):
>
> ```
> triggers: 
>   - build-success
> notifications:
>   - events:
>     - deployment-finished
>     recipients:
>       - emails:
>         - m@j.com
> ```

Edit: speling


Answers:
author: Daniel Santos
body: Hi [@matgry](/t5/user/viewprofilepage/user-id/3372277)

It is possible to do it through Java Specs. I did not find it in our docs for YAML and the Bamboo source code didn't seem to show that option either.

I've opened a feature request to address this:

* [\[BAM-20495\] Provide a way to configure Slack notifications through YAML specs](https://jira.atlassian.com/browse/BAM-20495#)

The easy way to see how to configure this through Java specs is:

1. Install the plugin [Slack Notifications for Bamboo \| Atlassian Marketplace](https://marketplace.atlassian.com/apps/1213289/slack-notifications-for-bamboo)
2. Configure your deployment environment with the slack notification you need
3. Still in the deployment environment configuration **\[...\]** (top right)**\>\> View project as Java Specs**
4. Copy the configuration

This is the part of the code showing the notification you need:

```
.notifications(new Notification()
  .type(new AnyNotificationType(new AtlassianModule("bamboo.deployments:deploymentStartedFinished")))
  .recipients(new AnyNotificationRecipient(new AtlassianModule("com.atlassian.bamboo.plugins.bamboo-slack:recipient.slack"))
    .recipientString("https://<YOUR_DOMAIN>.slack.com/services/new/incoming-webhook.|#<YOUR_CHANNEL>||"))));
```

I hope you can use Java Specs instead.

comments: author: matgry
body: Thanks. I'll keep an eye on the feature request, and maybe look into Java specs as well.


author: Daniel Santos
body: You are welcome [@matgry](/t5/user/viewprofilepage/user-id/3372277)!


author: frenchie
body: You can do this by sending an email to a slack channel.

1. Set up an email for your slack channel: <https://slack.com/intl/en-au/help/articles/206819278-Send-emails-to-Slack>

2. Use something like

```
notifications:
    - events:
        - plan-failed
      recipients:
        - emails:
            - your-channel-abc123@you.org.slack.com
```


Tags: deployment

notification

spec

yaml
How do I get list of Bamboo projects and plans with their users using MS SQL query
Asked by Nirmalkumar Shete:

How do I get list of Bamboo projects and plans with their users using MS SQL query


Answers:
author: Daniel Santos
body: Hi [@Nirmalkumar Shete](/t5/user/viewprofilepage/user-id/201869)

From your question is not clear what do you mean by "their users", but I will consider you are talking about what users or groups have permissions on those plan/projects.  

This query will give you the build projects/plans:

```
SELECT
    P.PROJECT_ID,
    P.PROJECT_KEY,
    P.TITLE,
    B.BUILD_ID,
    B.FULL_KEY,
    B.TITLE
FROM
    PROJECT P
JOIN
    BUILD B
    ON P.PROJECT_ID=B.PROJECT_ID
WHERE
    BUILD_TYPE='CHAIN' ORDER BY FULL_KEY
```

This one will give you the deployment projects/environments:

```
SELECT
    DP.DEPLOYMENT_PROJECT_ID,
    DP.NAME,
    DE.ENVIRONMENT_ID,
    DE.NAME,
    DP.PLAN_KEY
FROM
    DEPLOYMENT_PROJECT DP
JOIN
    DEPLOYMENT_ENVIRONMENT DE 
    ON DP.DEPLOYMENT_PROJECT_ID=DE.PACKAGE_DEFINITION_ID
```

The users and groups with permissions for them you can get from this page:

* [How to retrieve user and group access mappings / permissions from the Bamboo database.](https://confluence.atlassian.com/bamkb/how-to-retrieve-user-and-group-access-mappings-permissions-from-the-bamboo-database-859516551.html)  
  ??Please notice that you need to change **true** to**1 for**those queries to work in SQL Server

I hope that will allow you to retrieve the information you need from the Bamboo DB.

comments: author: Nirmalkumar Shete
body: Thank you Daniel, this is what I was looking for..


author: Daniel Santos
body: I'm glad it was helpful! =\]
Bamboo upgrade cost
Asked by Abhradeep Roy:

Hi,

We need to upgrade to latest Bamboo version 6.9 from version 5.12.

We need to know the cost for 30 users in our team for the latest Bamboo version .

Please let us know the same.

Thanks,

A Roy.


Answers:
author: Ellie Z _they_them_
body: Hi [@Abhradeep Roy](/t5/user/viewprofilepage/user-id/1623375) ,

Thank you for reaching out to the Atlassian Community!

As has been mentioned, you will need to have a valid Bamboo license to perform your upgrade. The license tiers for Bamboo are determined by the number of Remote Agents allowed for the instance.

Please see the *[Bamboo Server Licensing](https://www.atlassian.com/licensing/bamboo)* page for new and renewal license prices.

We also recommend the following [upgrade path](https://confluence.atlassian.com/bamboo/bamboo-upgrade-guide-720411366.html) for Bamboo:

5.12 -\> 5.14 -\> 6.9

If you have any other questions, please do not hesitate to ask!

Thanks,

Elias \| Bamboo Senior Support Engineer

comments: author: Abhradeep Roy
body: Thanks [@Ellie Z _they_them_](/t5/user/viewprofilepage/user-id/50795) , our current bamboo version is 5.12.2.1, regarding the upgrade path to bamboo version 6.9, do we have to install a new instance of version 5.14 first, and then upgrade the same instance to 6.9. Please advise ?

Also please let us know the issues if we plan to migrate to 6.9 directly.

Also do we need to have separate license for 5.14 and 6.9 both or only a single license is sufficient for installing new instance of 5.14 version and upgrading to 6.9 version.

Thanks,

Abhradeep.


author: Ellie Z _they_them_
body: Hi [@Abhradeep Roy](/t5/user/viewprofilepage/user-id/1623375) ,

Thanks for your questions!

You don't need to install a new instance of 5.14. You can upgrade your 5.12.2.1 instance to 5.14 and then upgrade that to 6.9.

The whole upgrade process can be done on one license, as long as the license is valid.

We recommend the intermediate step of Bamboo 5.14 because of a major change introduced in 5.15: System-wide encryption. If you do an upgrade to 5.14, and take a backup, it will be easier to recover if you encounter any issues.

I hope this answers your questions!

Cheers,  
Elias


author: Nic Brough -Adaptavist-
body: There's no licence cost, as long as your licence ends after the release date of the version you want to upgrade to.

If your licence has expired, you will need to renew, but then you'll be able to upgrade to any version release before the new end-date.

The other cost is the admin's time to perform the upgrade.

comments: author: Jimmy Seddon
body: [@Abhradeep Roy](/t5/user/viewprofilepage/user-id/1623375),

Also note that Bamboo isn't licensed by the number of users you have connecting to the system, but the number of remote agents you have performing build \& deployment operations.

-James
Whats wrong if a Bamboo build plan immediately returns with success and nothing in the log
Asked by Edward_Burns:

Whats wrong if a Bamboo 6.6 build plan run immediately returns with "Success" but NOTHING, thats nothing in the log. Dedicated Bamboo Agent xml-data/build-dir shows no directory created for that build.


Answers:
author: Jimmy Seddon
body: Hi [@Edward_Burns](/t5/user/viewprofilepage/user-id/2816495),

The only time I have seen anything similar to that is when I have disabled all of the stages/jobs/tasks within a build so there is nothing to run.

Could you please provide a little bit more information about that this build plan should be doing. Also, while the log for the build plan may not show anything have you checked either the bamboo server log (located at: \<BAMBOO_HOME/logs/atlassian-bamboo.log) or if this is running on a remote agent you could also check the agent log (located at: \<AGENT_INSTALL_DIR\>/logs/atlassian-bamboo.log).

Thanks!

-James
"The given path's format is not supported" When running test task
Asked by Rick Morayniss:

I am new to Bamboo, and I am creating my first project. The set of tasks I am running always fails when the test task is running. I am running bamboo on a win 64 machine.

Here is a picture of the test task. Can someone please tell me Why I am getting that error.

![mstest.png](/t5/image/serverpage/image-id/58131i0D1CEA1709606A57/image-size/large?v=v2&px=999 "mstest.png")


Answers:
author: Daniel Santos
body: Hi [@Rick Morayniss](/t5/user/viewprofilepage/user-id/3287752)

Thank you for sharing the screenshot with the description, it is very helpful.

I would need the server logs/build logs (depending on where the error happens) to confirm my assumption, but I think the issue is that you cannot use an absolute path in the **container** field.  

Can you try moving that file to the build folder before that task is run?

Usually, we keep files needed by a build inside its working directory to allow the build to run in different build agents. We do this because agents can have a totally different filesystem structure.
Unable to load database driver: oracle.jdbc.OracleDriver in Bamboo Task ?
Asked by Mohanraj:

We are facing the issue when executing the SQL configuration task with ORACLE database

"Task exception: Unable to load database driver: oracle.jdbc.OracleDriver. Make sure your configuration is correct. Exception: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver "

Driver is present in the location /apps/bamboo/lib/ojdbc8.jar and dbJar pointing the same.

**++The below is our dBProfile++**

dbUser = ${bamboo.dbUser} \| dbPassword = ${bamboo.dbPassword} \| dbUrl = jdbc:oracle:thin:@${bamboo.dbHostname}:${bamboo.dbPort}:${bamboo.dbName} \| dbDriver = oracle.jdbc.OracleDriver \| dbJar = jar:file:/${bamboo.dbJar}!/

Please let me know if you need some more information ?


Answers:
author: Mohanraj
body: This was the Syntax issue

**dbJar = jar:file:/${bamboo.dbJar}!/ should be dbJar = ${bamboo.dbJar}**

**Due to this wrong syntax sytem not able to identify the driver files.**


author: Daniel Santos
body: Hi [@Mohanraj](/t5/user/viewprofilepage/user-id/1144422)

I'll need more details to better understand how you are using the task.  
First of all, can you confirm what is the task type you are using?  

You said you are using SQL configuration task, but Bamboo does not have a native task for this. Are you referring to a task from this ([SQL for Bamboo \| Atlassian Marketplace](https://marketplace.atlassian.com/apps/1215265/sql-for-bamboo?hosting=server&tab=overview)) plugin?


Tags: database

jdbc
Bamboo YAML spec v2 Can't find triggering branch 'master'
Asked by v8lust:

Deployment YAML spec in 6.9 is excellent progress, however I have an issue when trying to trigger a deployment on master only, the spec lints correctly, but it does not see master.

```
Can't find triggering branch 'master'
```

I've put a copy of the spec in GitHub here

<https://raw.githubusercontent.com/cdaf/linux/master/bamboo-specs/bamboo.yml>

Perhaps master is default behavior and only need to specify a branch if it is other than master? I removed the branch definition and it appears to trigger for master only, although, the ability to manually create a release off a branch remains, which I would like to suppress, i.e. deploy from master only. This is the filter I want to apply.

    triggers:  - build-success:      branch: master?


Answers:
author: Stephen Schwenker
body: I'm having this same error. Were you able to figure this out?
Jira Service Management Training Options
Asked by Jason Duncan:

Hello,  

I am still very novice as a Jira Administrator, which I find challenging after 10 months w/ my current employer.   

I would like to know if Atlassian offers monthly subscriptions to become Jira certified? If so, can you provide a link to review the material prior to purchasing?  

I'm really struggling to understand Jira Management and I believe becoming certified would enable me to perform better on my job.  

Thanks,  

JD


Answers:
author: Laurie Sciutti
body: Hi [@Jason Duncan](/t5/user/viewprofilepage/user-id/5467561) \~ in addition to [@Jack Brickey](/t5/user/viewprofilepage/user-id/853369) 's recommendation, I would strongly recommend checking out this free learning path (in case you haven't already): <https://university.atlassian.com/student/collection/850385/path/2508834> . It may help fill in some gaps where you're struggling. Aside from that, definitely spin up your own free JSM Cloud site (you should also be able to upgrade to Premium for a free trial, which I believe is 30 days). I hope that helps \~ good luck!


author: Jack Brickey
body: Hi [@Jason Duncan](/t5/user/viewprofilepage/user-id/5467561) , you can certainly stand up your own installation for testing. You can do so for free but there are limitations that would restrict your training IMO. You can setup a standard for a more feature rich experience or go for premium. Both of the later can be a monthly subscription. <https://www.atlassian.com/software/jira/service-management/pricing>


Tags: data-center

jira-service-management

jira-service-management-data-center

training-and-certification