- op: add
  path: /resources/-
  value:
    name: LOCK_RESOURCE_NAME
    type: pool
    source:
      uri: git@github.com:pivotal-cf/c0-ci-locks.git
      branch: master
      pool: LOCK_POOL_NAME
      private_key: ((locks_git_ssh_key))

- op: add
  path: /jobs/-
  value:
    name: release-lock
    plan:
    - get: RESOURCE_NAME
      passed: [LAST_JOB_NAME]
      trigger: true
    - get: LOCK_NAME
      resource: LOCK_RESOURCE_NAME
    - put: LOCK_RESOURCE_NAME
      params: {release: LOCK_NAME}

- op: add
  path: /resources/-
  value:
    name: LOCK_RESOURCE_NAME
    type: pool
    source:
      uri: git@github.com:pivotal-cf/c0-ci-locks.git
      branch: master
      pool: LOCK_POOL_NAME
      private_key: {{locks_git_ssh_key}}

- op: add
  path: /jobs/-
  value:
    name: release-lock
    plan:
    - get: RESOURCE_NAME
      passed: [LAST_JOB_NAME]
      trigger: true
    - get: LOCK_NAME
      resource: LOCK_RESOURCE_NAME
    - put: LOCK_RESOURCE_NAME
      params: {release: LOCK_NAME}

Undo {{}} => (()) in ci operations directory
Undo {{}} => (()) in ci operations directory

Signed-off-by: Kira Boyle <915c52ff6d15959b77bad7a6f38cf248769bd1c2@pivotal.io>
