<commit_before>---
resources:
- name: bosh-softlayer-cpi
  type: git
  source:
    uri: git@github.com:maximilien/bosh-softlayer-cpi.git
    branch: concourse
    private_key: {{private-repo-key}}

- name: bosh-softlayer-cpi-release
  type: git
  source:
    uri: <EMAIL>:maximilien/bosh-softlayer-cpi-release.git
    branch: concourse
    private_key: {{private-repo-key}}

- name: bosh-softlayer-cpi-release-rc
  type: s3
  source:
    bucket: bosh-softlayer-cpi-stemcells
    regexp: bosh-softlayer-cpi-release-(.*).tgz
    access_key_id: {{s3-access-key-id}}
    secret_access_key: {{s3-secret-access-key}}

- name: bosh-softlayer-stemcells
  type: git
  source:
    uri: git@github.com:maximilien/bosh-softlayer-stemcells.git
    branch: concourse
    private_key: {{private-repo-key}}

- name: softlayer-go
  type: git
  source:
    uri: git@github.com:maximilien/softlayer-go.git
    branch: concourse
    private_key: {{private-repo-key}}

- name: version
  type: semver
  source:
    bucket: bosh-softlayer-cpi-stemcells
    key: current-version
    access_key_id: {{s3-access-key-id}}
    secret_access_key: {{s3-secret-access-key}}
    initial_version: 1.0.0

jobs:
- name: cpi-unit
  plan:
  - get: bosh-softlayer-cpi
    trigger: true
  - task: unit
    file: bosh-softlayer-cpi/ci/unit.yml
    config:
      params:
        SL_USERNAME: fake-username
        SL_API_KEY: fake-api-key

- name: cpi-integration
  plan:
  - get: bosh-softlayer-cpi
    trigger: true
    passed: [cpi-unit]
  - task: build
    file: bosh-softlayer-cpi/ci/build.yml
  - task: integration
    file: bosh-softlayer-cpi/ci/integration.yml
    config:
      params:
        SL_USERNAME: {{SL_USERNAME}}
        SL_API_KEY: {{SL_API_KEY}}

- name: cpi-build
  plan:
  - get: bosh-softlayer-cpi
    trigger: true
    passed: [cpi-integration]
  - task: build
    file: bosh-softlayer-cpi/ci/build.yml

- name: cpi-release-build-rc
  serial: true
  plan:
  - get: bosh-softlayer-cpi-release
    trigger: true
  - get: version
    params: {bump: minor, pre: rc}
  - task: build-tarball
    file: bosh-softlayer-cpi-release/ci/build-tarball.yml
<commit_msg>add version and artifact put to bucket<commit_after>---
resources:
- name: bosh-softlayer-cpi
  type: git
  source:
    uri: <EMAIL>:maximilien/bosh-softlayer-cpi.git
    branch: concourse
    private_key: {{private-repo-key}}

- name: bosh-softlayer-cpi-release
  type: git
  source:
    uri: <EMAIL>:maximilien/bosh-softlayer-cpi-release.git
    branch: concourse
    private_key: {{private-repo-key}}

- name: bosh-softlayer-cpi-release-rc
  type: s3
  source:
    bucket: bosh-softlayer-cpi-stemcells
    regexp: bosh-softlayer-cpi-release-(.*).tgz
    access_key_id: {{s3-access-key-id}}
    secret_access_key: {{s3-secret-access-key}}

- name: bosh-softlayer-stemcells
  type: git
  source:
    uri: <EMAIL>:maximilien/bosh-softlayer-stemcells.git
    branch: concourse
    private_key: {{private-repo-key}}

- name: softlayer-go
  type: git
  source:
    uri: <EMAIL>:maximilien/softlayer-go.git
    branch: concourse
    private_key: {{private-repo-key}}

- name: version
  type: semver
  source:
    bucket: bosh-softlayer-cpi-stemcells
    key: current-version
    access_key_id: {{s3-access-key-id}}
    secret_access_key: {{s3-secret-access-key}}
    initial_version: 1.0.0

jobs:
- name: cpi-unit
  plan:
  - get: bosh-softlayer-cpi
    trigger: true
  - task: unit
    file: bosh-softlayer-cpi/ci/unit.yml
    config:
      params:
        SL_USERNAME: fake-username
        SL_API_KEY: fake-api-key

- name: cpi-integration
  plan:
  - get: bosh-softlayer-cpi
    trigger: true
    passed: [cpi-unit]
  - task: build
    file: bosh-softlayer-cpi/ci/build.yml
  - task: integration
    file: bosh-softlayer-cpi/ci/integration.yml
    config:
      params:
        SL_USERNAME: {{SL_USERNAME}}
        SL_API_KEY: {{SL_API_KEY}}

- name: cpi-build
  plan:
  - get: bosh-softlayer-cpi
    trigger: true
    passed: [cpi-integration]
  - task: build
    file: bosh-softlayer-cpi/ci/build.yml

- name: cpi-release-build-rc
  serial: true
  plan:
  - get: bosh-softlayer-cpi-release
    trigger: true
  - get: version
    params: {bump: minor, pre: rc}
  - task: build-tarball
    file: bosh-softlayer-cpi-release/ci/build-tarball.yml
  - put: bosh-softlayer-cpi-release-rc
    params: {from: build-tarball/bosh-softlayer-cpi-release-.*.tgz}
  - put: version
    params: {file: version/number}

{'fraction_non_alphanumeric': 0.1323430114787306, 'fraction_numerical': 0.0036011703803736214, 'mean_word_length': 2.8744551002615517, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '2046293', 'n_tokens_mistral': 1743, 'n_tokens_neox': 1710, 'n_words': 312}