Run pipeline on Push and Cron

Hello discourse :slight_smile:

I’m trying to trigger a pipeline either on push or by a specific cron.

Here is my snippet:
kind: pipeline
type: docker
name: pipe1

    trigger:
      event:
      - push
      - cron
      cron:
      - my_cron_job_name

I read that to trigger all events must be true, so does it mean one pipeline equal one event ?
I’m confused.

@zaggash you should use the include syntax see here for details, but something like this should work:

     trigger:
       
      include:
      - push
      - cron

The cron job name is not possible and I don’t know whether you can specify the target (hourly, weekly, etc)

Yeah I figured.
The problem is you cannot specify the cron name.
If you have multiple of them, the pipeline will be triggered for every cron setup on the repo.

So I had to change my logic.
Not a big deal, but it would have been a nice feature.