<commit_before>groups: []

resource_types:
- name: pivnet
  type: docker-image
  source:
    repository: pivotalcf/pivnet-resource
    tag: latest-final

resources:
- name: pcf-pipelines
  type: git
  source:
    uri: <EMAIL>:c0-ops/pcf-pipelines
    branch: master

- name: tool-om
  type: github-release
  source:
    user: pivotal-cf
    repository: om
    access_token: {{github_token}}

- name: elastic-runtime
  type: pivnet
  check_every: {{poll_interval}}
  source:
    api_token: {{pcf_pivnet_token}}
    product_slug: elastic-runtime
    product_version: 1.9.*
    sort_by: semver

- name: stemcell-downloader
  type: github-release
  source:
    user: c0-ops
    repository: pcf-product-stemcell-downloader
    access_token: {{github-token}}
    globs:
    - stemcell-downloader-linux

jobs:
- name: upload
  plan:
  - aggregate:
    - get: pcf-pipelines
    - get: pivnet-product
      resource: elastic-runtime
      trigger: true
      params:
        globs:
        - "*pivotal"
    - get: tool-om
      params:
        globs:
        - om-linux
  - task: upload
    file: pcf-pipelines/tasks/upload-product/task.yml
    params:
      OPSMAN_USERNAME: {{opsman_admin_username}}
      OPSMAN_PASSWORD: {{opsman_admin_password}}
      OPSMAN_URI: {{opsman_uri}}
      PIVNET_PRODUCT_NAME: elastic-runtime

- name: stage
  plan:
  - aggregate:
    - get: pcf-pipelines
      passed: [upload]
    - get: pivnet-product
      trigger: true
      passed: [upload]
      params:
        globs:
        - "*pivotal"
    - get: tool-om
      params:
        globs:
        - om-linux
  - task: stage
    file: pcf-pipelines/tasks/stage-product/task.yml
    params:
      OPSMAN_USERNAME: {{opsman_admin_username}}
      OPSMAN_PASSWORD: {{<PASSWORD>}}
      OPSMAN_URI: {{opsman_uri}}
      PRODUCT_NAME: cf

- name: upload-stemcell
  plan:
  - aggregate:
    - get: pcf-pipelines
      passed: [stage]
    - get: stemcell-downloader
    - get: pivnet-product
      trigger: true
      passed: [stage]
      params:
        globs:
        - "*pivotal"
    - get: tool-om
      params:
        globs:
        - om-linux
  - task: download-stemcell
    file: pcf-pipelines/tasks/download-bosh-io-stemcell/task.yml
    params:
      PRODUCT: cf
      IAAS_TYPE: {{iaas_type}}
  - task: upload-stemcell
    file: pcf-pipelines/tasks/upload-stemcell/task.yml
    params:
      OPSMAN_USERNAME: {{opsman_admin_username}}
      OPSMAN_PASSWORD: {{<PASSWORD>}}
      OPSMAN_URI: {{opsman_uri}}
<commit_msg>Rename stemcell tasks for clarity<commit_after>groups: []

resource_types:
- name: pivnet
  type: docker-image
  source:
    repository: pivotalcf/pivnet-resource
    tag: latest-final

resources:
- name: pcf-pipelines
  type: git
  source:
    uri: git@github.com:c0-ops/pcf-pipelines
    branch: master

- name: tool-om
  type: github-release
  source:
    user: pivotal-cf
    repository: om
    access_token: {{github_token}}

- name: elastic-runtime
  type: pivnet
  check_every: {{poll_interval}}
  source:
    api_token: {{pcf_pivnet_token}}
    product_slug: elastic-runtime
    product_version: 1.9.*
    sort_by: semver

- name: stemcell-downloader
  type: github-release
  source:
    user: c0-ops
    repository: pcf-product-stemcell-downloader
    access_token: {{github-token}}
    globs:
    - stemcell-downloader-linux

jobs:
- name: upload
  plan:
  - aggregate:
    - get: pcf-pipelines
    - get: pivnet-product
      resource: elastic-runtime
      trigger: true
      params:
        globs:
        - "*pivotal"
    - get: tool-om
      params:
        globs:
        - om-linux
  - task: upload
    file: pcf-pipelines/tasks/upload-product/task.yml
    params:
      OPSMAN_USERNAME: {{opsman_admin_username}}
      OPSMAN_PASSWORD: {{<PASSWORD>}}
      OPSMAN_URI: {{opsman_uri}}
      PIVNET_PRODUCT_NAME: elastic-runtime

- name: stage
  plan:
  - aggregate:
    - get: pcf-pipelines
      passed: [upload]
    - get: pivnet-product
      trigger: true
      passed: [upload]
      params:
        globs:
        - "*pivotal"
    - get: tool-om
      params:
        globs:
        - om-linux
  - task: stage
    file: pcf-pipelines/tasks/stage-product/task.yml
    params:
      OPSMAN_USERNAME: {{opsman_admin_username}}
      OPSMAN_PASSWORD: {{<PASSWORD>}}
      OPSMAN_URI: {{opsman_uri}}
      PRODUCT_NAME: cf

- name: upload-stemcell
  plan:
  - aggregate:
    - get: pcf-pipelines
      passed: [stage]
    - get: stemcell-downloader
    - get: pivnet-product
      trigger: true
      passed: [stage]
      params:
        globs:
        - "*pivotal"
    - get: tool-om
      params:
        globs:
        - om-linux
  - task: download-from-bosh-io
    file: pcf-pipelines/tasks/download-bosh-io-stemcell/task.yml
    params:
      PRODUCT: cf
      IAAS_TYPE: {{iaas_type}}
  - task: upload-to-opsmgr
    file: pcf-pipelines/tasks/upload-stemcell/task.yml
    params:
      OPSMAN_USERNAME: {{opsman_admin_username}}
      OPSMAN_PASSWORD: {{<PASSWORD>}}
      OPSMAN_URI: {{opsman_uri}}

{'fraction_non_alphanumeric': 0.11433684629150925, 'fraction_numerical': 0.0015907735136209981, 'mean_word_length': 2.3333333333333335, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7427787', 'n_tokens_mistral': 1847, 'n_tokens_neox': 1775, 'n_words': 350}