Specify when to run a chain

You can configure the streams and changesets on which a chain runs, and set a chain run schedule. By default, a chain runs on all changesets.

To select when to run a chain:

  1. In PulseUno, navigate to Spaces, select a space and then a product or Git repository.

  2. In the sidebar, select Chains.

  3. Open a chain from the chain list and click Edit.

  4. Select the Triggers tab.

  5. From the Run chain list, select when you want to run the chain:

    Option Description
    Manually run Trigger chain runs manually. This is the default option.
    On every changeset Trigger the chain every time a changeset is delivered.
    When a pull request is published Trigger the chain every time a pull request is published.

    Hourly

    Specify the interval (in hours) for running the chain, for example, every 12 hours at 15 minutes past the hour. The Hourly schedule reflects your local time zone.

    To trigger the chain even if no changes were delivered between the runs, select Run as scheduled even if no new changesets have been created since the last run.

    Daily

    Specify the interval (in days) and the time when the chain will run, for example every 3 days at 19:00. The Daily schedule is set in a 24-hour format using your local time zone.

    To trigger the chain even if no changes were delivered between the runs, select Run as scheduled even if no new changesets have been created since the last run.

    Weekly

    Specify the week days and the time when the chain will run, for example, Tuesday and Saturday, at 19:00. The Weekly schedule is set in a 24-hour format using your local time zone.

    To trigger the chain even if no changes were delivered between the runs, select Run as scheduled even if no new changesets have been created since the last run.

    Cron

    Enter a cron expression to set the schedule for running the chain. For example, to run the chain every day at noon, enter 0 0 12 ? * MON-FRI. Cron expressions are interpreted in the UTC time zone.

    To trigger the chain even if no changes were delivered between the runs, select Run as scheduled even if no new changesets have been created since the last run.

    To disable the chain, select Chain is disabled.

  6. For Matching streams, enter a pattern to specify the streams where the chain will run. Use asterisks (*) and commas (,) to specify multiple streams, for example, mainline,feature-*

  7. In the Path filtering field, enter Ant patterns (one per line) to run changesets only on paths that match the pattern. The chain is triggered if at least one path in the changeset matches the pattern.

    Leave the field empty to run the chain on all changesets.

  8. Click Save.

Back to top

See also: