<commit_before>---
jobs:
  - name: test
    plan:
      - get:      bosh-init
      - aggregate:
        - task:   test-unit
          file:   bosh-init/ci/concourse/jobs/test-unit.yml
        - task:   test-integration
          file:   bosh-init/ci/concourse/jobs/test-integration.yml
        # - task:   test-acceptance
        #   file:   bosh-init/ci/concourse/jobs/test-acceptance.yml

  - name: bump
    plan:
      - get:      bosh-init
        passed:   [test]
      - get:      version
        trigger:  false
        params:   { bump: patch }
      - put:      version
        params:   { file: version/number }

  - name: build
    plan:
      - get:      bosh-init
        passed:   [bump]
      - get:      version
        passed:   [bump]
      - aggregate:
        - task:   build-linux
          file:   bosh-init/ci/concourse/jobs/build-linux.yml
        - task:   build-darwin
          file:   bosh-init/ci/concourse/jobs/build-darwin.yml
      - aggregate:
        # - put:    bosh-init
        #   params: { tag: version/number, tag_prefix: v }
        - put:    release-bucket
          params: { from: bosh-init/out/bosh-init-.*-linux }
        - put:    release-bucket
          params: { from: bosh-init/out/bosh-init-.*-darwin }

  - name: bump-minor
    plan:
      - get:      version
        trigger:  false
        params:   { bump: minor }
      - put:      version
        params:   { file: version/number }

  - name: bump-major
    plan:
      - get:      version
        trigger:  false
        params:   { bump: major }
      - put:      version
        params:   { file: version/number }

resources:
  - name: bosh-init
    type:       git
    source:
      uri:      https://github.com/cloudfoundry/bosh-init.git
      branch:   concourse

  - name: release-bucket
    type:       s3
    source:
      bucket:             x-bosh-init-release-test
      regexp:             bosh-init-(.*)
      region_name:        us-east-1
      access_key_id:      &aws_access_key {{aws_access_key}}
      secret_access_key:  &aws_secret_key {{aws_secret_key}}

  - name: version
    type:       semver
    source:
      bucket:             x-bosh-init-release-test
      key:                current-version
      access_key_id:      *aws_access_key
      secret_access_key:  *aws_secret_key
<commit_msg>update concourse config to separate release buckets<commit_after>---
jobs:
  - name: test
    plan:
      - get:      bosh-init
      - aggregate:
        - task:   test-unit
          file:   bosh-init/ci/concourse/jobs/test-unit.yml
        - task:   test-integration
          file:   bosh-init/ci/concourse/jobs/test-integration.yml
        # - task:   test-acceptance
        #   file:   bosh-init/ci/concourse/jobs/test-acceptance.yml

  - name: bump
    plan:
      - get:      bosh-init
        passed:   [test]
      - get:      version
        trigger:  false
        params:   { bump: patch }
      - put:      version
        params:   { file: version/number }

  - name: build
    plan:
      - get:      bosh-init
        passed:   [bump]
      - get:      version
        passed:   [bump]
      - aggregate:
        - task:   build-linux
          file:   bosh-init/ci/concourse/jobs/build-linux.yml
        - task:   build-darwin
          file:   bosh-init/ci/concourse/jobs/build-darwin.yml
      - aggregate:
        # - put:    bosh-init
        #   params: { tag: version/number, tag_prefix: v }
        - put:    release-bucket-linux
          params: { from: bosh-init/out/bosh-init-.*-linux }
        - put:    release-bucket-darwin
          params: { from: bosh-init/out/bosh-init-.*-darwin }

  - name: bump-minor
    plan:
      - get:      version
        trigger:  false
        params:   { bump: minor }
      - put:      version
        params:   { file: version/number }

  - name: bump-major
    plan:
      - get:      version
        trigger:  false
        params:   { bump: major }
      - put:      version
        params:   { file: version/number }

resources:
  - name: bosh-init
    type:       git
    source:
      uri:      https://github.com/cloudfoundry/bosh-init.git
      branch:   concourse

  - name: release-bucket-linux
    type:       s3
    source:
      bucket:             x-bosh-init-release-test
      regexp:             bosh-init-(.*)-linux
      region_name:        us-east-1
      access_key_id:      {{aws_access_key}}
      secret_access_key:  {{aws_secret_key}}

  - name: release-bucket-darwin
    type:       s3
    source:
      bucket:             x-bosh-init-release-test
      regexp:             bosh-init-(.*)-darwin
      region_name:        us-east-1
      access_key_id:      {{aws_access_key}}
      secret_access_key:  {{aws_secret_key}}

  - name: version
    type:       semver
    source:
      bucket:             x-bosh-init-release-test
      key:                current-version
      access_key_id:      {{aws_access_key}}
      secret_access_key:  {{aws_secret_key}}

{'fraction_non_alphanumeric': 0.1099959855479727, 'fraction_numerical': 0.0012043356081894822, 'mean_word_length': 1.4283625730994152, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7428183', 'n_tokens_mistral': 1652, 'n_tokens_neox': 1601, 'n_words': 313}