In Jira Cloud, I have a test project with the "TBREF" key. Also, I have a repository with the configured Bitbucket Pipeline.
The structure of Jira issues in the project is as follows:
The structure of the Bitbucket branches in the repository is as follows:
In my code editor, I checkout to the "feature / TBREF-03-test-button-1" branch, make changes and commit with the following message:
"TBREF-03 commit message from IDE".
After that, I make a pull request to merge the "feature/TBREF-03-test-button-1" branch into the "feature/TBREF-02-test-button-1" branch, with the commit message in the pull request:
"TBREF-03 in TBREF-02 (pull request #1)".
After that, I make a pull request to merge the "feature/TBREF-02-test-button-1" branch into the "feature/TBREF-01-test-button-1" branch, with the commit message in the pull request:
"TBREF-02 in TBREF-01 (pull request #2)".
After that, I make a pull request to merge the "feature/TBREF-01-test-button-1" branch into the "release/v0.1.0" branch, with the commit message in the pull request:
"TBREF-01 in release/v0.1.0 (pull request #3)"
Finally, I run the pipeline on the release branch. But in the end, it only affects the last task (Jira user story), and only on it appears the status that it has been deployed to a certain environment. The rest of the tasks and subtasks do not show that they have also been deployed. Although the release branch contains a history of all commits, indicating the user story, task, and subtask.
bitbucket-pipeline.yml example:
pipelines:
custom: # Pipelines that are triggered manually
deployment-to-test: # # The name that is displayed in the list in the Bitbucket Cloud GUI
- step:
name: Deployment to Test environment.
deployment: Test
script:
- echo "Deployed to the Test environment."
deployment-to-stage: # # The name that is displayed in the list in the Bitbucket Cloud GUI
- step:
name: Deployment to Stage environment.
deployment: Stage
script:
- echo "Deployed to the Stage environment."
deployment-to-prod: # # The name that is displayed in the list in the Bitbucket Cloud GUI
- step:
name: Deployment to Prod environment.
deployment: Prod
script:
- echo "Deployed to the Prod environment."
Only the user story has the "Release" information that shows the deployment status
This behavior is not stable. Sometimes pipelines touch the history of all previous commits, and sometimes only the last one. What could be the problem?