github.com/shashidharatd/test-infra@v0.0.0-20171006011030-71304e1ca560/jenkins/job-configs/kubernetes-jenkins-pull/bootstrap-security-pull.yaml (about) 1 - job-template: 2 name: 'pull-security-{suffix}' 3 concurrent: true 4 properties: 5 - build-discarder: 6 days-to-keep: 7 7 - throttle: 8 max-total: '{max-total}' 9 max-per-node: 2 10 option: project 11 - raw: 12 xml: | 13 <com.cloudbees.plugins.JobPrerequisites plugin="slave-prerequisites@1.0"> 14 <script>docker version; gcloud version</script> 15 <interpreter>shell script</interpreter> 16 </com.cloudbees.plugins.JobPrerequisites> 17 parameters: 18 # TODO(spxtr): Delete these two. 19 - string: 20 name: ghprbPullId 21 - string: 22 name: ghprbTargetBranch 23 - string: 24 name: PULL_REFS 25 - string: 26 name: PULL_NUMBER 27 - string: 28 name: PULL_BASE_REF 29 # The test job tracks a run through the queue using the buildId parameter. 30 - string: 31 name: buildId 32 wrappers: 33 - e2e-credentials-binding 34 - credentials-binding: 35 - file: 36 credential-id: 'k8s-security-repo-git-ssh-key' 37 variable: 'K8S_SECURITY_SSH_PRIVATE_KEY_FILE' 38 - inject: 39 properties-content: | 40 GOROOT=/usr/local/go 41 GOPATH=$WORKSPACE/go 42 PATH=$PATH:$GOROOT/bin:$WORKSPACE/go/bin 43 - workspace-cleanup: 44 dirmatch: true 45 exclude: 46 - 'go/src/{repo-name}/.git/' 47 - 'test-infra/.git/' 48 external-deletion-command: 'sudo rm -rf %s' 49 - timeout: 50 timeout: 90 51 fail: true 52 builders: 53 - shell: | 54 # TODO(fejta): consider a stable tag instead of master 55 git clone https://github.com/kubernetes/test-infra -b master 56 './test-infra/jenkins/bootstrap.py' \ 57 --job='{job-name}' \ 58 "--repo={repo-name}=${{PULL_REFS}}" \ 59 --root="${{GOPATH}}/src" \ 60 --service-account="${{GOOGLE_APPLICATION_CREDENTIALS}}" \ 61 --timeout='{timeout}' \ 62 --upload='gs://kubernetes-security-jenkins/pr-logs' \ 63 --ssh="${{K8S_SECURITY_SSH_PRIVATE_KEY_FILE}}" 64 - project: 65 name: bootstrap-security-pull-jobs 66 jobs: 67 - 'pull-security-{suffix}' 68 suffix: # pull-<repo>-<suffix> is the expected format 69 - kubernetes-cross: 70 max-total: 12 71 job-name: pull-kubernetes-cross 72 repo-name: 'github.com/kubernetes-security/kubernetes' 73 timeout: 90 74 - kubernetes-e2e-gce-etcd3: 75 max-total: 12 76 job-name: pull-kubernetes-e2e-gce-etcd3 77 repo-name: 'github.com/kubernetes-security/kubernetes' 78 timeout: 85 79 - kubernetes-e2e-kops-aws: 80 max-total: 12 81 job-name: pull-kubernetes-e2e-kops-aws 82 repo-name: 'github.com/kubernetes-security/kubernetes' 83 timeout: 75 84 - kubernetes-kubemark-e2e-gce: 85 max-total: 12 86 job-name: pull-kubernetes-kubemark-e2e-gce 87 repo-name: 'github.com/kubernetes-security/kubernetes' 88 timeout: 65 89 - kubernetes-node-e2e: 90 max-total: 12 91 job-name: pull-kubernetes-node-e2e 92 repo-name: 'github.com/kubernetes-security/kubernetes' 93 timeout: 90 94 - kubernetes-verify: 95 max-total: 16 96 job-name: pull-kubernetes-verify 97 repo-name: 'github.com/kubernetes-security/kubernetes' 98 timeout: 75 99 - kubernetes-unit: 100 max-total: 16 101 job-name: pull-kubernetes-unit 102 repo-name: 'github.com/kubernetes-security/kubernetes' 103 timeout: 60