youngmon/atlassian-qna huggingface dataset:
How to run shell script to pull image from dockerhub and run it
Asked by Juan Ignacio Benito:

Hi, I am creating a pipeline, and so far I've been able to to create the image and push it to docker hub.

Now I need to log in to my EC2 instance, pull the image and run it. For that I have a shell script:

```
#!bin/bashsudo docker psecho 'Login in to docker'aws ecr get-login-password |  - docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
 'Fetching latest image'sudo docker pull juanibe/api:latestecho 'Stoping current container'sudo docker stop cont_docker_app_test
echo 'Removing old container'sudo docker rm cont_docker_app_test-old
echo 'Rename stoped container'
sudo docker rename cont_docker_app_test cont_docker_app_test_old
echo 'Starting new container'sudo docker run -d --name cont_docker_app_test -p 443:3333 -p 8001:8001 --link my-mongo-testing:my-mongo-testing juanibe/api:latest
```

And I have this yml file for bitbucket:

```

image: atlassian/default-image:latest
pipelines: default: - step: services: - docker script: - export IMAGE_NAME=juanibe/vinimayapi:$BITBUCKET_COMMIT - docker build -t $IMAGE_NAME . - docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD - docker push $IMAGE_NAME 
```

Where can I run the script??


Answers:
author: Theodora Boudale
body: Hi [@Juan Ignacio Benito](/t5/user/viewprofilepage/user-id/4203274) and welcome to the community.

One option is to commit and push your script to your repository, and then include in the yml file a command to execute this script.

The other option is to add the commands of your script in your yml file.

For both options, you can either do this on the existing step and script in your yml file, or you can add a second step and add the commands there.

Just a note that you'll need to remove 'sudo' from the script/commands. You can't use sudo in Pipelines and you don't need to, as when you are running the image you are root.

If you have any questions, please feel free to let us know!

Kind regards,  
Theodora

comments: author: Juan Ignacio Benito
body: Thank you very much Theodora! It worked as expected.

I have one question left.

I need to add environment variables (the ones that I have in the .env file) for the source code. Is there any way to hide them and use them without commiting the .env file to the repo?

Thank you again!


author: Theodora Boudale
body: Hi Juan,

You are very welcome, I'm glad to hear that this worked!

Regarding variables, you can add variables either from the **Repository settings** ( \> option **Repository variables** in the **Pipelines** section), if you want them to be available for this repo only, or at the workspace level (from workspace **Settings** \> **Workspace variables**), if you want them to be available in all repos of this workspace.

When you create a variable you'll see a checkbox with the label **Secured**. If you select that, the variable's value won't be visible (and if you attempt to print it during the Pipelines build, its value still won't be shown).

Is this something that works for you?

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
`%d` Day output from build duration for atlassian/bitbucket-build-statistics:0.2.0
Asked by yysaki:

Hello.  
Bitbucket Cloud is useful and helpful for my work.

[https://jira.atlassian.com/browse/BCLOUD-13637?error=consent_required\&error_description=Consent+required\&state=9086f647-509f-4ce2-8991-7e5674189e00](https://jira.atlassian.com/browse/BCLOUD-13637?error=consent_required&error_description=Consent+required&state=9086f647-509f-4ce2-8991-7e5674189e00)

I found out about this pipe from the URL above and tried to run it like this:

```
script:
  - pipe: atlassian/bitbucket-build-statistics:0.2.0
    variables:
      BITBUCKET_USERNAME: $BITBUCKET_USERNAME
      BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
```

And I got the following like statistics:

```
...
+-----------------------------------------------------------------+
| Bitbucket build statistics |
+---------------------------------------+--------+----------------+
| Repository | Builds | Build Duration |
+---------------------------------------+--------+----------------+
| my-company/my-project | 39 | 02:50:46 |
| my-company/other-project | 0 | 00:00:00 |
| .... | 0 | 00:00:00 |
+---------------------------------------+--------+----------------+
? Success!
```

I had one problem with this one. The pipe outputs the build duration time with the format of \`'%H:%M:%S'\`, not minutes. The build duration time for the last 30 days in my repository took about 1610 minutes (calculated based on the CLI at <https://github.com/atlassian/build-stats>), but at this time it shows \`02:50:46\` using this pipe. It's format looks like that day \`%d\` output is missing.

I'd like to know the build duration time for each repository without missing anything, so do you have any plan to add the day output to the format, or unifying the display format with minutes?


Answers:
author: Halyna Berezovska
body: [@yysaki](/t5/user/viewprofilepage/user-id/4203208) hello! Check out new version 0.2.1 and see if it is fine for you.

Cheers, Galyna


Tags: bitbucket-pipelines

build

cloud

statistic
Please help me to resolve setting up Bitbucket Server integration with Jenkins for Pipeline Project
Asked by BB999:

am getting this error"Something went wrong when trying to contact Bitbucket Server: Provided credentials cannot access the resource" while choosing Pipeline as "Pipeline script from SCM" and selecting Project Name \& Repository although Credentials created for accessing Bitbucket(returns-![](http://localhost:8080/static/3e522e7f/images/none.gif)Jenkins can connect with Bitbucket Server.) with Personal Access Token and Jenkins Credentials. And I have provided project/Reposity permissions and Access Keys for both Project and Repository levels.


Answers:
author: BB999
body: I am closing this issue it has been resolved :) It started identifying my project and repository as well whenever I have created another bitbucket credentials and selected.


author: ??_??_??_ ?__? ?__?
body: Happy new.


author: ??_??_??_ ?__? ?__?
body: Sdk


Tags: bitbucket-pipelines

server
Username removed from webhook payloads?
Asked by Dane Powell:

I see it mentioned several places that user details were removed from various Bitbucket API and services as of 29 April 2019: <https://developer.atlassian.com/cloud/bitbucket/bitbucket-api-changes-gdpr/>

However, I have several Bitbucket-integrated services that I *think* were still receiving a "username" via webhook payloads up until very recently.

Did something change recently (in the last few weeks or so) that would have caused the username to be removed? Or would this perhaps vary on an account-by-account basis, such as if the account is subject to GDPR?


Answers:
author: Dane Powell
body: Ah, nevermind, I think I figured it out.

The username reference was a red herring due to a typo in our integration, it's really referring to display_name.

The root issue is that display_name can be an empty string, unlike username before it. The bug on our end was triggered when we encountered a blank display_name for the first time.

And that might not even be related, because we suspect the reason the display_name was empty is because there was no user object due to an incorrect Git username/email address.


Tags: bitbucket-cloud

cloud
Is my "Large Repository" all .git?
Asked by lasmit:

I have a repository which is very close to being full: <https://cln.sh/S1Hv5d>

When I analyse disk use on my machine, it seems that the \`.git\` folder is using the vast majority of space: <https://cln.sh/UwRS1g>

I've run \`git repack -a -d --depth=250 --window=250\` which did seem to reduce the local file size by several hundred MB, but after pushing, I still see being 0.05 GB away from being over the limit.

The article here: <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/> doesn't mention \`.git\` at all.

I am quite happy to reduce the size of my repo, but I'm not clear on how to do that.

Any guidance would be appreciated!


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

The .git folder is essentially the repository, it's where Git stores the files of your repo, commits, tags, etc.

When you clone a repo locally, the directory that is created contains a .git folder and the rest of the files/folders in this directory are the working directory, i.e. the files and folders at the latest commit of the branch that is checked out.

If you give me the URL of the repo, I can run a git gc on it, this may be enough to reduce the repo's size. If you don't feel comfortable sharing it here publicly, you can open a ticket with the support team via <https://support.atlassian.com/contact/#/> and request a git gc for your repo. In "What can we help you with" select "Technical issues and bugs" and then Bitbucket Cloud as product.

If the git gc does not reduce the repo's size (or if you'd still like to reduce it further), I'll be more than happy to explain the options and how to do this (or you can ask the engineer who will be handling your support ticket, if you choose to open one). I would suggest running the git gc first though, as this may be enough.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How can i change expand marco title style, like color.
Asked by Jackie Chen:

Just wondering if there is any way to change the expand macro title style. ![image.png](/t5/image/serverpage/image-id/240805i9E4E62DAAC86601A/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Jackie Chen](/t5/user/viewprofilepage/user-id/5149458) and welcome to the community,

I don't think that it's possible to manipulate the title. You can change the text inside according to [the official documentation](https://support.atlassian.com/confluence-cloud/docs/insert-the-expand-macro/) though.


Tags: cloud

confluence-cloud
I changed the name on a page I can edit, but a link to that page name did not update elsewhere.
Asked by D Catanzaro:

I am updating some existing Confluence pages and when I changed a linked page name, the linked-to page did not automatically update the page name in the link. I do not have editing rights on the main page, is that why the link did not update?


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

My guess is that you embedded a URL link to the page that has moved (<https://myorg.org/wiki/display/SPACE/old+page+name>), instead of using Confluence's internal page linking \[SPACE:Old Page Name\].

Confluence would have to search and replace every page in it to be able to do that with a URL when you change the name of a page, and that is not practical. If you move to using internal links instead, the problem goes away - they use a fixed id in the background, and read the current name of the target page when rendered.


author: Craig Nodwell
body: Hi [@D Catanzaro](/t5/user/viewprofilepage/user-id/5149428) welcome to the community. Could you please include a screenshot having a bit of a time trying to understand your ask. Thanks

comments: author: D Catanzaro
body: Unfortunately, company policy does not allow me to send screen caps for security reasons.  
The example I am talking about is where I have a page of content. I changed the page name, as evidenced by the URL change.  
Another page that is being used as a sort of TOC Landing page, linked to the original page. When I changed the name, the link did not update.  
One of the first things I found on the Confluence site, is that if you change a page name, Confluence automatically updates all links to that page with the new name. That did not happen. I DO have editing rights to the page I changed, obviously. But the Edit option does not appear for me on the page containing the link. when I click the link it sends me to this page  
***Page Not Found***  
*The page you were trying to reach could not be found: it may have been renamed or moved to another space, or the name you requested may be incomplete.*  
***In This Space***  
*The page you were looking for may have been renamed to the following:*  
*\[The Name I changed the page to.\]*


Tags: confluence-server

server
Not recieving the email for reset password
Asked by Rick:

One member of my organization cannot reset your password because not receive the email notificacion.

Can you help me, pllease?.


Answers:
author: Shannon S
body: Hi [@GEA_Code](/t5/user/viewprofilepage/user-id/5149421),

Welcome to Atlassian Community. It's nice to have you join us!

I searched our bounce logs for your organization's email domain, and I see yesterday, we tried to email a user multiple times and received the following error:

```
554 5.7.1 [internal] recipient address was suppressed due to customer policy
```

Your email server may be rejecting our messages. Check with your email server admin, and then have the user try to reset their password again. If they're unsuccessful, please have your site admin raise a ticket with the support team:

<https://support.atlassian.com/contact>

If you have any trouble doing that, please let me know.

Take care,

Shannon \| Atlassian Cloud Support


author: Alex Koxaras _Relational_
body: Hi [@GEA_Code](/t5/user/viewprofilepage/user-id/5149421) and welcome to the community,

I've escalated this to Atlassian, and someone will come to check if that person's email is bounced from Atlassian. Out of curiosity, did that user check their spam folder?


Tags: cloud

confluence-cloud
Smart courses disapared after migration
Asked by Martin Svensson:

I lost all my courses after a migration from server to data center.

I exported and imported as described.

Any ideas?


Answers:
author: Salma Sahnoun_Creativas_
body: Hi [@Martin Svensson](/t5/user/viewprofilepage/user-id/3615203) ,

Please do not hesitate to contact our support team through the [support desk](https://creativas.atlassian.net/servicedesk/customer/portal/10). They'll look into this as soon as possible.


author: Alex Koxaras _Relational_
body: Hi [@Martin Svensson](/t5/user/viewprofilepage/user-id/3615203)

Best thing to do, is to contact directly the vendor. I would assume that you followed their instruction, correct?


Tags: confluence-server

server
Confiforms Comment Fields
Asked by Chris Iacovelli:

Does Confiforms support dispositioning of comments, e.g., declined, in progress, resolved?

I know I can build a "sub-form" for running comments against a given record but that seems to be a bit heavy for simple dispositioning.

I'd really love to see the backlog too, but understand that is just for partners (a boy can dream though can't he).


Answers:
author: Alex Medved _ConfiForms_
body: Hi

What kind of comments are you talking about [@Chris Iacovelli](/t5/user/viewprofilepage/user-id/1199594) ?

Confluence page comments? Or inline comments that you can have inside ConfiForms record? On ConfiForms server edition there is a "comment" field type that covers the latter

Alex

comments: author: Chris Iacovelli
body: [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630) the comment is inline as a Comment field data type.

On our server/data center implementation, I see that there is the ability to delete comments but I do not see the capability to disposition them as mentioned in my original post (full of ambiguities and vagueness).


author: Alex Medved _ConfiForms_
body: Probably I dont understand your idea around "dispositioning of comments"... I guess, there is no functionality your are looking for, sorry


author: Chris Iacovelli
body: dispositioning means the marking through a comment lifecycle, e.g., reviewed, resolved, incorporated, not incorporated, WIP, completed, ...

similar to what confluence does about an inline comment. i gives people the ability to respond inline to the comment, have discussions back and forth, and then mark the comment as resolved.

a guy can wish for the moon and the stars but still be happy with what he can get :)


author: Alex Medved _ConfiForms_
body: In this case it should be something like a separate form that tracks the "dispositioning"... Comments in ConfiForms are for capturing comments - they dont act as an inline tasks


author: Chris Iacovelli
body: [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630) i was hoping for an easy out here. already starting down the path of sep form for managing the lifecycle around comments. thanks for confirming.


Tags: comment

confiforms

confluence-server

server
How do I delete a GRID page folder?
Asked by Madar_ Andrew:

How can I delete a GRID page and attachments?


Answers:
author: Jack Nolddor [Sweet Bananas]
body: Hi [@Madar_ Andrew](/t5/user/viewprofilepage/user-id/5149198) and welcome!

Could you further explain what a GRID page is? Or give to us some examples?  

As a general answer, documentation about page deletion can be found at here:  
<https://support.atlassian.com/confluence-cloud/docs/delete-restore-or-purge-a-page/>

Cheers!


Tags: cloud

confluence-cloud
Fuzzy search for similar Page Labels
Asked by Santy Balan:

The Title \& Text field can use wildcards \* and fuzzy operators like \~

At times, we need to search for slight variations of the page labels

Is there any way to use a wildcard or fuzzy operator to search for similar page labels ?

like

Label \~ "big-toe-install"

or

Label = "\*big-toe-install\*"


Answers:
author: Oliver Siebenmarck _Polymetis Apps_
body: Hi [@Santy Balan](/t5/user/viewprofilepage/user-id/4850797) ,

As far as I am aware, there is no way to do fuzzy label searches.

As a really quick hack, you could try to leverage the label autocomplete feature to find labels that start with the same letters. Not sure if that still helps nowadays, but there used to be at least one label manager app for Confluence, so that might also be a way to get an overview of the labels used.

Hope that helps,  
Oliver


Tags: confluence-server

cql

server
Limit Confluence CQL return results
Asked by Santy Balan:

Using CQL i want to restrict the results returned by a query to a limit of say 25 or 50. How do i specify that limit in the CQL ?

(Label = "sample-issue" OR Title \~ "sample-issue\~") AND (type IN (space, page, blogpost)) Lastmodified \> now("-24M")


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Santy Balan](/t5/user/viewprofilepage/user-id/4850797) ,

are you referring to a Rest API call or to a search using confluence top navigation bar?

Fabio


Tags: confluence-server

cql

server
Does the total number of attachments include versions?
Asked by Khloe Salmon:

Hi all,

Hoping someone can help to clarify this!

When opening the advanced search, then selecting only 'of type = attachments' does the total number that appears include versions? So, in this example do we have 57,049 individual attachments, or does that include versions of the same attachment?

Thank you!

Khloe

![Screenshot 2023-02-16 162646.png](/t5/image/serverpage/image-id/240681i94053B737892795B/image-size/large?v=v2&px=999 "Screenshot 2023-02-16 162646.png")


Answers:
author: Nic Brough -Adaptavist-
body: No, this does not include versions, Confluence only reports on the current version.

comments: author: Khloe Salmon
body: Super, thanks for clarifying!


Tags: confluence-server

server
System Error because of Open Files ((Too many open files))
Asked by Naqibullah Azizi:

Hello Community,

unfortently we have an issue with our server going down because of too many open files.  
We followed the recommendation from Atlassian and increased already the maximum limit of open files, as mentioned here: [Too many open files error \| Confluence \| Atlassian Documentation](https://confluence.atlassian.com/confkb/too-many-open-files-error-659784628.html)

**This is the cause that we get:**

javax.servlet.ServletException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getConfluenceResourceTags' in class com.atlassian.confluence.setup.velocity.VelocityFriendlyPageBuilderService threw exception java.lang.RuntimeException: java.io.FileNotFoundException: /data1/confluence/webresource-temp/272681.cachedfile (Too many open files) at /decorators/includes/header.vm\[line 96, column 24\]

org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getConfluenceResourceTags' in class com.atlassian.confluence.setup.velocity.VelocityFriendlyPageBuilderService threw exception java.lang.RuntimeException: java.io.FileNotFoundException: /data1/confluence/webresource-temp/272681.cachedfile (Too many open files) at /decorators/includes/header.vm\[line 96, column 24\]

Invocation of method 'getConfluenceResourceTags' in class com.atlassian.confluence.setup.velocity.VelocityFriendlyPageBuilderService threw exception java.lang.RuntimeException: java.io.FileNotFoundException: /data1/confluence/webresource-temp/272681.cachedfile (Too many open files) at /decorators/includes/header.vm\[line 96, column 24\]

java.io.FileNotFoundException: /data1/confluence/webresource-temp/272681.cachedfile (Too many open files)

/data1/confluence/webresource-temp/272681.cachedfile (Too many open files)

Does anybody have an idea where the problem could be?  
Should we increase the maximum open file limit even more?

Thanks in advance and Best Regards

Naqibullah


Answers:
author: Kurt Klinner
body: [@Naqibullah Azizi](/t5/user/viewprofilepage/user-id/5141954)

Which approach did you follow limits.conf vs. systemd? Can you share what you configured? Did you restart Confluence / the server after adjusting the limits?

Cheers

Kurt


Tags: confluence-server

server
when removing a watcher from a space - do they receive a notification of the removal?
Asked by Greg Becker:

when removing a watcher from a space - do they receive a notification of the removal?


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Greg Becker](/t5/user/viewprofilepage/user-id/4528911)

No, they will not receive any notification.

comments: author: alexander_baumann
body: great news.


Tags: cloud

confluence-cloud

watcher
apps for attachment editing in Confluence Cloud
Asked by David Brotzer:

Hi,

we need an app for Confluence Cloud to semlessly edit attachments without having to donload and upload documents every time. Parallel editing should be possible or, if not; users should get an alert or parallel editing should be prohibited at all.

Our requirements from IT security perspective:

* data has to be encrypted both in transit and at rest
* data residency
  * data storage within the Atlassian Cloud infrastructure is fine
  * when holding data on third-party servers, they have to be on certified server infrastructure within Europe (or even better Germany) and data encryption (in transit and at rest) must be 100%

We evaluated GoEdit ([https://marketplace.atlassian.com/apps/1211160/goedit-simply-edit-attachments?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1211160/goedit-simply-edit-attachments?hosting=cloud&tab=overview)) which is fine from a functional perspective, but not wrt IT security.

Any suggestions on alternatives?

Thank you in advance :-)


Answers:
author: Brant Schroeder
body: [@David Brotzer](/t5/user/viewprofilepage/user-id/3910960) I would suggest looking at using the O365 or Google Docs integrations. I believe that some of them like this one allow you to edit in Confluence. [https://marketplace.atlassian.com/apps/1216978/google-drive-and-docs-for-confluence?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1216978/google-drive-and-docs-for-confluence?hosting=cloud&tab=overview)


Tags: cloud

confluence-cloud