youngmon/atlassian-qna huggingface dataset:
Cannot publish plan because pad block is corrupted
Asked by Jonathan Joseph:

I'm getting the following error when I attempt to publish my plan (using bamboo specs):

```
2019-01-08 09:45:13,121 INFO [BambooServer] Publishing plan TO-CORSBO
Exception in thread "main" com.atlassian.bamboo.specs.api.exceptions.BambooSpecsPublishingException: An error occurred while publishing plan TO-CORSBO: org.bouncycastle.crypto.InvalidCipherTextException: pad block corrupted
2019-01-08 09:45:18,700 INFO [BambooServer] An error occurred while publishing plan TO-CORSBO: org.bouncycastle.crypto.InvalidCipherTextException: pad block corrupted
 at com.atlassian.bamboo.specs.util.BambooServer.translateRestException(BambooServer.java:170)
2019-01-08 09:45:18,701 INFO [BambooServer] (for more information, enable more detailed logging with system property -Dbamboo.specs.log.level=DEBUG)
 at com.atlassian.bamboo.specs.util.BambooServer.translateException(BambooServer.java:140)
 at com.atlassian.bamboo.specs.util.BambooServer.publish(BambooServer.java:97)
 at tutorial.PlanSpec.main(PlanSpec.java:178)
Caused by: com.atlassian.bamboo.specs.exceptions.BambooSpecsRestRequestException: org.bouncycastle.crypto.InvalidCipherTextException: pad block corrupted
 at com.atlassian.bamboo.specs.util.RestHelper.lambda$sendRequest$2(RestHelper.java:89)
 at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:222)
 at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:164)
 at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:139)
 at com.atlassian.bamboo.specs.util.RestHelper.sendRequest(RestHelper.java:92)
 at com.atlassian.bamboo.specs.util.RestHelper.post(RestHelper.java:201)
 at com.atlassian.bamboo.specs.util.SendQueue$1.run(SendQueue.java:23)

Process finished with exit code 1
```

<br />

I'm running version 6.6.2

Any ideas on how I can fix this?


Answers:
author: Jonathan Joseph
body: Figured out that Bamboo had issues encrypting the .**sshPrivateKey()** and .**sshPublicKey()** methods generated by Bamboo when exporting a plan's specs.   
Commenting them out fixed my issue and I was able to publish.


Tags: exception
SVN Authentication failed while doing build in Bamboo
Asked by Ghanshyam Shaniware:

Dear All,

One of user is facing below issue while trying to build a Sonar build in Bamboo but rest of the users have not reported anything related to this.

Below is the complete error log:

Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project Pearl: Error when executing blame for file src/main/java/com/aviseurope/commons/BigDecimalHelper.java: svn: E170001: Authentication required for '\<[https://svn.abrac.net:443](https://svn.abrac.net/)\> Atlassian Crowd' -\>

Does anyone faced this issue then can you help me.


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Just interesting is it reproducible by SSH connection?

Cheers,

Gonchik Tsymzhitov


Tags: addon-ch.mibex.bamboo.sonar4bamboo

atlassian-marketplace

sonarqube
Are you able to add new fields in Bamboo? If yes, can you make them required?
Asked by Sharonda Street:

Does Bamboo allow you to add new fields (variables) and make them required? or do you have to create custom variables?


Answers:
author: Foong
body: Feature request <https://jira.atlassian.com/browse/BAM-11099>

Workaround: Use empty value [Plan Variable](https://confluence.atlassian.com/bamboo/defining-plan-variables-289276859.html) and [Script task](https://confluence.atlassian.com/bamboo/script-289277046.html) to check its value
Bamboo Java spec for task "Deploy on Tomcat"
Asked by Deepali W:

Using Bamboo Web UI, one can create task for Deploying web app on Tomcat, refer <https://confluence.atlassian.com/bamboo0606/using-bamboo/jobs-and-tasks/configuring-tasks/configuring-a-deployment-task/using-tomcat-with-bamboo-for-continuous-deployment>

But I would like to do this using Bamboo Spec for Java, Is there way to create such task using its Java API classes? Like VcsCheckoutTask, MavenTask, etc.

Or How to achieve this - I wanted to check out code, build it using maven and then deploy war file on remote tomcat server without its UI but through script/spec?

Thanks in advance.


Answers:
author: Alexey Chystoprudov
body: Do plan configuration with web UI, then use button View as Java Specs. It will generate Java code you can use to store config in repository

comments: author: Deepali W
body: Thanks a lot :) I was not knowing this option under "Actions" or I overlooked.


Tags: bamboo-development

java

tomcat
Unable to request sopt Instance with rhel ami
Asked by Gunjan Dhande:

com.amazonaws.services.ec2.model.AmazonEC2Exception: Spot instance requests are not supported for this AMI. (Service: AmazonEC2; Status Code: 400; Error Code: UnsupportedOperation; Request ID: 3a03fad9-1281-41df-adef-83a64e83bdff)

Unable to request sopt Instance with rhel ami.can anyone help to solve this issue..?


Answers:
author: Nic Brough -Adaptavist-
body: This is a place for end users of Atlassian software. While you might be running (or trying to run) Atlassian software on this AWS system, we're not Amazon experts and most of us can't help you with fixing the underlying OS under your Atlassian stuff.

I would recommend asking in an AWS forum.
Check Crucible review state from Bamboo
Asked by Chris Nelson:

I am interested in using the "plan branch" functionality in Bamboo in order to automatically, build, test and merge feature branches back into a Master branch.  

Before merging the feature branch back into the Master branch, I would like Bamboo to check that the Crucible code review associated with that branch has been completed. Is there an easy way to do this in Bamboo?


Answers:
author: Daniel Santos
body: Hi Chris,

The configuration you want would require a feature that should trigger a Bamboo build based on an event coming from a Crucible code review completion. Crucible is not capable of doing this out of the box. We have an old post about this that is still valid: [Crucible - Upon Review Completion](https://community.atlassian.com/t5/Fisheye-Crucible-questions/Crucible-Upon-Review-Completion/qaq-p/57060).

Bamboo can be easily configured to merge feature branches to master on every commit that have a successful build, but that won't consider any code review. More details about the plan branch merging strategy can be found here: [Using plan branches - Atlassian Documentation](https://confluence.atlassian.com/bamboo/using-plan-branches-289276872.html) (at *Automatic branch merging* section).

I was thinking on a possible approach using a cron job to check Crucible reviews through REST API and trigger a Bamboo build, but I think that deciding what build to trigger via this approach would be another challenge.


Tags: fisheye-crucible
View the servers where all Bamboo Deployment Environment Tasks are pointing to
Asked by MF J:

I wanted to know if there is a simple way in Bamboo to see the servers where each of my deployment environment tasks would go if every task was run right now.

Managing a lot of deployment environments is difficult so any idea how we can better manage a list of which servers our build artifacts will be deployed to would be helpful.

Currently I think the best option is to try to get that info from the database and write a script to return the environments/deployment projects that I want.


Answers:
author: Daniel Santos
body: Hi [@MF J](/t5/user/viewprofilepage/user-id/1843915),

I'm assuming you are talking about dedicated agents. Agents that will be assigned to a specific environment or deployment project. If this is the case you can use the following query:

```
SELECT
 DP.NAME,
 DE.NAME,
 DP.PLAN_KEY,
 DE.ENVIRONMENT_ID,
 DP.DEPLOYMENT_PROJECT_ID,
 AA.EXECUTABLE_ID,
 AA.EXECUTABLE_TYPE,
 Q.AGENT_TYPE,
 Q.TITLE,
 Q.AGENT_DESCRIPTION
FROM
 DEPLOYMENT_PROJECT DP
JOIN
 DEPLOYMENT_ENVIRONMENT DE ON DP.DEPLOYMENT_PROJECT_ID=DE.PACKAGE_DEFINITION_ID
LEFT JOIN
 AGENT_ASSIGNMENT AA ON (DE.ENVIRONMENT_ID=AA.EXECUTABLE_ID
 AND AA.EXECUTABLE_TYPE='ENVIRONMENT')
 OR (DP.DEPLOYMENT_PROJECT_ID=AA.EXECUTABLE_ID
 AND AA.EXECUTABLE_TYPE='DEPLOYMENT_PROJECT')
LEFT JOIN
 QUEUE Q ON Q.QUEUE_ID=AA.EXECUTOR_ID
```

This query will list all your deployment projects and environments with agents dedicated or not. This information is available through the UI but not consolidated (only checking each agent). With the query you can see the big picture and filter the information you need.  
The deployment projects and environments followed by nulls are the ones not dedicated to any agent.

Please keep in mind that you might also have agents dedicated to build projects, plans or jobs and this type of information would require a different query to be seen.

Let me know if this is what you need.
Adding customized images/graphs to plan summary page via plugin
Asked by schow-lmi3d:

I'm trying to add customized graphs on test results from the builds in the bamboo Plan Summary page.

From the web panel doc, here seems to be limited amount of location's that can be used for web panels. (<https://developer.atlassian.com/server/bamboo/web-panel-module/#WebPanelModule-Locations>)

Does anyone know how I can add customized images/graphs to the plan summary page? Or if this is even possible? It seems quite useful for developers to add their customized reporting modules to this Plan Summary Page....


Answers:
author: Rafael Pinto Sperafico
body: Hi [@schow-lmi3d](/t5/user/viewprofilepage/user-id/2182869),

If possible, could you please provide us with a screenshot with location in "Plan summary" you would like to add a customized images/graphs?

![Screenshot 2019-01-11 at 9.46.51.png](https://community.atlassian.com/t5/image/serverpage/image-id/42214iB2ACB2C509E6EBFE/image-size/large?v=v2&px=999 "Screenshot 2019-01-11 at 9.46.51.png")Above is juts a sample screenshot.

Would you like to have the image placed in the same section where "Plan summary", "Current activity", "No builds are currently running" is located? Or in the same column where "Plan statistics" is?

Depending on the amount of data, perhaps it would be wiser having separate link that would load the content once requested, being located in the same row as "Plan summary", "Recent failures", "History"....

Looking forward to hearing back from you.

Kind regards,

Rafael

comments: author: schow-lmi3d
body: Yes I would like to place overall graphs in the plan summary section or possibly at the end of recent history.


author: Rafael Pinto Sperafico
body: Hi [@schow-lmi3d](/t5/user/viewprofilepage/user-id/2182869),

I am sorry for the delay on getting back to you.

After doing some digging there is no section available to append content to Plan Summary, meaning that you would have to do some Javascript injection instead.

Alternatively, the best option in here would be creating an item and making it available in the same row as "Plan summary", "Recent failures", "History"....

Kind regards,

Rafael


Tags: bamboo-app

bamboo-development

developer
Errors updating MySQL for Bamboo
Asked by Mike Becker:

We are attempting to upgrade the MySQL database for our Bamboo server. We are running Bamboo v 6.1.1 on Windows Server 2008 R2. Our MySQL version is 5.6; we are trying to update to 5.7.

When we run the update command in MySQL, we get "unknown system variable" errors for both the 'storage_engine' and 'have_csv' variables. We are using the Windows ZIP installer to upgrade.

I am unable to find these settings in the config file, and am unsure how to address or correct this so the upgrade will succeed.


Answers:
author: Daniel Santos
body: Hi [@Mike Becker](/t5/user/viewprofilepage/user-id/2519954),

This issue seems similar to this one: [MySQL Bugs: #42028: mysql_upgrade fails with "Unknown system variable 'have_csv'"](https://bugs.mysql.com/bug.php?id=42028).

I recommend you to seek for help on MySQL forums/support or more general forums. The Atlassian Community will be the best place to address problems related to the Atlassian application.

comments: author: Mike Becker
body: May thanks. I have already done so.


Tags: mysql
Bamboo Specs Java Auto Decection
Asked by Stefan Wendelmann:

Is it possible to **++not++**deploy the specs via. maven and

let bamboo check the specs automatically from the repo?

Like its done with the yaml File ?

Using Bamboo 6.7.1 and Bitbucket 5.15.0


Answers:
author: Alexey Chystoprudov
body: Yes.

* Create folder bamboo-specs in repository root;
* Create linked repository in Bamboo;
* Enable Bamboo specs scan at Bamboo specs tab of repository
* Click Scan button at Specs status tab of repository

comments: author: Stefan Wendelmann
body: So the java specs goes into the bamboo-specsfolder


author: Jeff_Schaeffer
body: What is the naming convention for this method? The main file that Bamboo will sense?


author: Alexey Chystoprudov
body: Bamboo is looking for java classes with @BabmbooSpecs annotation and tries to run public static void main(String\[\]) method.

See output from mvn -Ppublish-specs


Tags: bitbucket

bitbucket-server

server

spec
Bamboo CLI addTask does not work for fields that have values with colons
Asked by Cihangir Okuyan:

Hi,

I've been having trouble using the bamboo cli to create a AWS S3 Object task. The bamboo cli uses a comma separated list where the fields are mapped to their values via colons

```
--fields field1:value1,field2:value2
```

However, this fails when the value contains colons, such as in the artifactToUpload field for the AWS S3 Object task:

```
-1:1:1:DEPLOYNAME: all artifacts
```

I noticed in the bamboo logs that the request ends up only using the value up until the first colon, so using the example above, only -1 is used in the request and fails.

However, when I switched to using the --field1 --value1 syntax, the call worked fine and created the task in bamboo. But since I had to go up to field7 using this syntax and since parameters field3 and above are deprecated, I was wondering if there was a workaround to getting this to work using the --fields parameter.


Answers:
author: Bob Swift _Appfire_
body: Use multiple **field** parameters to specify one field at a time - it is a bit easier.

In general, if you have CLI parameters that are comma and/or colon separated and the value contains a separator character, you need to single quote the value in order to prevent the embedded separator from being mis-interpreted.


author: Gonchik Tsymzhitov
body: Hi!

As I understand you wrote about bamboo cli from Bob-Swift toolset.

Therefore I suggest you raise by link

<https://bobswift.atlassian.net/servicedesk>

Cheers,

Gonchik Tsymzhitov


Tags: bamboo-app

cli
How do I pass get sensitive information in bamboo java specs stored in github?
Asked by Sugendh K Ganga:

How do i pass get sensitive information in bamboo java specs stored in github?

If i have to pull a secret api key or a Sensitive plan variable from vault or any other secret store, and pass it to the bamboo specs stored in repository, how can this be achieved?

Any help is highly appreciated.

Thanks!


Answers:
author: Alexey Chystoprudov
body: It's not recommended to have sensitive information in repository. You should use Bamboo variables or Shared credentials to manage them at server side.

If you still need to keep secret with code, create plan variable via Bamboo UI and then export plan to Java specs with View as Bamboo Specs button at plan config. If it's "secret" variable (has password in variable name) Bamboo will encrypt it. This encrypted value can be used in your code. This encrypted value can be decrypted only by Bamboo instance which encoded it and can't be reused to configure plan at another Bamboo instance.

comments: author: Sugendh K Ganga
body: Hello Alexey,

Thanks for the quick reply. That helps.  

But the scenario or the use case that I am looking for is slightly different. Its not a sensitive plan variable that I am trying to update, but instead its an API key under the notifications tab under plan configuration that I am trying to update via bamboo java specs.  

Please find the screenshot for your reference.  

![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/41833iAF2CEB1EAB35C10E/image-dimensions/346x173?v=v2 "Capture.PNG")  

Any help in this scenario is highly appreciated


author: Alexey Chystoprudov
body: I see what you try to achieve now. It's not supported functionality. HipchatRecipient doesn't support encrypted values for api token. Created <https://jira.atlassian.com/browse/BAM-20236> to keep track on it. As you know Atlassian is gradually sunsetting Hipchat and Stride so I don't expect it will be addressed in nearest future

But this API Token field supports Bamboo variables, so you can create plan variable hipchatSecret with API token value and then set '${bamboo.hipchatSecret}' value for API Token field at Bamboo Specs.

Give it a try and let me know if it works for you


author: Sugendh K Ganga
body: Thanks Alexey. This definitely helps.


Tags: java

spec
Bamboo Email Notifications
Asked by tomrode:

Hello, I am evaluating Bamboo for our continuous integration and I have a good foundation in my understanding of this tool. I wish to email to a list of recipients for instance if a build is complete. Within the **Notifications tab**, I did a:

**Add notification,**

I used:

* Event: **All Builds Completed**
* Recipient type:**Email Address**
* User: xxxxxxxxx.com

Of course I had a legit email address. Once I finished the build I hoped I would see an email sent. However, this did not work as expected. Is something wrong with this Notification approach? Or does this need to be set up as a **Task** with in a **Job**?

Any easy suggestions much appreciated.

Thanks,

-Tom

![Bamboo Screen shot.PNG](/t5/image/serverpage/image-id/41566i0DD6146693F2A032/image-size/large?v=v2&px=999 "Bamboo Screen shot.PNG")


Answers:
author: Alexey Chystoprudov
body: [@tomrode](/t5/user/viewprofilepage/user-id/2395805) according to screenshot you provided Bamboo doesn't have SMTP server configured. See warning with link "Add an email server".


author: Omar Herrera
body: Hi [@tomrode](/t5/user/viewprofilepage/user-id/2395805), your configuration looks like expected, but let me know if you never had received an email or some build not work the notification?

If you never received a notification probably you dont have correctly setup the smtp server on you bamboo instance.

Please check the official documentation for this setup [@link](https://confluence.atlassian.com/bamboo/configuring-bamboo-to-send-smtp-email-289276984.html).

Cheers.

Omar H.
easiest way to transfer projects and plans to another bamboo instance
Asked by timothy schmidt:

I'm just starting out with bamboo.

Is there a clean / simple way to export build and deployment projects (and their constituent plans) from one bamboo instance and then import them into another bamboo server instance?

I've seen references to Bamboo specs but it's not obvious if this is the best option.

Thanks!


Answers:
author: Alexey Chystoprudov
body: It depends on complexity of your plans and scope of data you want to transfer.

If you need only configuration - use Bamboo Specs.

If you need build results + build logs and artifacts then the only option is to use instance backup, there's no functionality to export/import project or plan.

comments: author: timothy schmidt
body: Is ***configuration***defined as the actual projects, plans etc. without any associated build results, logs and data?

Tim


author: Alexey Chystoprudov
body: yes. It's possible to export existing plan/deployment configuration into Java code and use this code to create plan/deployment at another Bamboo instance


author: Venu Madhav
body: Hi Alexey,

I have the exact requirement that I want to move a single project from one bamboo server to another. But If we use the export/import concept then the import will erase existing projects.

Here I want to move one project/plan from Dev Bamboo to Prod Bamboo.

Could you please help me summarize the steps how to achieve this?

Much appreciated your help.

Venu


author: Omar Herrera
body: Hi [@timothy schmidt](/t5/user/viewprofilepage/user-id/2177473), there is a way to export a full configuration of you actual bamboo instance to the new one.

Here the official documentation [@link](https://confluence.atlassian.com/bamboo/exporting-data-for-backup-289277255.html)

If you have any question let me know.

Cheers.

Omar H.

comments: author: timothy schmidt
body: Thank you.

When importing the backup to a new host/instance, are there any specific items that must be manualy addressed somehow? Like the change in the new bamboo instance's base URL (new host) or the change in it's serverID ( BE4D-2Q5X-2GCX-RG7X ) etc.?

Tim S.


author: timothy schmidt
body: Are there any compatibility rules or matrices for this type of action?

Eg. Can I take a 6.6 configs/plans EXPORT file and import it into a 6.7 instance if the DB versions are the same? If this action is extended to artifacts and logs too, do compat. restrictions change?

Related ... are there any tools to cross check a server's configuration AFTER an import?

It seems like the capabilities are out of whack (expected ). But, I would think there would be an admin option to "check" a servers' configuration that could catch bad or "out of sync" server configurations, etc.

Thanks!


Tags: backup

export

import
Cannot connect to Bitbucket from Bamboo
Asked by Nico:

Hi could anyone tell me whats the problem?

in Bamboo i want to connect to Bitbucket, but i get:

Failed to load data from Bitbucket. \[504 Gateway Time-out\]

When i traceroute to bitbucket i get also problems see image :![Unbenannt.JPG](/t5/image/serverpage/image-id/41434i9624BD69EA1C1834/image-dimensions/693x299?v=v2 "Unbenannt.JPG")


Answers:
author: Daniel Santos
body: Hello [@Nico](/t5/user/viewprofilepage/user-id/2496250),

I guess your network firewall or similar is blocking your to access bitbucket.org from the Bamboo instance.

The following command should work if the connection is configured as expected:

```
$ telnet bitbucket.org 443
```

This is the expected result (the ip address may differ from time to time):

```
Trying 18.205.93.0...
Connected to bitbucket.org.
Escape character is '^]'.
```

Please check this page and make sure your Bamboo machine is able to reach those IP ranges: [What are the Bitbucket Cloud IP addresses I should use to configure my corporate firewall? - Atlassian Documentation](https://confluence.atlassian.com/bitbucket/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall-343343385.html)  


author: jredmond
body: Why did you black out the Bitbucket IP?


Tags: bitbucket

bitbucket-cloud

cloud
Is Bamboo able to handle end to end deployment process?
Asked by Jibin Jacob:

Hi,

I have a requirement to build CI/CD pipeline for one of the customer.

They already have a Bitbucket as version control and Bamboo for build. Can bamboo handle the end to end deployment process (Gone through Atlassian website, it says there is feature in bamboo). I just want to deploy the load modules and some source files (Scripts, Control cards etc) to target regions which are hosted in AWS.

Thanks,

Jibin


Answers:
author: Daniel Santos
body: Hi [@Jibin Jacob](/t5/user/viewprofilepage/user-id/2453907),

I have the same understanding of [@Gonchik Tsymzhitov](/t5/user/viewprofilepage/user-id/726117) which is you want to deploy the results of your build (Artifacts) and any other information you can gather from deployment tasks to your remote AWS environment.

You can nearly automate anything with Bamboo. If you don't find a specific task do do what you want you can spin a script task (and build a script) to run native OS commands to transfer your files and trigger remote calls needed.


author: Gonchik Tsymzhitov
body: Hi!

As I understand you want deploy your shared artifacts through deployment plan.

I hope this article will help for you <https://confluence.atlassian.com/bamboo/deployment-projects-338363438.html> ?

Cheers,

Gonchik Tsymzhitov