anchor.diff:        - put: pool-6.5-NSXT21
           params : {release: pool-6.5-NSXT21}
   
  -
  -  - name: lock-distribution-test
  -    plan:
  -      - aggregate:
  -        - get: source-ci
  -        - get: bosh-cpi-src
  -          passed: [bats]
  -        - get: bosh-cpi-artifacts
  -          trigger: true
  -          passed: [bats]
  -      - do:
  -        - put: environment
  -          resource: pool-6.5-NSXT21
  -          params: {acquire: true}
  -        - task: extend-lease-6.5
  -          file: source-ci/ci/tasks/extend-lease.yml
  -          params:
  -            DBCUSER: {{dbc_user}}
  -            DBCHOST: {{dbc_host}}
  -            DBC_SSH_KEY: {{dbc_key}}
  -          on_failure:
  -            put: pool-6.5-NSXT21
  -            params : {release: environment}
  -        attempts: 4
  -
  -  - name: distribution-test
  -    serial: true
  -    plan:
  -      - aggregate:
  -        - get: source-ci
  -        - {get: cpi-release,              trigger: false, resource: bosh-cpi-artifacts, passed: [lock-distribution-test]}
  -        - {get: environment,              trigger: true,  passed: [lock-distribution-test], resource: pool-6.5-NSXT21}
  -        - {get: bosh-release,             trigger: false, resource: old-bosh-release}
  -        - {get: stemcell,                 trigger: false, resource: old-stemcell}
  -        - {get: certification,            trigger: false}
  -        - {get: bosh-deployment,          trigger: false}
  -        - {get: bats,                     trigger: false}
  -        - {get: bosh-cli,                 trigger: false}
  -        - {get: bosh-cpi-src,             trigger: false, passed: [lock-distribution-test]}
  -      - task: prepare-director
  -        file: source-ci/ci/tasks/prepare-director.yml
  -        params:
  -          OPTIONAL_OPS_FILE:  |
  -            -o certification/shared/assets/ops/redis.yml
  -            -o certification/shared/assets/ops/remove-hm.yml
  -            -o bosh-deployment/vsphere/resource-pool.yml
  -            -o certification/shared/assets/ops/remove-provider-cert.yml
  -      - do:
  -        - task: deploy-director
  -          file: source-ci/ci/tasks/deploy-director.yml
  -        - task: run-distribution-test
  -          file: source-ci/ci/tasks/run-distribution-test.yml
  -        on_failure:
  -          aggregate:
  -          - put: pool-6.5-NSXT21
  -            params : {remove: environment}
  -          - put: notify
  -            params:
  -              username: 'CPI-Doctor'
  -              text: |
  -                The distribution test failed. Check it out at: https://ci.vcna.io/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
  -        ensure:
  -          do:
  -            - task: teardown
  -              file: source-ci/ci/tasks/teardown.yml
  -      - put: notify
  -        params:
  -          username: 'CPI-Doctor'
  -          text: |
  -            The distribution tests passed. Check it out at: https://ci.vcna.io/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
  -
  -  - name: unlock-distribution-test
  -    plan:
  -      - {trigger: true, passed: [distribution-test], get: pool-6.5-NSXT21}
  -      - put: pool-6.5-NSXT21
  -        params : {release: pool-6.5-NSXT21}
  -
     - name: delivery
       plan:
       - aggregate:
  
positive.code:   - lifecycle-6.0-NSXV
    - lock-6.0-NSXV
    - unlock-6.0-NSXV
    - lock-distribution-test
    - distribution-test
    - unlock-distribution-test
  
  
  - name: Delivery
    jobs:
  
negative.code:     - aggregate:
        - get: source-ci
        - get: bosh-cpi-artifacts
          passed: [bats]
        - get: bosh-cpi-src
          passed: [bats]
        - get: release-version-semver
          params: { bump: major }
      - task: inspect
  