<commit_before>groups:
- name: docker-boshrelease
  jobs:
  - test-docker-boshrelease
  - test-docker-boshrelease-pr
  - release-candidate
  - ship-it
  - bump-major
  - bump-minor

resource_types:
- name: slack-notification
  type: docker-image
  source:
    repository: cfcommunity/slack-notification-resource

- name: pull-request
  type: docker-image
  source:
    repository: jtarchie/pr

- name: gcs
  type: docker-image
  source:
    repository: frodenas/gcs-resource

resources:
- name: git-docker-boshrelease
  type: git
  source:
    uri: <EMAIL>:cloudfoundry-incubator/docker-boshrelease
    branch: master
    private_key: ((git-ssh-key))

- name: git-pull-requests
  type: pull-request
  source:
    repo: cloudfoundry-incubator/docker-boshrelease
    base: master
    private_key: ((git-ssh-key))
    access_token: ((github-token-key))

- name: version
  type: semver
  source:
    driver: gcs
    bucket: kubo-pipeline-store
    key: docker-boshrelease-version
    json_key: ((gcs-json-key))
    initial_version: 31.0.1

- name: slack-notification
  type: slack-notification
  # source:
  #   url: ((build-alert-slack-url))

- name: github-release
  type: github-release
  source:
    owner: cloudfoundry-incubator
    repository: docker-boshrelease
    access_token: ((github-token-key))

- name: s3-tarball
  type: gcs
  source:
    bucket: docker-boshrelease
    json_key: ((gcs-json-key))
    regexp: docker-(.*).tgz

- name: ubuntu-trusty-stemcell-gcp
  type: bosh-io-stemcell
  source:
    name: bosh-google-kvm-ubuntu-trusty-go_agent

jobs:
- name: test-docker-boshrelease
  public: true
  serial: true
  plan:
  - do:
    - aggregate:
      - get: git-docker-boshrelease
        trigger: true
      - get: stemcell
        resource: ubuntu-trusty-stemcell-gcp
    - task: test-docker-boshrelease
      file: git-docker-boshrelease/ci/tasks/test-docker-boshrelease.yml
      params: &test_docker_boshrelease_params
        PROXY_PRIVATE_KEY: ((docker-bosh.proxy-private-key))
        PROXY_USERNAME: ((docker-bosh.proxy-username))
        PROXY_IP: ((docker-bosh.proxy-ip))
        BOSH_CA_CERT: ((docker-bosh.ca-cert))
        BOSH_CLIENT: ((docker-bosh.client))
        BOSH_CLIENT_SECRET: ((docker-bosh.client-secret))
        BOSH_DEPLOYMENT: docker-testflight
        BOSH_ENVIRONMENT: ((docker-bosh.environment))
        MANIFEST_PATH: git-docker-boshrelease/manifests/containers/example.yml
    - task: test-docker-boshrelease-swarm
      file: git-docker-boshrelease/ci/tasks/test-docker-boshrelease.yml
      params:
        <<: *test_docker_boshrelease_params
        BOSH_DEPLOYMENT: docker-swarm-testflight
        MANIFEST_PATH: git-docker-boshrelease/manifests/swarm/docker-swarm.yml
    on_failure:
      put: slack-notification
      params:
        channel: '#docker-boshrelease'
        text: '<https://ci.kubo.sh/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|
          Concourse Failure! :sad_panda:> docker-boshrelease: test-docker-boshrelease job failed'

- name: test-docker-boshrelease-pr
  public: true
  serial: true
  plan:
  - do:
    - aggregate:
      - get: git-pull-requests
        version: every
        trigger: true
      - get: stemcell
        resource: ubuntu-trusty-stemcell-gcp
    - put: git-pull-requests
      params:
        path: git-pull-requests
        status: pending
    - task: test-docker-boshrelease
      file: git-docker-boshrelease/ci/tasks/test-docker-boshrelease-pr.yml
      params:
        <<: *test_docker_boshrelease_params
        BOSH_DEPLOYMENT: docker-testflight-pr
        MANIFEST_PATH: git-pull-requests/manifests/containers/example.yml
      on_failure:
        put: git-pull-requests
        params:<commit_msg>Add missing get for git-docker-boshrelease<commit_after>groups:
- name: docker-boshrelease
  jobs:
  - test-docker-boshrelease
  - test-docker-boshrelease-pr
  - release-candidate
  - ship-it
  - bump-major
  - bump-minor

resource_types:
- name: slack-notification
  type: docker-image
  source:
    repository: cfcommunity/slack-notification-resource

- name: pull-request
  type: docker-image
  source:
    repository: jtarchie/pr

- name: gcs
  type: docker-image
  source:
    repository: frodenas/gcs-resource

resources:
- name: git-docker-boshrelease
  type: git
  source:
    uri: <EMAIL>:cloudfoundry-incubator/docker-boshrelease
    branch: master
    private_key: ((git-ssh-key))

- name: git-pull-requests
  type: pull-request
  source:
    repo: cloudfoundry-incubator/docker-boshrelease
    base: master
    private_key: ((git-ssh-key))
    access_token: ((github-token-key))

- name: version
  type: semver
  source:
    driver: gcs
    bucket: kubo-pipeline-store
    key: docker-boshrelease-version
    json_key: ((gcs-json-key))
    initial_version: 31.0.1

- name: slack-notification
  type: slack-notification
  # source:
  #   url: ((build-alert-slack-url))

- name: github-release
  type: github-release
  source:
    owner: cloudfoundry-incubator
    repository: docker-boshrelease
    access_token: ((github-token-key))

- name: s3-tarball
  type: gcs
  source:
    bucket: docker-boshrelease
    json_key: ((gcs-json-key))
    regexp: docker-(.*).tgz

- name: ubuntu-trusty-stemcell-gcp
  type: bosh-io-stemcell
  source:
    name: bosh-google-kvm-ubuntu-trusty-go_agent

jobs:
- name: test-docker-boshrelease
  public: true
  serial: true
  plan:
  - do:
    - aggregate:
      - get: git-docker-boshrelease
        trigger: true
      - get: stemcell
        resource: ubuntu-trusty-stemcell-gcp
    - task: test-docker-boshrelease
      file: git-docker-boshrelease/ci/tasks/test-docker-boshrelease.yml
      params: &test_docker_boshrelease_params
        PROXY_PRIVATE_KEY: ((docker-bosh.proxy-private-key))
        PROXY_USERNAME: ((docker-bosh.proxy-username))
        PROXY_IP: ((docker-bosh.proxy-ip))
        BOSH_CA_CERT: ((docker-bosh.ca-cert))
        BOSH_CLIENT: ((docker-bosh.client))
        BOSH_CLIENT_SECRET: ((docker-bosh.client-secret))
        BOSH_DEPLOYMENT: docker-testflight
        BOSH_ENVIRONMENT: ((docker-bosh.environment))
        MANIFEST_PATH: git-docker-boshrelease/manifests/containers/example.yml
    - task: test-docker-boshrelease-swarm
      file: git-docker-boshrelease/ci/tasks/test-docker-boshrelease.yml
      params:
        <<: *test_docker_boshrelease_params
        BOSH_DEPLOYMENT: docker-swarm-testflight
        MANIFEST_PATH: git-docker-boshrelease/manifests/swarm/docker-swarm.yml
    on_failure:
      put: slack-notification
      params:
        channel: '#docker-boshrelease'
        text: '<https://ci.kubo.sh/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|
          Concourse Failure! :sad_panda:> docker-boshrelease: test-docker-boshrelease job failed'

- name: test-docker-boshrelease-pr
  public: true
  serial: true
  plan:
  - do:
    - aggregate:
      - get: git-docker-boshrelease
      - get: git-pull-requests
        version: every
        trigger: true
      - get: stemcell
        resource: ubuntu-trusty-stemcell-gcp
    - put: git-pull-requests
      params:
        path: git-pull-requests
        status: pending
    - task: test-docker-boshrelease
      file: git-docker-boshrelease/ci/tasks/test-docker-boshrelease-pr.yml
      params:
        <<: *test_docker_boshrelease_params
        BOSH_DEPLOYMENT: docker-testflight-pr
        MANIFEST_PATH: git-pull-requests/manifests/containers/example.yml
      on_failure:
        put: git-pull-requests
        params:
{'fraction_non_alphanumeric': 0.1133271694624224, 'fraction_numerical': 0.001320829480914014, 'mean_word_length': 2.8573611818644933, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6562521', 'n_tokens_mistral': 2811, 'n_tokens_neox': 2632, 'n_words': 435}