Delays between jobs in a workflow

I have an iOS app that includes an App Watch app. This requires bit_code to be turned on. The effect of this is that I can only get the DSYM after it’s uploaded to AppStore Connect (aka Testflight). Build take at least 10 minutes after the upload before the DSYM will be ready. Is there any good way to do this?

I’m currently just using an empty linux container to sleep for 10 minutes before triggering the job for Fastlane to fetch the DSYM and upload to Sentry. It works but it’s not ideal.

jobs:
  sleep_600:
    <<: *node_config
    steps:
      - run: sleep 600;
...
workflows:
  version: 2
  deploy:
    jobs:
     ..
     - ios_package:
          requires:
            - pod_deps
            - build
      - sleep_600:
          requires:
            - ios_package
      - ios_deploy:
          requires:
            - sleep_600
1 Like

Could you have the ios_deploy job run a script to poll for that file to be available? This way if it takes shorter or longer than 10 minutes then you at least don’t have to wait for no reason.

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