youngmon/atlassian-qna huggingface dataset:
I can't receive invitation email
Asked by kevin.dynata:

Hi!

My team manager invited me to a repository, but I never received the invitation email. I checked into spam and there is nothing there. The email address is correct and he tried resending it multiple times but still no invitation email

Can someone help me on this?

Thank you and best regards!


Answers:
author: Daniel Eads
body: Hi [@kevin.dynata](/t5/user/viewprofilepage/user-id/4298250) , welcome to the Community!

I see our mail delivery service was able to successfully deliver two emails to you today, and don't see that it has encountered any problems delivering mail to you in the past week.

Were the invitations sent more than a week ago? Or perhaps did your manager use a different email address to send the invitations than you used to post here on Community?

Thanks,  
Daniel \| Atlassian Support

comments: author: kevin.dynata
body: first invitation were sent more than a week ago. then yesterday and today my manager sent more invitations. But my email doesnt receive any jira invitation


author: kevin.dynata
body: should i try disconnecting and reconnecting my email to my account?


author: Daniel Eads
body: I've checked our mail logs going back 30 days for your email address, and just found the two emails sent today that I mentioned earlier. My suggestions:

1. Have your manager double-check the email address they're putting in for typos. This is a surprisingly large cause of email delivery problems.
2. Check with your company's IT department to see if they can confirm two emails came in today. Our mail service indicates those two emails as delivered - but it's possible an organizational spam filter has quarantined the messages instead of showing them in your mailbox. If necessary, our [ip addresses and domains are listed here](https://support.atlassian.com/organization-administration/docs/ip-addresses-and-domains-for-atlassian-cloud-products/) if your IT department needs them as reference for allow-listing.


Tags: bitbucket-cloud

cloud
How to pass flag to kubectl with Bitbucket Pipelines
Asked by guilherme_silva:

Hello everyone!

I'm using kubectl-run pipe on the version 1.3.3 to deploy my application to AKS. However I'm facing a problem on setting the application namespace, it's always getting the default namespace no matter what I pass to KUBECTL_ARGS. My pipe configuration looks like this:

- pipe: atlassian/kubectl-run:1.3.3  
variables:  
KUBE_CONFIG: $KUBE_CONFIG_PRD  
KUBECTL_COMMAND: 'apply'  
RESOURCE_PATH: 'deploy/WebApi/Deployment.yml'  
KUBECTL_ARGS: '--namespace ${ENVIRONMENT}'  

No error is shown on logs and actually the pipe executes successfully.

I could see on the source code that the KUBECTL_ARGS are concatenated with the command itself, but as I said on the AKS I'm always getting the default namespace.

This is a very important step to migrate my CI/CD from Jenkins to Bitbucket pipelines, so I really appreciate the help.

Best regards.


Answers:
author: guilherme_silva
body: To pass such argument to KubeCtl the pipe configuration must be like this:

```
- pipe: atlassian/kubectl-run:1.3.3
   variables:
       KUBE_CONFIG: $KUBE_CONFIG
       KUBECTL_COMMAND: 'apply'
       RESOURCE_PATH: 'deploy/WebApi/Deployment.yml'
       KUBECTL_ARGS:
             - "--namespace=${ENVIRONMENT}"
```


author: Oleksandr Kyrdan
body: Hi [@guilherme_silva](/t5/user/viewprofilepage/user-id/4290534) ,

Thank you for your question!

Please, provide KUBECTL_ARGS as a YAML list, not as a string:

```
- pipe: atlassian/kubectl-run:1.3.3
   variables:
      KUBE_CONFIG: $KUBE_CONFIG_PRD
      KUBECTL_COMMAND: 'apply'
      RESOURCE_PATH: 'deploy/WebApi/Deployment.yml'
      KUBECTL_ARGS:
        - "--namespace ${ENVIRONMENT}"
```

<br />

We'll investigate this case to prevent such pipe's behavior and notify you.

Cheers,  
Oleksandr Kyrdan  

comments: author: guilherme_silva
body: Hi [@Oleksandr Kyrdan](/t5/user/viewprofilepage/user-id/2885705)

Thank you for the quick answer.

I just did the changes that you've suggested and now I'm getting the error bellow:

    INFO: Configuring kubeconfig...
    Error: unknown flag: --namespace staging
    See 'kubectl apply --help' for usage.
    ? kubectl apply failed.

For the record, my pipe now looks like this:

```
- pipe: atlassian/kubectl-run:1.3.3
   variables:
       KUBE_CONFIG: $KUBE_CONFIG
       KUBECTL_COMMAND: 'apply'
       RESOURCE_PATH: 'deploy/WebApi/Deployment.yml'
       KUBECTL_ARGS:
             - "--namespace ${ENVIRONMENT}"


```


author: guilherme_silva
body: Hello [@Oleksandr Kyrdan](/t5/user/viewprofilepage/user-id/2885705)

I just got what was wrong with the pipe configuration. To pass such argument to KubeCtl the pipe configuration must be like this:

```
- pipe: atlassian/kubectl-run:1.3.3
   variables:
       KUBE_CONFIG: $KUBE_CONFIG
       KUBECTL_COMMAND: 'apply'
       RESOURCE_PATH: 'deploy/WebApi/Deployment.yml'
       KUBECTL_ARGS:
             - "--namespace=${ENVIRONMENT}"
```

Thank you for the help.


Tags: bitbucket-pipelines

cloud

kubernetes
I'm using atlassian/trigger-pipeline - can I request WAIT but not fail the entire build on failure?
Asked by marklaff:

I have a master pipeline with many (33?) build steps that each invoke atlassian/trigger-pipeline. I want the results of each sub-build to be reported in this build, so I use the "WAIT=true' option.

I would like all 33 to run even though one or more of the sub-builds fail. Can I do that?

Here's an example of one of the 33 sub-build steps:

```
- step:
    script:
      - pipe: atlassian/trigger-pipeline:4.2.1
        variables: &base
          BITBUCKET_USERNAME: "${FOO_PIPELINE_USER}"
          BITBUCKET_APP_PASSWORD: "${FOO_PIPELINE_PASS}"
          BRANCH_NAME: "$BITBUCKET_BRANCH"
          WAIT: "true"
          DEBUG: "false"
          REPOSITORY: "foo-shared"
```


Answers:
author: Oleksandr Kyrdan
body: Hi [@marklaff](/t5/user/viewprofilepage/user-id/3735825) ,

Thank you for your question!

It's a good case for [Set up or run parallel steps](https://support.atlassian.com/bitbucket-cloud/docs/set-up-or-run-parallel-steps/) :

```
pipelines:
  default:
    parallel:
    - step:
        script:
          - pipe: atlassian/trigger-pipeline:4.2.1
            variables:
              BITBUCKET_USERNAME: "${FOO_PIPELINE_USER}"
              BITBUCKET_APP_PASSWORD: "${FOO_PIPELINE_PASS}"
              BRANCH_NAME: "$BITBUCKET_BRANCH"
              WAIT: "true"
              DEBUG: "false"
              REPOSITORY: "foo-shared-1"
    - step:
        script:
          - pipe: atlassian/trigger-pipeline:4.2.1
            variables:
              BITBUCKET_USERNAME: "${FOO_PIPELINE_USER}"
              BITBUCKET_APP_PASSWORD: "${FOO_PIPELINE_PASS}"
              BRANCH_NAME: "$BITBUCKET_BRANCH"
              WAIT: "true"
              DEBUG: "false"
              REPOSITORY: "foo-shared-2"
```

Cheers,  
Oleksandr Kyrdan

comments: author: marklaff
body: Hi [@Oleksandr Kyrdan](/t5/user/viewprofilepage/user-id/2885705) , thanks for your quick answer. That makes sense - I will try that.


Tags: bitbucket-pipelines

cloud

trigger
Bitbucket API v2 - How to enabled pipelines via api?
Asked by giantoctopus:

Hi all,

I'm trying to automate my bitbucket repo creation via a bash script and am stuck on the following endpoint

/2.0/repositories/{workspace}/{repo_slug}/pipelines_config

I'm trying the following:

```
curl -X PUT -v -u "$BITBUCKET_AUTH_EMAIL":"$BITBUCKET_AUTH_PASS" -H "Content-Type: application/json" \
https://api.bitbucket.org/2.0/repositories/$BITBUCKET_USER/$REPO_SLUG/pipelines_config -d \
'{
"enabled": true
}'
```

which I thought would be the same as going 'Repository Settings \> Pipeline \> Settings \> Enable Pipeline'

<br />

<br />

but this returns :

```
{"type": "error", "error": {"message": "Resource not found"}}
```

I've also tried a few variations:

```
curl -X PUT -v -u "$BITBUCKET_AUTH_EMAIL":"$BITBUCKET_AUTH_PASS" -H "Content-Type: application/json" \
https://api.bitbucket.org/2.0/repositories/$BITBUCKET_USER/$REPO_SLUG/pipelines_config -d \
'{
"enabled": true
}'
```

```
curl -X PUT -v -u "$BITBUCKET_AUTH_EMAIL":"$BITBUCKET_AUTH_PASS" -H "Content-Type: application/json" \
https://api.bitbucket.org/2.0/repositories/$BITBUCKET_USER/$REPO_SLUG/pipelines_config -d \
'{
"enabled": true,
"type": "repository_pipelines_configuration"
}'
```

but these also return the above result.

Other than that i've been able to setup pipeline vars \& pipeline key pair without any issues so any help pointing me in the right direction would be appreciated.


Answers:
author: giantoctopus
body: After contacting support the issue was resolved by using the users Bitbucket username instead of

```
BITBUCKET_AUTH_EMAIL
```

in the authentication.


author: ktomk
body: Can confirm to reproduce if my app-password has all the needed rights.

If not, I get an error message back telling me which rights are missing. However if I try to change that (e.g. wrong repository slug), the error message stays the same, only for credentials.

The missing resource error is only shown if credentials are fine. I have no idea why it does not work. Also tried with GET first.


Tags: bitbucket-pipelines
I stopped receiving bitbucket email notifications
Asked by Maciej ?apski:

I have the same problem as before:  

<https://community.atlassian.com/t5/Bitbucket-questions/I-stopped-receiving-bitbucket-email-notifications/qaq-p/1474678>

Can someone please help me?


Answers:
author: Dario B
body: Hi [@Maciej ?apski](/t5/user/viewprofilepage/user-id/4076757) ,

Kindly notice that you have originally opened this question in the Jira section, while it is quite clear from the description that it is about Bitbucket. I have now moved it to the right section.

For the rest, I can see that you already had this problem in the past and that you have already been told that there is some filtering on your mail server that is causing this. Indeed, I can see that we stopped delivering notifications to your email address since we got below error from your mail server:
> 550 5.7.1 Access denied to em.bitbucket.org (b447348e-8009-49fc-9524-85e7691283a7,caa8749a-b963-4243-998e-2c4b5be8512a)

I have already removed the block from our side, but please notice that you will face this issue again in the future if your don't get in touch with your mail server(s) administrators in order to adjust the filtering on your side.

Cheers,  
Dario

comments: author: Maciej ?apski
body: Hi [@Dario B](/t5/user/viewprofilepage/user-id/502402)  

I got the information that our mail server administrator solved this problem on our side, but unfortunately, the emails stopped coming again. Could you please help?  

All the best,  
Maciej


author: Dario B
body: Hello [@Maciej ?apski](/t5/user/viewprofilepage/user-id/4076757) ,

I have removed the block again but please make sure the issue is solved on your side since the error message once again was saying that we weren't able to deliver emails due to filtering rules on your mail server:
> 553 Message filtered. Refer to the Troubleshooting page at <https://knowledge.broadcom.com/external/article?legacyId> =TECH246726 for more information. (#5.7.1)

Have a nice weekend.

Dario


Tags: bitbucket-cloud

cloud

jira-software

jira-software-cloud
Binary via Email notification
Asked by Pimprikar_ Siddharth:

Hi All,

I am working on building my embedded project on pipleline via the yml file.

If the build is successful I want to send the binary that was built via an email attachment to someone on the team.

How do I accomplish that

Thank you.


Answers:
author: Oleksandr Kyrdan
body: Hi [@Pimprikar_ Siddharth](/t5/user/viewprofilepage/user-id/3960769) ,

Thank you for your question!

It's a good case for the [email-notify pipe](https://bitbucket.org/atlassian/email-notify):

```
pipelines:
  default:
    - step:
      name: Build and Test
      script:
        - some_build_logic_that_generate__build_zip_artifact
      artifacts:
        - build.zip
    - step:
      name: Send email
      script:
        - pipe: atlassian/email-notify:0.4.3
          variables:
            USERNAME: 'myemail@example.com'
            PASSWORD: $PASSWORD
            FROM: 'myemail@example.com'
            TO: 'example@example.com'
            HOST: 'smtp.gmail.com'
            ATTACHMENTS: 'build.zip'
```

Cheers,  
Oleksandr Kyrdan

comments: author: Pimprikar_ Siddharth
body: Hi [@Oleksandr Kyrdan](/t5/user/viewprofilepage/user-id/2885705)  
I get this error while sending the email

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


Tags: bitbucket-pipelines

c

cloud

email
Change Bitbucket Branch Types
Asked by Patrick Roos:

Hi there

Is there a chance to change the Bitbucket branch types? E.g. Bugfix / Feature

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

To be clear: I don't mean here the Branch Name :-)  

Thanks for your help.

Kind regards, Patrick


Answers:
author: Eddie Webbinaro
body: Hi [@Patrick Roos](/t5/user/viewprofilepage/user-id/3774692) , though it is possible to rename the prefix, the types are not adjustable.  

I was not part of the process but I think the names were influenced by GitFlow conventions.

comments: author: Patrick Roos
body: Hi [@Eddie Webbinaro](/t5/user/viewprofilepage/user-id/3842746)   

Thanks for your answer!


Tags: bitbucket-cloud

cloud
Pushing commits to master via SourceTree, on Windows machine, not recognised on master.
Asked by Marcus Cattanach:

Hi,

First of all, I am relatively new to version control, so I hope I am describing my issues below correctly, sorry if I am not.

I am working off two machines, one Mac and the other Windows. I have used the Windows machine to push changes to my master repo with the use of SourceTree. For some reason the changes are not getting recognised by my master repo and therefore when I shift to using the Mac there is nothing to pull. This issue has only just become evident recently and up until now, I have had no problem.

The reason I have to shift between machines is that I am sharing my wife's Mac with her, and when she working, I have to use the Widows machine.

Thanks in advance,

Marcus.


Answers:
author: Daniel Eads
body: Hi [@Marcus Cattanach](/t5/user/viewprofilepage/user-id/4240090) , welcome to the Community!

With git, it's possible to commit to the local master/main branch without pushing to remote/origin. I'd first recommend checking in Sourcetree on the Windows machine to see if you see your latest commits when clicking through the sidebar to select Remotes \> origin \> master.

From there, I'd suggest looking at your repository in the web interface at bitbucket.org - if you don't see the latest commits there, they didn't push.

Finally, you can try a Fetch on the Mac. This should load all the information from bitbucket.org so if things did get out of sync somehow, the latest commits will be available before you do the pull operation.

By going through those three items one at a time, it should narrow down where things are getting stuck. Let me know at what point things have stopped looking right at and we can troubleshoot further!

Cheers,  
Daniel

comments: author: Marcus Cattanach
body: Thanks for taking the time to answer my query Daniel. I checked the local repo as compared to the remote and the remote was not updated like the one on local. I therefore just deleted the local repo and cloned it again, from remote, and started again. There wasn't a whole lot of commits on local so it didn't take me a huge amount of time. I did all of the above before I saw your response, sorry I didn't put it to the test. I did have a look at your suggestion to check that the local commits are pushed to the remote, is the following screenshot what you were talking about?![Screenshot 2021-03-11 at 07.28.37.png](https://community.atlassian.com/t5/image/serverpage/image-id/133997iB17003D4FD8283A9/image-size/large?v=v2&px=999 "Screenshot 2021-03-11 at 07.28.37.png")


Tags: bitbucket-cloud

cloud
The bitbucket local host is not responding.The page gives a fatal error.How to fix it?
Asked by Kalpesh Parmar:

A fatal error has occurred {#toc-hId--1270511501}
-------------------------------------------------

The following problem occurred, which prevents Atlassian Bitbucket from starting:

* SpringMVC dispatcher \[springMvc\] could not be started


Answers:
author: Eddie Webbinaro
body: [@Kalpesh Parmar](/t5/user/viewprofilepage/user-id/4294340) - similar to your other question, this is not enough information for the community to help. Please see my other comment and revise your questions, you'll get more support.


Tags: bitbucket-server

server
How to be authorized to push to AlmWorks JiraClient repository ?
Asked by Jean-Pierre DELPRAT:

Hello,

AlmWorks JiraClient has been made open source since May 2020.

I've tried to push a commit to the bitbucket repository (<https://bitbucket.org/almworks/jiraclient.git>), but I'm not allowed to do it (403 error).

What do I have to do to be allowed to modify the source code ?

Thanks a lot,


Answers:
author: Theodora Boudale
body: Hi [@Jean-Pierre DELPRAT](/t5/user/viewprofilepage/user-id/4293576) and welcome to the community!

You need to be granted at least write access to a repository, in order to be able to push to it.

Public repos can be cloned by anyone, but it is not possible for someone to push unless they have at least write access.

Since the repo is public, you should be able to fork it in your own workspace, add your code in your fork, and then create a Pull request from your fork to the main repo. Someone that has appropriate permissions in <https://bitbucket.org/almworks/jiraclient> should merge your PR though, in order for your code to get merged to this repo.

I would suggest contacting the company (ALM Works) and ask if they accept contributions to this repo, and if they would review and consider merging your PR, as I don't know whether this is something they would do or not.

Please feel free to let me know if you have any questions.

Kind regards,  
Theodora

comments: author: Jean-Pierre DELPRAT
body: Thanks very much for your answer. This is exactly what I needed.


author: Theodora Boudale
body: You are very welcome, glad to have helped!


Tags: alm-works

bitbucket-cloud
Block pull request before rebase from master
Asked by aviv_cohen:

Hi,   

We have a new project in BB  
I want to know if there's a way to block the creation of PR (from BB console or from the IDE) until the user pull/rebase from the ***master*** branch to his local/remote branch

I'm facing this in the current project \& at the merging phase I getting blockers that add more work to my day-to-day

Pls. advice


Answers:
author: Eddie Webbinaro
body: You could, there is a [cancelable event in BB server](https://docs.atlassian.com/bitbucket-server/javadoc/7.10.1/api/com/atlassian/bitbucket/event/pull/PullRequestOpenRequestedEvent.html)  

However, suppose you did, what happens the first time another PR is merged to master or master changes otherwise? All PRs would need to be rebased again.  

This is a common flow on git and PR process is intended to support this natural pattern. Generally I would advise more frequent integrations if your getting big blockers (smaller batches reduces merge effort). But also use automated builds that run on a PR to always rebase in from your main branch before testing.  

That way as soon as anyone opens a PR without rebase it will test including the merge, and you know once you accept PR it will merge successfully, because it already has.  

<br />


Tags: bitbucket-server

branch

pull-request

rebase

server
Set dynamic environment variable for each step and use in code
Asked by Kashish Solanki:

Here are things I want to do with Bitbucket pipelines:

* I had written a bitbucket pipeline to deploy multiple environments for one of my react app, in which the first environment/stage deployment will be auto, else I have to do it manually. But the build for code will be generated only once for the first step, for the rest of all steps, it should have to use the same old generated build.
* Now, each environment has different config variables such as API URLs or other creds. And as I mentioned that build will generate only once, so identification env variable, I can set only once before build generate
  * Suppose: REACT_APP_ENV=dev npm run build

This is my scenario, now my question is that how can we set the env variable dynamically on each step without creating a new build?

Or is there any way to set the env variable in the Bitbucket site and access in code dynamically so I can manage through that.

Else create a new build for each environment is the last option for me.


Answers:
author: Eddie Webbinaro
body: I would suggest using deployment environment variables, which are intended for just this.
>
> Deployment variables override both team and repository variables. Also variables with the same name can have different *values* for each deployment environment. For example, you could set a different $DEPLOYMENT_SECRET_KEY for each environment.

<br />

<https://support.atlassian.com/bitbucket-cloud/docs/set-up-and-monitor-deployments/>

```
 - step:
  image: cibuilds/hugo
  name: Build Site
  script:
    - echo $SOME_TOKEN # repo value for testing, etc
- step:
  image: cibuilds/hugo
  name: Staging Deployment
  deployment: Staging
  script:
    - echo $SOME_TOKEN # statging specific value
- step:
  image: cibuilds/hugo
  name: Switch to Live Deployment
  deployment: Production
  trigger: manual
  script:
    - echo $SOME_TOKEN # different value
```


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

deployment

environment
Connection to Bitbucket
Asked by Olaf Thiele:

Hi dear,

I created a Jira-, Confluence- and a Bitbucketaccount and all works fine.

But if I want connect to my Bitbucketaccount with my gitclient (GitEye) via URI I cannot to the account with my Jirapassword. Would annybody tell me what my password is or where can I set it.

Regards


Answers:
author: Daniel Eads
body: Hi [@Olaf Thiele](/t5/user/viewprofilepage/user-id/4232895) , welcome to the Community!

When looking to connect another application to your account, you'll want to use a special password in Bitbucket called an App Password. This is going to be different than the password you use to log into the web interface, and you'll need to generate one before you can connect GitEye. [Full details on how app passwords work are included in this article](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) , but in short you can simply use it in the "password" part of your GitEye setup after generating it with these steps:

1. From your avatar in the bottom left, click **Personal settings**.

2. Click **App passwords** under **Access management**.

3. Click **Create app password**.

4. Give the app password a name related to the application that will use the password.

5. Select the specific access and permissions you want this application password to have.

6. Copy the generated password and either record or paste it into the application you want to give access. **The password is only displayed this one time**.

I hope that helps clarify - the [article about app passwords](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) has more information but I'm happy to answer anything you might need to know!

Cheers,  
Daniel \| Atlassian Support

comments: author: Olaf Thiele
body: Thank you for your help. All works fine now.


Tags: bitbucket-cloud

cloud