<commit_before>---
jobs:
  - name: build
    serial_groups: [version]
    plan:
      - get: bgd-git
        trigger: true
      - get: version
        params: {bump: patch}
      - task: build and test
        file: bgd-git/pipeline/build.yml
      - put: bgd-artefact-swift
        params: {from: artefacts/.*\.tar\.gz}
      - put: version
        params: {file: version/number}
  - name: acceptance
    plan:
      - get: bgd-git
      - get: bgd-artefact-swift
        trigger: true
        passed: [build]
      - task: acceptance
        file: bgd-git/pipeline/acceptance.yml
        params:
          CF_PASSWORD: {{<PASSWORD>}}

resources:
- name: bgd-git
  type: git
  source:
    uri: https://github.com/bluemixgaragelondon/cf-blue-green-deploy
    branch: pipeline

- name: version
  type: semver
  source:
    driver: swift
    openstack:
      container: bgd-version
      item_name: version
      region: dallas
      identity_endpoint: https://lon-identity.open.softlayer.com/v3
      domain_name: "884793"
      username: {{swift-username}}
      password: <PASSWORD>}}

- name: bgd-artefact-swift
  type: swift
  source:
    username: {{swift-username}}
    api_key: {{swift-password}}
    auth_url: https://lon-identity.open.softlayer.com/v3
    domain: "884793"
    container: bgd-artefacts
    regex: blue-green-deploy-([.0-9]+)\.tar\.gz
    region: #Resource does not support regions, defaults to dallas

resource_types:
- name: swift
  type: docker-image
  source:
    repository: databus23/concourse-swift-resource<commit_msg>Build every weekday day<commit_after>---
jobs:
  - name: build
    serial_groups: [version]
    plan:
      - get: midday-timer
        trigger: true
      - get: bgd-git
        trigger: true
      - get: version
        params: {bump: patch}
      - task: build and test
        file: bgd-git/pipeline/build.yml
      - put: bgd-artefact-swift
        params: {from: artefacts/.*\.tar\.gz}
      - put: version
        params: {file: version/number}
  - name: acceptance
    plan:
      - get: bgd-git
      - get: bgd-artefact-swift
        trigger: true
        passed: [build]
      - task: acceptance
        file: bgd-git/pipeline/acceptance.yml
        params:
          CF_PASSWORD: {{cf-password}}

resources:
- name: bgd-git
  type: git
  source:
    uri: https://github.com/bluemixgaragelondon/cf-blue-green-deploy
    branch: pipeline

- name: midday-timer
  type: time
  source:
    start: 12:00 +0000
    stop: 13:00 +0000
    days:
      - Monday
      - Tuesday
      - Wednesday
      - Thursday
      - Friday

- name: version
  type: semver
  source:
    driver: swift
    openstack:
      container: bgd-version
      item_name: version
      region: dallas
      identity_endpoint: https://lon-identity.open.softlayer.com/v3
      domain_name: "884793"
      username: {{swift-username}}
      password: {{<PASSWORD>}}

- name: bgd-artefact-swift
  type: swift
  source:
    username: {{swift-username}}
    api_key: {{swift-password}}
    auth_url: https://lon-identity.open.softlayer.com/v3
    domain: "884793"
    container: bgd-artefacts
    regex: blue-green-deploy-([.0-9]+)\.tar\.gz
    region: #Resource does not support regions, defaults to dallas

resource_types:
- name: swift
  type: docker-image
  source:
    repository: databus23/concourse-swift-resource
{'fraction_non_alphanumeric': 0.12088569718731298, 'fraction_numerical': 0.015559545182525433, 'mean_word_length': 2.229951690821256, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 6, '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': '1419941', 'n_tokens_mistral': 1163, 'n_tokens_neox': 1112, 'n_words': 255}