github.com/shashidharatd/test-infra@v0.0.0-20171006011030-71304e1ca560/jenkins/job-configs/kubernetes-jenkins/bootstrap-ci-dockerpush.yaml (about)

     1  - job-template:
     2      builders:
     3      - shell: |
     4          # TODO(fejta): consider a stable tag instead of master
     5          git clone https://github.com/kubernetes/test-infra -b master
     6          './test-infra/jenkins/bootstrap.py' \
     7              --job='{job-name}' \
     8              --repo='{repo-name}={branch}' \
     9              --root="${{GOPATH}}/src" \
    10              --service-account="${{GOOGLE_APPLICATION_CREDENTIALS}}" \
    11              --timeout='{timeout}' \
    12              --upload='gs://kubernetes-jenkins/logs'
    13      disabled: false
    14      name: 'ci-{dockerpush-suffix}'
    15      node: 'build'
    16      properties:
    17      - build-discarder:
    18          days-to-keep: 7
    19      triggers:
    20      - timed: '{frequency}'
    21      wrappers:
    22      - e2e-credentials-binding
    23      - credentials-binding:
    24          - username-password-separated:
    25              credential-id: '1f361efb-5b85-4f61-91a7-4ec7fb2a5c23'
    26              username: DOCKER_USER
    27              password: DOCKER_PASSWORD
    28      - inject:
    29          properties-content: |
    30              GOROOT=/usr/local/go
    31              GOPATH=$WORKSPACE/go
    32              PATH=$PATH:$GOROOT/bin:$WORKSPACE/go/bin
    33      - timeout:
    34          timeout: 100
    35          fail: true
    36      - workspace-cleanup:  # cleanup before the job starts, for clean build.
    37          dirmatch: true
    38          exclude:
    39          - '**/.git/'
    40          external-deletion-command: 'sudo rm -rf %s'
    41      publishers:
    42      - workspace-cleanup:  # cleanup after job finishes, to not waste space.
    43          dirmatch: true
    44          exclude:
    45          - '**/.git/'
    46          external-deletion-command: 'sudo rm -rf %s'
    47  
    48  - project:
    49      jobs:
    50      - 'ci-{dockerpush-suffix}'
    51      name: bootstrap-ci-dockerpush
    52      dockerpush-suffix:
    53      - cadvisor-canarypush:
    54          branch: master
    55          job-name: ci-cadvisor-canarypush
    56          repo-name: github.com/google/cadvisor
    57          frequency: '@daily'
    58          timeout: 30