format_version: 3
pipelines:
<% for project in %w(
      openSUSE:Factory
      openSUSE:Factory:ARM
      openSUSE:Factory:PowerPC
      openSUSE:Factory:zSystems
      openSUSE:Leap:15.3:ARM
      openSUSE:Leap:15.3:ARM:Images
      openSUSE:Leap:15.3:Images
      openSUSE:Leap:15.3:WSL
      openSUSE:Leap:15.3:Update:Respin
      openSUSE:Leap:15.4:Images
      openSUSE:Leap:15.4
      openSUSE:Leap:15.4:ARM
      openSUSE:Leap:15.4:ARM:Images
  ) -%>
  TTM.<%= project.gsub('openSUSE:', '').gsub(':', '_') %>:
    group: openSUSE.Checkers
    lock_behavior: unlockWhenFinished
    environment_variables:
      OSC_CONFIG: /home/go/config/oscrc-totest-manager
    materials:
      script:
        git: https://github.com/openSUSE/openSUSE-release-tools.git
        destination: scripts
    timer:
      spec: 0 */15 * ? * *
      only_on_changes: false
    stages:
    - Run:
        approval: manual
        resources:
        - staging-bot
        tasks:
        - script: |-
            install -D /home/go/config/openqa-client.conf /home/go/.config/openqa/client.conf
            scripts/totest-manager.py -A https://api.opensuse.org --debug run <%= project %>
<% end -%>
