# pipeline for Concourse CI for sslip.io
# fly -t nono sp -p sslip.io -c pipeline-sslip.io.yml
# fly -t nono expose-pipeline -p sslip.io
groups:
- name: sslip.io
  jobs:
  - check-dns

jobs:
- name: check-dns
  public: true
  plan:
  - {get: sslip.io,   trigger: true}
  - {get: 6h,         trigger: true}
  - task: check-dns
    file: sslip.io/ci/tasks/check-dns.yml
    params:
      DOMAIN: sslip.io

resources:
- name: sslip.io
  type: git
  source:
    uri: https://github.com/cunnie/sslip.io
    branch: master

- name: 6h
  type: time
  source: {interval: 6h}

# pipeline for Concourse CI for sslip.io
# fly -t nono sp -p sslip.io -c pipeline-sslip.io.yml
# fly -t nono expose-pipeline -p sslip.io
groups:
- name: sslip.io
  jobs:
  - check-dns

jobs:
- name: check-dns
  public: true
  plan:
  - {get: sslip.io,   trigger: true}
  - {get: 6h,         trigger: true}
  - task: check-dns
    file: sslip.io/ci/tasks/check-dns.yml
    attempts: 10
    params:
      DOMAIN: sslip.io

resources:
- name: sslip.io
  type: git
  source:
    uri: https://github.com/cunnie/sslip.io
    branch: master

- name: 6h
  type: time
  source: {interval: 6h}

Reduce flakiness by attempting 10 times
Reduce flakiness by attempting 10 times

- DNS is flaky, and sometimes tests fail for spurious reasons
  (e.g.  <https://ci.nono.io/teams/main/pipelines/sslip.io/jobs/check-dns/builds/1621>)

fixes
```
dig: couldn't get address for 'ns-he.nono.io.': not found
  nameserver ns-he.nono.io.'s NS records match whois's ["ns-azure.nono.io.", "ns-aws.nono.io.", "ns-he.nono.io.", "ns-gce.nono.io."], `dig +short ns sslip.io @ns-he.nono.io.` (FAILED - 1)
```
