Workflows jobs aggrigation


#1

My project have some test phase and after multiple deploy jobs.

And I want deploy after aggregate all test result.

I found this workaround that make dummy job and use it.
But I think it’s not good solution.

Do you have any idea ?

jobs:
  # ...
  # some configs...
  # ...
  wait_all_test: # dummy job
    docker:
      - image: busybox
    steps:
      - run: echo "this is dummy test"
workflows:
  version: 2
  build:
    jobs:
      - test_a
      - test_b
      - test_c
      - test_d
      - wait_all_test:
          requires:
          - test_a
          - test_b
          - test_c
          - test_d
      - deploy_a:
          requires:
            - wait_all_test
      - deployg_b:
          requires:
            - wait_all_test
      - deploy_c:
          requires:
            - wait_all_test

It’s like a hold, but I want automatically apporve.


#2

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.