periodics:
#******************************************************************************
# kubeflow/pipelines
#******************************************************************************
- name: kubeflow-pipelines-periodic-functional-test
  cluster: build-kubeflow
  interval: 5m
  decorate: true
  extra_refs:
    - org: kubeflow
      repo: pipelines
      base_ref: master
      workdir: true
  spec:
    containers:
      - image: python:3.8-slim
        imagePullPolicy: Always
        command:
          - "./test/kfp-functional-test/kfp-functional-test.sh"
  annotations:
    testgrid-dashboards: googleoss-kubeflow-pipelines
    description: Periodic job to run kfp functional test
    testgrid-alert-email: kubeflow-pipelines+test@google.com
    testgrid-num-failures-to-alert: "5"
- name: kubeflow-pipelines-periodic-project-cleanup
  cluster: build-kubeflow
  interval: 1h
  decorate: true
  extra_refs:
  - org: kubeflow
    repo: pipelines
    base_ref: master
    workdir: true
  spec:
    containers:
      - image: docker.io/library/golang:1.16.6-alpine
        imagePullPolicy: Always
        command:
        - "./test/tools/project-cleaner/project_cleaner.sh"
        env:
          - name: REPO_OWNER
            value: kubeflow
          - name: REPO_NAME
            value: kubeflow
          - name: BRANCH_NAME
            value: master
  annotations:
    testgrid-dashboards: googleoss-kubeflow-pipelines
    description: Periodic job to cleanup ml-pipeline-test GCP project
    testgrid-alert-email: kubeflow-pipelines+test@google.com
    testgrid-num-failures-to-alert: "5"
