<commit_before>groups:
- name: etcd
  jobs:
  - check-git-submodules
  - test-etcd-metrics-server
  - test-etcd
  - deploy-bosh-lite-manifests
  - deploy-aws-manifests
  - deploy-with-cf
  - deploy-with-diego
  - test-with-diego
  - test-cf-tls-upgrade
  - delete-deployments
  - create-final-release
  - merge-master-into-develop

resources:
- name: etcd-cf-env
  type: git
  source:
    branch: master
    private_key: {{etcd-cf-env-private-key}}
    uri: <EMAIL>:cloudfoundry/etcd-cf-env.git
- name: oss-s3-buckets-stack
  type: git
  source:
    branch: master
    private_key: {{oss-s3-buckets-stack-private-key}}
    uri: <EMAIL>:cloudfoundry/oss-s3-buckets-stack.git
- name: mega-ci
  type: git
  source:
    branch: master
    uri: https://github.com/cloudfoundry/mega-ci.git
- name: etcd-release-develop
  type: git
  source:
    branch: develop
    ignore_paths: [.final_builds, releases]
    uri: https://github.com/cloudfoundry-incubator/etcd-release.git
- name: etcd-release-merge-target
  type: git
  source:
    branch: develop
    private_key: {{etcd-release-private-key}}
    uri: <EMAIL>:cloudfoundry-incubator/etcd-release.git
- name: etcd-release-master
  type: git
  source:
    branch: master
    private_key: {{etcd-release-private-key}}
    uri: <EMAIL>:cloudfoundry-incubator/etcd-release.git
- name: consul-release-master
  type: git
  source:
    branch: master
    ignore_paths: [.final_builds, releases]
    uri: https://github.com/cloudfoundry-incubator/consul-release.git
- name: diego-release-master
  type: git
  source:
    branch: master
    ignore_paths: [.final_builds, releases]
    uri: https://github.com/cloudfoundry/diego-release.git
- name: cf-release
  type: git
  source:
    branch: develop
    uri: https://github.com/cloudfoundry/cf-release.git
- name: bosh-lite
  type: git
  source:
    branch: master
    uri: https://github.com/cloudfoundry/bosh-lite.git
- name: bosh-lite-stemcell
  type: bosh-io-stemcell
  source:
    name: bosh-warden-boshlite-ubuntu-trusty-go_agent
- name: aws-stemcell
  type: bosh-io-stemcell
  source:
    name: bosh-aws-xen-hvm-ubuntu-trusty-go_agent
- name: turbulence-release
  type: bosh-io-release
  source:
    repository: cppforlife/turbulence-release
- name: bosh-aws-cpi-release
  type: bosh-io-release
  source:
    repository: cloudfoundry-incubator/bosh-aws-cpi-release
- name: consul-release
  type: bosh-io-release
  source:
    repository: cloudfoundry-incubator/consul-release

jobs:
- name: check-git-submodules
  public: true
  serial: true
  plan:
  - aggregate:
    - get: mega-ci
    - get: repo
      resource: etcd-release-develop
      trigger: true
  - task: check-git-submodules
    file: mega-ci/scripts/ci/check-git-submodules/task.yml
    config:
      params:
        PROTOCOL: https

- name: deploy-bosh-lite-manifests
  public: true
  plan:
  - aggregate:
    - get: mega-ci
    - get: bosh-lite<commit_msg>Add delete-deployments to etcd pipeline<commit_after>groups:
- name: etcd
  jobs:
  - check-git-submodules
  - test-etcd-metrics-server
  - test-etcd
  - deploy-bosh-lite-manifests
  - deploy-aws-manifests
  - deploy-with-cf
  - deploy-with-diego
  - test-with-diego
  - test-cf-tls-upgrade
  - delete-deployments
  - create-final-release
  - merge-master-into-develop
- name: cleanup
  jobs:
  - delete-etcd-deployments

resources:
- name: etcd-cf-env
  type: git
  source:
    branch: master
    private_key: {{etcd-cf-env-private-key}}
    uri: git@github.com:cloudfoundry/etcd-cf-env.git
- name: oss-s3-buckets-stack
  type: git
  source:
    branch: master
    private_key: {{oss-s3-buckets-stack-private-key}}
    uri: git@github.com:cloudfoundry/oss-s3-buckets-stack.git
- name: mega-ci
  type: git
  source:
    branch: master
    uri: https://github.com/cloudfoundry/mega-ci.git
- name: etcd-release-develop
  type: git
  source:
    branch: develop
    ignore_paths: [.final_builds, releases]
    uri: https://github.com/cloudfoundry-incubator/etcd-release.git
- name: etcd-release-merge-target
  type: git
  source:
    branch: develop
    private_key: {{etcd-release-private-key}}
    uri: git@github.com:cloudfoundry-incubator/etcd-release.git
- name: etcd-release-master
  type: git
  source:
    branch: master
    private_key: {{etcd-release-private-key}}
    uri: git@github.com:cloudfoundry-incubator/etcd-release.git
- name: consul-release-master
  type: git
  source:
    branch: master
    ignore_paths: [.final_builds, releases]
    uri: https://github.com/cloudfoundry-incubator/consul-release.git
- name: diego-release-master
  type: git
  source:
    branch: master
    ignore_paths: [.final_builds, releases]
    uri: https://github.com/cloudfoundry/diego-release.git
- name: cf-release
  type: git
  source:
    branch: develop
    uri: https://github.com/cloudfoundry/cf-release.git
- name: bosh-lite
  type: git
  source:
    branch: master
    uri: https://github.com/cloudfoundry/bosh-lite.git
- name: bosh-lite-stemcell
  type: bosh-io-stemcell
  source:
    name: bosh-warden-boshlite-ubuntu-trusty-go_agent
- name: aws-stemcell
  type: bosh-io-stemcell
  source:
    name: bosh-aws-xen-hvm-ubuntu-trusty-go_agent
- name: turbulence-release
  type: bosh-io-release
  source:
    repository: cppforlife/turbulence-release
- name: bosh-aws-cpi-release
  type: bosh-io-release
  source:
    repository: cloudfoundry-incubator/bosh-aws-cpi-release
- name: consul-release
  type: bosh-io-release
  source:
    repository: cloudfoundry-incubator/consul-release

jobs:
- name: delete-etcd-deployments
  public: false
  plan:
  - aggregate:
    - get: mega-ci
  - task: delete-deployments
    file: mega-ci/scripts/ci/delete-deployments/task.yml
    config:
      params:
        BOSH_DIRECTOR: {{cf_bosh_director}}
        BOSH_USER: {{cf_bosh_user}}
        BOSH_PASSWORD: {{<PASSWORD>}}
        DEPLOYMENTS_WITH_WORD: etcd

- name: check-git-submodules
  public: true
  serial: true
  plan:
  - aggregate:
    - get: mega-ci
    - get: repo
      resource: etcd-release-develop
      trigger: true
  - task: check-git-submodules
    file: mega-ci/scripts/ci/check-git-submodules/task.yml
    config:
      params:
        PROTOCOL: https

- name: deploy-bosh-lite-manifests
  public: true
  plan:
  - aggregate:
    - get: mega-ci
    - get: bosh-lite
{'fraction_non_alphanumeric': 0.12470214455917394, 'fraction_numerical': 0.0009531374106433678, 'mean_word_length': 2.959748427672956, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '1024626', 'n_tokens_mistral': 2389, 'n_tokens_neox': 2307, 'n_words': 417}