Skip to content

Commit

Permalink
BUILD-3668 fix build conditions (no branch without PR)
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-carsique-sonarsource committed Aug 29, 2023
1 parent f429668 commit 8cf879a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ only_if_with_nightly: &ONLY_IF
only_if_except_nightly: &ONLY_IF_EXCEPT_NIGHTLY
skip: "changesIncludeOnly('docs/**/*', 'spec/**/*', 'README.md')"
only_if: $CIRRUS_USER_COLLABORATOR == 'true' && $CIRRUS_TAG == "" && $CIRRUS_BUILD_SOURCE != "cron"

only_pr_and_maintained_branches: &ONLY_PR_AND_MAINTAINED_BRANCHES
skip: "changesIncludeOnly('docs/**/*', 'spec/**/*', 'README.md')"
only_if: $CIRRUS_USER_COLLABORATOR == 'true' && $CIRRUS_TAG == "" && $CIRRUS_BUILD_SOURCE != "cron"
&& ($CIRRUS_PR != "" || $CIRRUS_BRANCH == $CIRRUS_DEFAULT_BRANCH || $CIRRUS_BRANCH =~ "branch-.*" || $CIRRUS_BRANCH =~ "dogfood-on-.*")

only_main_branches: &ONLY_MAIN_BRANCHES
Expand Down Expand Up @@ -211,7 +207,7 @@ promote_task:
- test_windows
- mend_scan
- qa
<<: *ONLY_PR_AND_MAINTAINED_BRANCHES
<<: *ONLY_IF_EXCEPT_NIGHTLY
eks_container:
<<: *CONTAINER_DEFINITION
cpu: 1
Expand Down

0 comments on commit 8cf879a

Please sign in to comment.