youngmon/atlassian-qna huggingface dataset:
Change the Date/Time Format to 24H
Asked by Norbert:

Hello

Is it possible to change the Date/Time Format in Bamboo to use the the european type instead of the US format?  
Especially the I would like to have the 24H Format for time.


Answers:
author: Przemek Bruski
body: Try changing the following entries in BambooActionSupport.properties:

global.dateFormat.date = dd MMM yyyy  
global.dateFormat.datetime = dd MMM yyyy, h:mm:ss a  
global.dateFormat.time = h:mm:ss a  
global.dateFormat.ago = ago  

# Webwork default values  
webwork.date.format=dd MMM yyyy, h:mm:ss a

comments: author: Norbert
body: sounds promising but...

where do i find the BambooActionsupport.properties?

I'm using Bamboo 3.4.3 on Java 32 bit 1.6.25  


author: Przemek Bruski
body: Look for atlassian-bamboo-language-3.4.3.jar in your Bamboo installation directory


author: Norbert
body: Thanks a lot, it worked  
only needed some time to figure out, how to modify a jar file (i'm new to this stuff)


author: Tobias Kremer
body: Is hacking inside a jar file realy such a good idear?  
You would have to do this again after any update...


author: Norbert
body: IMHO its a terrible idea  
but there is no other way  
and yes, you have to change it after every update


author: Martin Kreis, Patrick Hediger
body: Is there today any other way to do this?


author: Przemek Bruski
body: no


author: schirmacher
body: Maybe it is possible in 2019? Today?


author: Tore Hermansen
body: We've got this issue as well and I can't say modifying a jar file to set date format sounds like a good idea...


author: ?????? ??????????
body: Hi,

Do you know Atlassian add this setting to GUI without editing jar files?

comments: author: ?????? ??????????
body: In latest version 6.7.1 ?


author: Michael Piefel
body: I'm aghast. Well-known issue, quite easy to fix. If at least Atlassian had settled for a more universal, scientific format.


author: J. Wilkes
body: I'd prefer a cleaner way than above solution. Is it really that hard to allow users to change such a setting?

The other Atlassian products allow to do that in the UI; having a configuration file outside the JAR overriding the default shouldn't be too difficult IMO:
Is there a recommended way to upgrade Bamboo remote-agents?
Asked by Elvir Hadzic:

Or do I have to remove the service (using Windows Server 2008) and the agent and then install the new agent exactly like I did the old one?

Or can I maybe even just continue using the old agent when upgrading Bamboo?

I couldn't find any up-to-date information on this.


Answers:
author: Przemek Bruski
body: > I couldn't find any up-to-date information on this.

Agents have an auto upgrade mechanism (and also downgrade mechanism, to some extent). You shouldn't need to worry about agent upgrades. If you encounter a problem with the auto upgrade, let us know.

comments: author: Elvir Hadzic
body: Thank you very much!


author: Gary Donovan
body: Thanks Przemek,

Is it possible to update the Bamboo documentation to incorporate this knoweldge?

gary


author: Felipe
body: Hi [@Przemek Bruski](/t5/user/viewprofilepage/user-id/781481) would love to see some documentation about this "auto-upgrade" feature of remote bamboo agents. A client is requesting that we manually upgrade them, and I would like to point out that they upgrade themselves. Thanks.


author: Mateusz Miara
body: Hello,

if you look at Bamboo [Upgrade Guide](https://confluence.atlassian.com/display/BAMBOO/Bamboo+upgrade+guide) , there's a section called "Automatic update of remote agent", which explains this. I've also added that information to [Bamboo remote agent installation guide](https://confluence.atlassian.com/display/BAMBOO/Bamboo+remote+agent+installation+guide).

Cheers


author: hhaag
body: The "remote agent installation" guide is unacceptable and should be called "remote agent execution" ! You really don't mention anywhere the right command to install the damn agent!!! It is just a word at the end of it "`install`" and took me weeks to find it!!! In the instructions on the "agent" section inside the Bamboo-Server is also not mentioned anywhere!


author: James Brown
body: This is unacceptable documentation. Check this page, which takes you to upgrading Bamboo and not upgrading an agent. Follow the only link, which is for installing an agent, once again not for upgrading an agent.


Tags: remote-agent

upgrade
Where is the right place to put the plugin jar file?
Asked by Akira Tsuchiya:

I developed a plugin for Bamboo.

I put the jar file under the \[Bamboo Inst Dir\]/webapp/WEB-INF/lib and the plugin works fine.

But I wonder where the right place is.

There is the directory of \[Bamboo Home\]/plugins.

Which is the right place and what is the difference between them?


Answers:
author: Przemek Bruski
body: I may be wrong, but I think WEB-INF/lib location is for plugins 1 only. $BAMBOO_HOME/plugins is for both plugin 1 and plugin 2 (when manually installed). Put it into /plugins - in this way it will survive reinstallations.


author: Julien Hoarau
body: You should use the **Universal Plugin Manage** r (*Admin \> Administration \> System \> Plugins*) to install plugin in Bamboo.

<http://confluence.atlassian.com/display/UPM/Adding+a+Plugin#AddingaPlugin-Uploadingyourownplugin>

If you still want to install them manually, put them in **$BAMBOO_HOME/plugins**

comments: author: Akira Tsuchiya
body: Thank you for your info.

I tried to install my plugin using UPM, but it siad, "The plugin is a version 1 plugin. Version 1 plugins cannot be dynamically installed."

I refered to UPM Document. But it does not describe about the error.

What should I do to my plugin jar file.

I guess I should edit the atlassian-plugin.xml.

Is it right?  


author: Przemek Bruski
body: > If you are developping a new plugin, you should definitely used plugin version 2.

Unless you plan to use it on an older version of Bamboo (pre 3.3), where version 2 is not supported on agents.


author: Julien Hoarau
body: Are you trying to install a downloaded plugin or is it yours?

If you are developping a new plugin, you should definitely use plugin version 2, if you can (Bamboo \> 3.3 and compatible module types).

<https://developer.atlassian.com/display/BAMBOODEV/Bamboo+Plugin+Module+Types>

<https://developer.atlassian.com/display/PLUGINFRAMEWORK/Version+1+or+Version+2+Plugin+(Glossary+Entry)>


author: Akira Tsuchiya
body: Thank you for your valuable information.

Based on your information, I tested my plugin on various versions of Bamboo.

The test results are as below.

1. Older versions of Bamboo than 3.2, including 3.2

Plugin Type: 1

atlassian-plugin.xml Root Symantec: \<atlassian-plugin key="\*" name="\*"\>

Directory to place jar: \[Bamboo Inst Dir\]/webapp/WEB-INF/lib

2. Later versions of Bamboo than 3.4, including 3.4

Plugin Type: 2

atlassian-plugin.xml Root Symantec: \<atlassian-plugin key="\*" name="\*" \<tt\>plugins-version="2"\</tt\>\>

Directory to place jar: \[Bamboo Home\]/plugins

3. Bamboo 3.3

Both plugin types of 1 and 2 do not apply to the version 3.3.

The error message below appears when using plugin 1 or plugin 2.

\[XWorkPluginConfigurationMaintainer\] Error while reloading XWork configuration to include \*.\*\*\*Actions (null)  
java.lang.NoClassDefFoundError: com/atlassian/bamboo/plan/cache/ImmutablePlan

I cannot configure a plugin for Bamboo 3.3.


author: Przemek Bruski
body: Did you compile it against 3.3 sources?


author: Akira Tsuchiya
body: Thank you for your advice. The issue has been solved.
Can't clone a job in Bamboo
Asked by Julio Mugabe:

I'm using a bamboo 3.3.3 and I have admin rights to clone in all our plans. However when I try to clone a job in a plan, it does not create it after clicking the "create job" button. It does not return any errors on the UI and the logs show no errors as well. Does anyone know of a fix to this?


Answers:
author: Julio Mugabe
body: The problem was actually browser related. Did the same in fire fox and it worked.
How to manage/manipulate/edit/replace the build link in a PR
Asked by John Macdonald:

Is there a method to add a link, or manipulate the link that shows up as the build link in a PR?

Currently, our system uses Jenkins integration to generates this build and link. We'd like to add a second link to a separate build repository.


Answers:
author: seanaty
body: All build statuses are ultimately created buy calling this API <https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bcommit%7D/statuses/build>

Depending on what integration you're using, they'll ask for some type of credentials to be able to fetch your code as well as post build statuses to this API.

Bitbucket pipelines/Jenkins/Bamboo would all use this API.

You may have as many build statuses per commit.

Hope this helps!


Tags: bitbucket-cloud

cloud
Push image using Role
Asked by Alex Williamson:

Hello we're using roles to switch to our sub accounts.

I haven't found a way to use this with \`pipe: atlassian/aws-ecr-push-image:1.4.2\` yet.

Is there sample code for this? I don't understand how oidc:true plays with this.

Thanks!

Alex


Answers:
author: Igor Stoyanov
body: Hi [@Alex Williamson](/t5/user/viewprofilepage/user-id/3749630) . Thanks for your question. Seems like you missing variable AWS_OIDC_ROLE_ARN. According to readme, you should try the next:  

Build and push the image with OpenID Connect (OIDC) alternative authentication without required `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`. Parameter `oidc: true` in the step configuration and variable `AWS_OIDC_ROLE_ARN` are required:  

```
- step:    oidc: true    script:      # build the image      - docker build -t my-docker-image .      # use the pipe to push the image to AWS ECR      - pipe: atlassian/aws-ecr-push-image:1.4.2        variables:          AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION          AWS_OIDC_ROLE_ARN: 'arn:aws:iam::123456789012:role/role_name'          IMAGE_NAME: my-docker-image
```

<br />

Regards, Igor

comments: author: Igor Stoyanov
body: Also this may help you to setup AWS_OIDC_ROLE_ARN on AWS side. [using-bitbucket-pipelines-and-openid-connect](https://aws.amazon.com/blogs/apn/using-bitbucket-pipelines-and-openid-connect-to-deploy-to-amazon-s3/) , [bitbucket-guide-openid-connect](https://support.atlassian.com/bitbucket-cloud/docs/deploy-on-aws-using-bitbucket-pipelines-openid-connect/)


Tags: aws

bitbucket-pipelines

cloud
Failed to deploy a lambda with aws-lambda-deploy
Asked by thierry_paret:

I'm trying to fix this error when deploying my lambda:

INFO: Writing results to file /opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/aws-lambda-deploy-env  
Traceback (most recent call last):  
File "/pipe.py", line 268, in <module>  
[pipe.run](http://pipe.run/)()  
File "/pipe.py", line 261, in run  
self.update_function_code()  
File "/pipe.py", line 213, in update_function_code  
self.write_update_response_to_file(response)  
File "/pipe.py", line 220, in write_update_response_to_file  
with open(self.update_response_file_path, 'w') as result_file:  
PermissionError: [Errno 13] Permission denied: '/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/aws-lambda-deploy-env'  
`I tried to use a documented fix : `  

```
rm -rf /opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/aws-lambda-deploy-env
```

`but it didn't work on my side`


Answers:
author: thierry_paret
body: Fixed by changing the rm command with :

```
rm -rf /opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/
```


Tags: aws

bitbucket-pipelines

cloud

lambda
Self-hosted runners - use a local dind
Asked by Laura Pons:

Hello,

We are setting up self-hosted runners to run the scripts on a hosted server instead of using the docker hub. We tried to do some tests to see what's best in terms of performance.

Ideally we would like to run the scripts on the machine where the runner is set up (this computer has all dependencies and libraries required to execute bitbucket pipelines). But I dont' think this is possible.

Furthermore, we would like to copy the compiled files from the pipeline to the server (to have local backups of the releases automatically).

Another alternative we tried is using the docker dind (docker in docker). We have docker images created for each project and uploaded on Docker Hub, and can use this feature to run a project docker image inside the docker runner container. For this option, it would be ideal if docker could load the docker image directly from the server (if downloaded previously already) instead of connecting with Docker Hub and downloading the image each time the pipeline is run (this would prevent more pipeline execution time).

Any idea of how to do that? Maybe adding some additional commands when setting up the docker-runner container?


Answers:
author: Theodora Boudale
body: Hi Laura,
> Ideally we would like to run the scripts on the machine where the runner is set up (this computer has all dependencies and libraries required to execute bitbucket pipelines). But I dont' think this is possible.

A runner doesn't provide access directly to the host file system. However, it is possible to use pipes, so you could use e.g. the following pipe to run a script on your server:

* <https://bitbucket.org/product/features/pipelines/integrations?p=atlassian/ssh-run>

> Furthermore, we would like to copy the compiled files from the pipeline to the server (to have local backups of the releases automatically).

For this purpose, you could use rsync, scp, ftp, or another protocol in order to transfer the files from the runner to the server.
> Another alternative we tried is using the docker dind (docker in docker). We have docker images created for each project and uploaded on Docker Hub, and can use this feature to run a project docker image inside the docker runner container. For this option, it would be ideal if docker could load the docker image directly from the server (if downloaded previously already) instead of connecting with Docker Hub and downloading the image each time the pipeline is run (this would prevent more pipeline execution time).

I'm afraid that this is not possible, the image needs to be hosted in a docker registry that is accessible on the internet.

If you have any other questions, please feel free to let me know.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-runners

cloud

docker
How to check who deleted a specific file if you don't know the commit, data and even branch?
Asked by Akarshit Verma:

How to check who deleted a specific file if you don't know the commit, data and even branch?


Answers:
author: Caroline R
body: Hi, [@Akarshit Verma](/t5/user/viewprofilepage/user-id/4559428)! Welcome to the community!

If you have the file name, you can run the following command to see the changes of this file even if the file was deleted:

    git log --full-history  -- filename

In case you would like to see just the last commit, which deleted the file, use -1 in the command above:

    git log --full-history -1 -- {file name}

This will show you the author and the date of this commit.

I hope this helps, but do let me know if you have any questions.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Bitbucket wants a usercertificat
Asked by Fabian Arndt:

Hello,

We recently updatet Bitbucket to 7.16.0 and since the update Edge and Chrome request a User Certificate to login. If we klick "Abort" the login Mask is appearing. But its a Bit annoying.

Thanks :)


Answers:
author: Christian Glockner
body: Hi Fabian,

Either this is something implemented on your load balancer or reverse proxy server, or something that a third-party app you installed on Bitbucket Server provides - it's not something that Bitbucket Server would do out of the box.

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: Fabian Arndt
body: Thanks for your answer. But neither a Proxy or another app is in place.

User -\> Firewall -\> Nat via IP Tables -\> Bitbucket HTTPS


Tags: bitbucket-server

server
How can I upload to an S3-compatible object store that is *not* aws?
Asked by Nick Reilingh:

I am running an S3-compatible object store called MinIO and would like to upload to it from a bitbucket pipeline. Do any of the existing pipes allow for defining the S3 API location instead of an AWS region? If not, what would be the most effective way to implement this in a pipeline?


Answers:
author: Nick Reilingh
body: Figured out the answer. You can use the [aws-s3-deploy](https://bitbucket.org/atlassian/aws-s3-deploy/src/master/) pipe and then add the endpoint URL in the EXTRA_ARGS variable.

```
- pipe: atlassian/aws-s3-deploy:1.1.0
  variables:
    EXTRA_ARGS: --endpoint-url https://my_api
```


Tags: aws

bitbucket-pipelines

cloud
Bitbucket commits view loses commit history
Asked by mbm:

Under some scenarios, Bitbucket stops displaying commits for a branch, even though the repository itself is fine.  

Loads of people "fixing" it by re-pushing their commits and branches. Would be nice to find this needle in the haystack and remove it.  

This has been around a while and perhaps not understood well. The Atlassian comment about it being caused by a forced push ignores the underlying bug.  

> Problem {#toc-hId--1215881652}
> ------------------------------
>
> You are not seeing previously available commits in your repository. These missing commits are usually a result of a force push that has rewritten history in the Git repository.

Here's more user feedback... 4k views and counting...  

<https://stackoverflow.com/questions/61002882/bitbucket-not-showing-recent-commits-but-commits-are-still-present>


Answers:
author: Caroline R
body: Hi, [@mbm](/t5/user/viewprofilepage/user-id/3731330)!

Thank you for reaching out to Atlassian Community!

It looks like you're affected by a bug. This bug can occur intermittently, and our team is already looking into addressing it:

* <https://jira.atlassian.com/browse/BCLOUD-19548>

As you have mentioned, as a workaround (while this problem is not fixed), you can push another commit or a new branch to the repository.

Our development team will post an update on the bug report when this is fixed. If you are not familiar with our Bug Request Policy, you can read more about it [here](https://confluence.atlassian.com/support/atlassian-cloud-bug-fix-policy-206865884.html).

You can add yourself as a watcher (by selecting the **Start watching this issue** link in the bug report) if you'd like to get notified via email on any updates and also select the **This affects my team** link to indicate you are affected by this issue.

Please, feel free to share any additional questions or concerns regarding this case.

Kind regards,  
Caroline

comments: author: mbm
body: Wow, that was really precise and helpful, thank you Caroline!


author: Caroline R
body: Hi, [@mbm](/t5/user/viewprofilepage/user-id/3731330)! I'm glad to help :)

Kind regards,  
Caroline


author: Raoul
body: Well this had me somewhat worried and doubting everything I knew and ever did -

But the empty commit fixed it - thanks for sharing, and saving me a lot of new, grey hair ;)


Tags: bitbucket-cloud

cloud
repository size exceeds limit
Asked by gotravelly:

hello can you help my because my repo its exceeds 4.0GB limit and i already enable delete dangling but still not working

Can technical assistance help me?

Thanks

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


Answers:
author: gotravelly
body: Hi, its already fine. Thank you for your help.


author: Caroline R
body: Hi, [@gotravelly](/t5/user/viewprofilepage/user-id/4558681)! Welcome to the community!

Thank you for reaching out to Atlassian Community!

I ran the GC against your repository and we managed to reduce its size. Prior to proceeding with the next push to the remote repository, please make sure that all collaborators of the repository take a fresh clone of the repo from Bitbucket to avoid pushing the old/cleanup history back and thus inflating the repository size once again.

We already have a feature request to allow users to mark repositories for git GC, as you can check here:

* <https://jira.atlassian.com/browse/BCLOUD-11593>

Please consider adding yourself as a watcher to receive the updates as we make progress with this. If you are not familiar with our Feature Request Policy, you can read more about it [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Regarding the feature "Delete dangling commits when over size limit", could you confirm if you enabled it before the repository exceeded the size limit?

Thank you.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Probl?me de s?curit? Confluence
Asked by vlacour97:

J'ai remarqu? une fail de s?curit? avec Confluence. Celui-ci me lance automatiquement un script de minage et ?a cause de gros probl?mes de s?curit? !

Voici la commande lanc? par confluence: ./.zsh --log-file=/etc/.etc --donate-level 0 --keepalive --no-color --cpu-priority 5 -o 80.211.206.105:9000 -u clean -p x -k --coin monero --background

En faisant mes recherches, je suis tomb? l?-dessus: <https://www.techradar.com/news/atlassian-confluence-hacked-to-mine-monero>

Pourriez-vous m'aider ? r?gler la situation ?

Merci


Answers:
author: vlacour97
body: Update pour r?gler temporairement le probl?me, j'ai renomm? le fichier /tmp/.zsh


Tags: bitbucket-cloud

cloud
Possible to print latest CHANGELOG.md version update?
Asked by Henrik Wassdahl:

After the previous step successfully deploys, it would be great to announce in Slack the latest changes, by looking at the latest version update CHANGELOG.md

Is this currently possible?


Answers:
author: Igor Stoyanov
body: Hi [@Henrik Wassdahl](/t5/user/viewprofilepage/user-id/4558183) . Thanks for your question. Please provide more details about your case. Some example will be good to help you.  

Regards, Igor.


Tags: bitbucket-pipelines

cloud

slack
History of who & how-many times download my repository
Asked by Dipak Panchal:

Hello Atlassian Community

Thank you for providing your best support to us.

We need your little help.

Actually, I want to check history of Who \& How many times download my repository ?

So, If you can provide some hints or information regarding how to check download repository histories then It will be great help us for our Organization.

In advance,

Thank you very much for your support.


Answers:
author: Caroline R
body: Hi, [@Dipak Panchal](/t5/user/viewprofilepage/user-id/3406024)!

Thank you for reaching out to Atlassian Community!

Currently, this information is not available on the Audit log, but we already have a feature request to add this and other information there as you can see here:

* <https://jira.atlassian.com/browse/BCLOUD-9622>

I would suggest that you add your vote there (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features.

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

I see that you have access to a workspace that is under the Standard billing plan, so you should be able to open a support ticket if you'd like us to investigate this further.

You can open a support ticket via [https://support.atlassian.com/contact](https://support.atlassian.com/contact/#/), in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as the product. The support ticket will be visible only to you and Atlassian staff.

Please, feel free to share any additional questions or concerns regarding this case.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud