Skip to content

Cypress Cloud Uses Wrong Branch in Semaphore CI #26309

@leightjohnson93

Description

@leightjohnson93

Current behavior

In Sempahore CI, on pull requests, Cypress Cloud test runs show up under the target branch.

Desired behavior

Test runs should show up as being run on the current branch.

Test code to reproduce

Cypress uses SEMAPHORE_GIT_BRANCH as the branch to report test runs. However, for a pull request this points to target branch. This is a problem, because we want the current branch.

branch: env.SEMAPHORE_GIT_BRANCH,

https://docs.semaphoreci.com/ci-cd-environment/environment-variables/#semaphore_git_branch

Cypress Version

12.8.1

Node version

16.13.0

Operating System

Ubuntu 20.04.6 LTS (Focal Fossa)

Debug Logs

No response

Other

No response

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions