youngmon/atlassian-qna huggingface dataset:
I don't get invite email.
Asked by Eugene Bulgakov:

Hello, Atlassian

Hope you are doing fine.

In August, my project manager sent an invite to my email: eugenebulgakov@libertyfurn.com and I was able to receive an invite to Bitbucket repo.

From last week, I was unable to work on the project, so they revoked access.

Today, we are about to give access again.

He tried to send invite more than 10 times, but I don't get any invite email.

So I tried it with my own repo: I sent invite to eugenebulgakov@libertyfurn.com.

But it's also not working.

Actually, I can't see any email related with Bitbucket.

I want to fix it as soon as possible.

Look forward to hear from you.

Thanks.


Answers:
author: Theodora Boudale
body: Hi Eugene,

I checked in our system and I saw some hard bounce events for your email.

It looks that Atlassian emails were sent while your email account was not operational. The hard bounce informs us that the email does not exist and in this case it is placed in a suppression list, as we no longer try to resend to non-existing emails.

I went ahead and removed your email from the suppression list, could you please ask your project manager to send a new invitation now?

A new invitation needs to be sent, as the previous ones were dropped.

Please feel free to let me know if things are ok now and if you need anything further.

Kind regards,  
Theodora

comments: author: Eugene Bulgakov
body: Thanks. My project manager sent invite again and it eventually worked.


author: Theodora Boudale
body: That's good to hear, thank you for the confirmation and you are very welcome!


Tags: bitbucket-cloud

cloud
Install dependencies before deploy
Asked by Lucas Luciano Picollo:

I'm currently trying to integrate the AWS SAM deployment process through Bitbucket pipeline but I might be misunderstanding something.

I have a Python Lambda function and a specific requirements.txt file for each environment, what I'm trying to do is to build my lambda function with its dependencies and deploy it to AWS. But after the deployment step, the dependencies are not deployed and my lambda is unable to run.

How I'm supposed to build my application? Does the aws-sam-deploy handles it or should I do it manually?


Answers:
author: Halyna Berezovska
body: Hello [@Lucas Luciano Picollo](/t5/user/viewprofilepage/user-id/4133304) !

Lambda function does not do anything with installing dependecies.

The dependencies should be installed and packaged to zip file that is passed as variable to our aws-lambda-deploy pipe, for example.

If you want to use lambda stack with cloudformation, then it is more apporpiate to use aws-sam-deploy, right.

Look at these pipes readme and decide what is more appropriate to you:

<https://bitbucket.org/atlassian/aws-sam-deploy/src/master/>

<https://bitbucket.org/atlassian/aws-lambda-deploy/src/master/>

Looking forward to see your next feedback and I can help with chosen solution.

Regards, Galyna


Tags: aws

bitbucket-pipelines

cloud
Could we put the Codedeploy pipe in a python or .sh file? If yes, how?
Asked by Abryan Manalansang:

I want to put the entire codedeploy pipe in a file. Is this possible? How can it be achieved?

```

- pipe: atlassian/aws-code-deploy:0.5.3
  variables:
    AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
    AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
    AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
    APPLICATION_NAME: $APPLICATION_NAME
    S3_BUCKET: $S3_BUCKET
    COMMAND: 'upload'
    ZIP_FILE: 'application1.zip'
    VERSION_LABEL: 'my-app-1.0.0'
    FOLDER: 'sample-codedeploy'
- pipe: atlassian/aws-code-deploy:0.5.3
  variables:
    AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
    AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
    AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
    APPLICATION_NAME: $APPLICATION_NAME
    DEPLOYMENT_GROUP: $DEPLOYMENT_GROUP
    S3_BUCKET: $S3_BUCKET
    COMMAND: 'deploy'
    WAIT: 'true'
    VERSION_LABEL: 'my-app-1.0.0'
    IGNORE_APPLICATION_STOP_FAILURES: 'true'
    FILE_EXISTS_BEHAVIOR: 'RETAIN'
    FOLDER: 'sample-codedeploy'
```


Answers:
author: Abryan Manalansang
body: I think I found it. Can someone confirms if this correct?

<https://bitbucket.org/awslabs/aws-codedeploy-bitbucket-pipelines-python/src/master/codedeploy_deploy.py>


Tags: aws-code

bitbucket-pipelines

cloud
Mail server - Use Office 365 Direct Send config
Asked by kriegalex:

Hi,

Up until now, my company was using one of our Office365 account as config for the atlassian mail server functionality (also in other Atlassian products).

Because of the extreme amount of e-mails now located in the "Sent" folder of this e-mail (mine), I am trying to use another way. For now, we don't want to buy a license just to use as a dummy sending e-mail.

I've found this [documentation for Office 365](https://docs.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365#option-2-send-mail-directly-from-your-printer-or-application-to-microsoft-365-or-office-365-direct-send). The Option 2 seems intersting to indeed avoid paying for a dummy mailbox.

I've changed my TXT DNS as advised, using Bitbucket's server IP and I've configured Bitbucket as such :

![screenshot_1.png](/t5/image/serverpage/image-id/114915iCD67CCBDC548ECC1/image-dimensions/414x356?v=v2 "screenshot_1.png")

I've tried with and without the username set to equal the "Email from" field, but it doesn't work.

In the logs, it says :

```
java.net.ConnectException: Connection refused (Connection refused). Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: domain-com.mail.protection.outlook.com, 25; timeout 30000;
```

I've checked with a DNS tool to be sure the DNS config was propagated. Of course, my config is not using domain-com, but a real one.

**So, is this method supported by atlassian products ? If not, could it be, so we can use any email we want without having actually to create it as a mailbox and pay for the license ?**


Answers:
author: Christian Glockner
body: Hi,

This should definitely work, because it's essentially unauthenticated SMTP. Based on the error, it could be caused by a firewall issue, maybe one that prevents outbound connections from your Bitbucket Server instance.

A simple test to confirm would be running something like **telnet domain-com.mail.protection.outlook.com 25** to see if you're able to establish a connection or not.

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: kriegalex
body: In the end, I did not use this method for the e-mail sending, but I think you are right and I forgot to check in some firewall settings somewhere.


Tags: bitbucket-server

email

ms-office-365

server

smtp
Cannot connect to bitbucket
Asked by NI, Jiashun:

Hi team

We can't retrieve revision from remote end .We can't push code from local to origin.We can't deploy code to sandbox.Those are issues we are facing.Could you help to check what's wrong with bitbucket?![bitbucket issue.png](https://community.atlassian.com/t5/image/serverpage/image-id/114876i331A80A863880430/image-size/large?v=v2&px=999 "bitbucket issue.png")BR

Gary


Answers:
author: Theodora Boudale
body: Hi Gary,

Bitbucket had an incident yesterday (<https://bitbucket.status.atlassian.com/incidents/bdqwn7vmxpw3>), however this affected the website so it may not have had to do with these issues.

Are you still having the same problems? If so, could you please let me know:

* Is it only a specific repo you have issues with? Or with multiple ones? This is to narrow down whether this is a repo specific issue or not.
* Do you have this issue from a specific machine only? If you or another user tries to clone/push to the same repo from a different computer, does this succeed or do you get the same error?
* Based on the output, it looks that you are using HTTPS. Are you able to try [SSH](https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/) instead and see if this works for you?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Can't push to a remote repository on my github
Asked by Kevin Rodrigue Shema BIVEGETE:

I am trying to push to a remote repository and it isn't working.

Here is the code I wrote trying to push:

git config --global user.name "*I put my registered github username here*"

git config --global user.email "*I put my email here the same as that on my github*"

git push -u origin master

**git@github.com: Permission denied (publickey).**   
**fatal: Could not read from remote repository.**

**Please make sure you have the correct access rights**   
**and the repository exists.**

The repository exists. Help out guys.


Answers:
author: David at David Simpson Apps
body: OK, GitHub is a little off topic, but here we go.

Make sure that you have configured an ssh key at [https://github.com/settings/keys](https://github.com/settings/keys?)

If you haven't, Atlassian have written an article on how to generate one here:

[https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/](https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/?)

If you have both of those things covered, then make sure that you have write permission on the repository.


Tags: git
Executing a script upon new branch creation?
Asked by Travis Wheatley:

My current project uses multiple repositories and we are using tsrc as a higher level repository management tool to avoid the messiness associated with git submodules. However, our current workflow requires developers to manually modify a couple of tsrc related .yml files each time they create a new branch in order for our automated testing tool (Jenkins) to be aware of the new development branch. I would like to automate the modification of those .yml files so that it will be transparent to the developer. I have heard of pipelines as well as hook scripts but have no real practical knowledge of using them as of yet. I am wondering what would be the best way to set things up such that when a developer clicks "Create Branch" in Jira a script will be run after the new branch is created that would make the necessary modifications to those .yml files.


Answers:
author: Aron Gombas _Midori_
body: Create an automation rule with the [Better DevOps Automation](https://marketplace.atlassian.com/apps/1224574/better-devops-automation-for-jira?hosting=datacenter&tab=overview) app and use:

1. The [Branch Created](https://midori-global.com/products/better-devops-automation-for-jira/data-center/documentation/automation-triggers#branch-created-trigger) trigger
2. One of [these recipes](https://midori-global.com/products/better-devops-automation-for-jira/data-center/documentation/scripts-programs/) to execute Groovy, Python, .bat or .sh scripts

*(Discl. it is a paid and supported and I'm a developer working on it.)*


Tags: bitbucket-server

jenkins

jira

server
atlassian/rsync-deploy:0.4.3 creates build foldr on the server
Asked by Gennadiy Kulabukhov:

How to do not create this folder on the server?


Answers:
author: Halyna Berezovska
body: [@Gennadiy Kulabukhov](/t5/user/viewprofilepage/user-id/4119149) As I know this folder is not created on the server by the pipe. Please, explain conditions that you have . I don't see any script in the pipe that creates folder . Perhaps it is related to pipelines infrastructure , build folder is included inside pipelines agent

Regards, Galyna

comments: author: Gennadiy Kulabukhov
body: I found a solution.

$REMOTE_PATH LOCAL_PATH: '${BITBUCKET_CLONE_DIR}/'

I have added the **'/'** symbol at the end of the string and pipelines didn't create unnecessary folder **build** on the server.

Thanks for your time.


Tags: bitbucket-pipelines

cloud

rsync
firebase-deploy don't use project_id in KEY_FILE
Asked by MasaGon:

When using KEY_FILE option, service account key file includes project_id, but firebase-deploy doesn't seem to use it. So we have to specify PROJECT_ID independently.


Answers:
author: Halyna Berezovska
body: [@MasaGon](/t5/user/viewprofilepage/user-id/2298845) actually you may not specify the project. It is good practise to specify the project you want to deploy to in .firebaserc file and this option is also available in firebase-deploy pipe.

Regarding key file, it is used for authentication and just confirms that you can deploy to the exact project.

comments: author: MasaGon
body: .filebaserc may have multiple projects like this. So, detecting project with KEY_FILE is the most reasonable way when using KEY_FILE, I think.

```
{

? "projects": {

? ? "default": "some-project1",

? ? "development": "some-project2",

? ? "staging": "some-project3",

? ? "production": "some-project4"

? }

}
```


author: Halyna Berezovska
body: [@MasaGon](/t5/user/viewprofilepage/user-id/2298845) yes, KEY_FILE is used to authenticate as well as FIREBASE_TOKEN, and need to be generated on gcp site as key for service role with appropriate permissions, you can also specify there which project may be accessed.

Explain if you have another format for this authentication and want to use key file for specific project id, so if you specify another project, it will fail with 403 forbidden error?

Or do you have another need for your pipeline?

Best regards, Galyna

comments: author: MasaGon
body: KEY_FILE format is like this. You can see project_id is included. So I don't understand why you have to specify PROJECT_ID separately. We use multiple project for each production, staging and development environment. On some case, deployment is failed without PROJECT_ID. I think PROJECT_ID is unnecessary when KEY_FILE is specified.

```
{
"type": "service_account",
"project_id": "******************",
"private_key_id": "******************",
"private_key": "-----BEGIN PRIVATE KEY-----*****************-----END PRIVATE KEY-----\n",
"client_email": "***************",
"client_id": "***************",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/*******************"
}
```


Tags: bitbucket-pipelines

cloud

deployment

firebase

google
Pre-hook Scriptrunner script failing when upgrading to lastest Bitbucket and Scriptrunner
Asked by Paul Davis:

Pulling to the master branch requires a completed Change Request Script Merge Checks -- Require commits to be associated with a Jira issue Bitbucket Settings

The master branch is always working toward the next release and is the basis for that release's branch

Therefore, changes to the master branch are strictly controlled

Proper authorization, via a completed change request, is required
> Hook Type Require commits to be associated with a Jira issue
>
> Note Require a valid completed change request when merging to the master branch.
>
> Condition mergeRequest.pullRequest.toRef.id.matches("refs/heads/master")
>
> JQL clause template (issueType in ("Change Request", "CR Sub-task"))
>
> AND (status = "Completed")

![Untitled.png](/t5/image/serverpage/image-id/114704iB639E7881E2710CA/image-size/large?v=v2&px=999 "Untitled.png")

Thanks for any help


Answers:
author: Kyle Moseley
body: Hey I know we talked outside of this channel, but for posterity:

The solution here was this wasn't actually intended to be a pre-receive hook, but a merge check.

"mergeRequest" was undeclared because a pre-receive hook could be any type of push, not just a merge. So the merge check is where you would be able to use the "mergeRequest".


Tags: bitbucket-server

scriptrunner

server
Parallel sub-steps
Asked by Jake He:

Hi,

This is my pipeline.

In the parallel steps, I want to have two steps run one after another. Its like having sequential two steps within one parallel. Is this possible?

```
pull-requests:
  '**':
    - step: *build
    - parallel:
        - step: *chromeAPI
        - step: *chrome69API
        # how do I split this step into two steps so test2 is run after         test1?
        - step:
            name: 'tests 1 and 2'
            caches:
              - node
              - npm
            services:
              - docker
            script:
              - npm ci
              - npm run test1
              - npm run test2

```


Answers:
author: ktomk
body: In \`parallel\` all \`step\`s run parallel, there is no way inside parallel to have two steps not parallel.

However as long as test 1 and test 2 run with the same image it should be possible to have them in a single step so that test 2 would run after test 1. Just like you outline it already, however I don't know why you now need two steps for it so can't share more ideas or know about your limitations.

comments: author: Jake He
body: I just thought it will be visually nicer to see two steps. Also if one step fails, I can just run the failed step.

It's okay. I just want to know whether it is possible.


author: ktomk
body: I see now, good point about the failed step and re-running.

This would require to have an additional grouping of steps next to parallel to have them sequential explicitly. No such option exists thought unfortunately (yet).

However there exists a Jira ticket for a feature request:

* [Possibility to run steps sequentially within different parallel streams in pipelines (BCLOUD-19908)](https://jira.atlassian.com/browse/BCLOUD-19908)


Tags: bitbucket-pipelines

cloud
Define variable as an integer
Asked by Jake He:

Hi,

I want to set the max-time as a variable instead of hard coding it.

But I can't use this. I will get this error. Anyway around it?

```
There is an error in your bitbucket-pipelines.yml at [options > max-time]. To be precise: This value should be an integer (it is currently defined as a string).
```

```
options:
  max-time: $MAX_RUN_TIME
```


Answers:
author: ktomk
body: Most likely not the answer you're looking for: As YAML has no support for environment variables (there is no such thing like environment in context of the YAML file format), instead of a variable (that does not exists) use an invariant, e.g. write in the number verbatim.

Alternatively if there is a step that breaks *your* dynamic maximum execution time, use some more or less standard tooling to limit how long a command within the step-script is allowed to run (e.g. by using the [\`timelimit\` utility](http://devel.ringlet.net/sysutils/timelimit/) or similar).


Tags: bitbucket-pipelines

cloud
Global Default Personal Space template not working correctly
Asked by Ann Liu:

Hi,

I would like to set up a default Personal Space for new users who join my confluence. I have tried navigating to **Global Template and Blueprints** and then editing the **Default Personal Space Content** . The preview works perfectly, however when a new user joins my confluence, the template is glitchy. *Action Items* \[\] become *bullet points* , *expands* and some *info panels* become *tables* , and the *table of contents* becomes a picture of a table of contents icon.

The first picture is what it looks like in the template editor. The second picture is what it looks like in someone's new personal space.

1.

![Screen Shot 2023-01-23 at 6.50.30 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/236015i58BEAECD78AC2245/image-size/large?v=v2&px=999 "Screen Shot 2023-01-23 at 6.50.30 PM.png")

2.

![Screen Shot 2023-01-23 at 6.50.41 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/236016iE5C1C4295B2FB769/image-size/large?v=v2&px=999 "Screen Shot 2023-01-23 at 6.50.41 PM.png")

Is there a solution to this problem? Or do I just need to not use any of the "inserts" and stick to plain formatting?


Answers:
author: Brant Schroeder
body: [@Ann Liu](/t5/user/viewprofilepage/user-id/5128400) Welcome to the Atlassian community

It should work. Have you tested the other bluepoints to see if it is a consistent issue that you are having?


Tags: cloud

confluence-cloud
how can the paused jobs in the pipeline is automatically picked up
Asked by dkasteli:

Hi,

Is there any mechanism to resume/rerun the paused jobs in the pipeline


Answers:
author: ktomk
body: In case you're referring to manual steps, please find this feature request:

* [API to trigger a deployment step in a pipeline (BCLOUD-20050)](https://jira.atlassian.com/browse/BCLOUD-20050)

Via: [Trigger bitbucket pipeline manual step using API](https://community.atlassian.com/t5/Bitbucket-questions/Trigger-bitbucket-pipeline-manual-step-using-API/qaq-p/717979)

comments: author: dkasteli
body: Hi,

Not the manual step, I am looking for auto execution on branch commit.


author: ktomk
body: Hmm, for me normally on branch commit (and push) the branch pipeline automatically runs for that commit. What am I not seeing here?


author: Rick Zakharov
body: If there are several pushes to a repo, the last pipeline will get paused for us at the deployment stage, if the previous pipeline's deployment is in progress.

Makes total sense to not mess up the deployments. However it's inconvenient to go and manually check all pipelines for successful completion. Especially if there's a large number of pushes.


author: Rick Zakharov
body: What if Atlasssian would watch for the deployments and take the very latest one based on the git commits. Deploy that one and discard the other paused deployments?

What do you guys think? Just chiming in :)


author: ktomk
body: Why not schedule a pipeline that just does this via the REST API? I think the trick is to have an automated deployment step (not one that is with the manual flag).


author: Mark Nelissen
body: Actually, like Rick, de deployment IS automatic. But it cannot run concurrently. The current behaviour makes it so that the oldest concurrent commit makes it to the environment, while what you want is de most recent. As such, the pipeline should auto-unpause as soon as the previous deployment is done for the environment, instead of waiting for a manual unpause.

We should be able to enable this kind of behaviour within the settings of bitbucket, without requiring external tooling.


Tags: bitbucket-pipelines
How can I create a cascading dropdown list in the wiki page?
Asked by Narges MJ:

My manager asked me to create a dropdown list that each item in the list will show other dropdown list. I think we call it cascading dropdown list.

Would you please help me on finding the solution. I am completely new in Wiki confluence .

Thanks,


Answers:
author: Brant Schroeder
body: [@Narges MJ](/t5/user/viewprofilepage/user-id/5128293) Welcome to the Atlassian community

You would need to use an app like ConfiForms that provides that capability. Cascading dropdowns are not native to Confluence.

comments: author: Alex Medved _ConfiForms_
body: Thanks [@Brant Schroeder](/t5/user/viewprofilepage/user-id/769100) for mentioning our[lovely ConfiForms app](https://marketplace.atlassian.com/apps/1211860/confiforms-data-forms-workflows?hosting=cloud&tab=overview)

It's definitely an app which can help you [@Narges MJ](/t5/user/viewprofilepage/user-id/5128293) here, but...

I wonder what your manager wants to do with the created list after.

One thing is to create an element, but another is to assign some behaviour to it - so what it is supposed to do?

Alex


author: Narges MJ
body: He want to have a dropdown list that shows the name of each group under him and then on other drop down that when you click on each group shows info or the sub groups of those groups


author: Alex Medved _ConfiForms_
body: I wonder what do you mean by "groups" and especially by "sub-groups"... Is this about security groups? I dont think there is any hierarchy

Tp show user groups you can do something like this:

(2 methods - one is via our app - ConfiForms and another option is to create a dropdown on the fly via JavaScript and Confluence REST API)

<http://recordit.co/PnNi7cE9DD>

PS, of course there are alternatives out there :-) May be others have something else to offer/suggest

Alex


author: Narges MJ
body: example:

Team as a item in menu, then we click on that and it shows three team name

Team

* A

<!-- -->

* B
* C

now under each team name we want a drop down to show a list of sub team name or the info about each team

Multi level dropdown


Tags: cascading-select