format_version: 3
environments:
  gocd:
    pipelines:
      - installer-tests
pipelines:
  installer-tests:
    group: go-cd
    label_template: ${COUNT}
    lock_behavior: none
    tracking_tool:
      link: https://github.com/gocd/gocd/issues/${ID}
      regex: '##(\d+)'
    materials:
      git:
        git: https://git.gocd.io/git/gocd/installer-testing
        blacklist:
        - '*.md,pipeline-as-code/*'
        shallow_clone: true
        auto_update: true
        branch: master
      installers:
        pipeline: installers
        stage: dist
        name: installers
      UploadInstallers:
        pipeline: code-sign
        stage: metadata
        name: code-sign
    stages:
    - install-tests:
        fetch_materials: true
        keep_artifacts: false
        clean_workspace: false
        approval:
          type: success
        jobs:
          fresh-install:
            timeout: 0
            run_instances: '6'
            elastic_profile_id: installers-testing
            tasks:
            - exec:
                arguments:
                - test_installers
                command: rake
                run_if: passed
          upgrade:
            timeout: 0
            run_instances: '5'
            environment_variables:
              UPGRADE_VERSIONS_LIST: 18.6.0-6883, 19.1.0-8469, 19.2.0-8641
            elastic_profile_id: installers-testing
            tasks:
            - exec:
                arguments:
                - upgrade_tests
                command: rake
                run_if: passed

format_version: 3
environments:
  gocd:
    pipelines:
      - installer-tests
pipelines:
  installer-tests:
    group: go-cd
    label_template: ${COUNT}
    lock_behavior: none
    tracking_tool:
      link: https://github.com/gocd/gocd/issues/${ID}
      regex: '##(\d+)'
    materials:
      git:
        git: https://git.gocd.io/git/gocd/installer-testing
        blacklist:
        - '*.md,pipeline-as-code/*'
        shallow_clone: true
        auto_update: true
        branch: master
      installers:
        pipeline: installers
        stage: dist
        name: installers
      UploadInstallers:
        pipeline: code-sign
        stage: metadata
        name: code-sign
    stages:
    - install-tests:
        fetch_materials: true
        keep_artifacts: false
        clean_workspace: false
        approval:
          type: success
        jobs:
          fresh-install:
            timeout: 0
            run_instances: '6'
            elastic_profile_id: installers-testing
            tasks:
            - exec:
                arguments:
                - test_installers
                command: rake
                run_if: passed
          upgrade:
            timeout: 0
            run_instances: '5'
            environment_variables:
              UPGRADE_VERSIONS_LIST: 18.6.0-6883, 19.2.0-8641, 19.7.0-9567
            elastic_profile_id: installers-testing
            tasks:
            - exec:
                arguments:
                - upgrade_tests
                command: rake
                run_if: passed

Use 19.7 version for upgrade scenario
Use 19.7 version for upgrade scenario
