mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 15:13:08 +00:00
Node e2e test runner - run against images
- support allocating gce instances from images and running tests against them - set --hostname-override to match node name - add jenkins script to source to reproduce jenkins build locally
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
# owner: owner to be notified for job failures. test results are published to owner email
|
||||
# repoName: github repo to checkout e.g. kubernetes/kubernetes or google/cadvisor
|
||||
# gitbasedir: directory under $WORKSPACE/go/src to checkout source repo to - e.g. k8s.io/kubernetes or github.com/google/cadvisor
|
||||
# shell: shell to execute from workspace
|
||||
# shell: bash command to execute from gitbasedir. should be a single script such as {gitproject}-jenkins.sh
|
||||
- job-template:
|
||||
name: '{gitproject}-gce-e2e-ci'
|
||||
description: '{gitproject} continuous e2e tests.<br>Test Owner: {owner}.'
|
||||
@@ -66,7 +66,12 @@
|
||||
numToKeep: 200
|
||||
node: node
|
||||
builders:
|
||||
- shell: '{shell}'
|
||||
- shell: |
|
||||
#!/bin/bash
|
||||
set -e
|
||||
set -x
|
||||
cd go/src/{gitbasedir}
|
||||
{shell}
|
||||
publishers:
|
||||
- claim-build
|
||||
- gcs-uploader
|
||||
@@ -125,11 +130,6 @@
|
||||
gitbasedir: 'github.com/google/cadvisor'
|
||||
owner: 'vishnuk@google.com'
|
||||
shell: |
|
||||
#!/bin/bash
|
||||
set -e
|
||||
set -x
|
||||
cd go/src/github.com/google/cadvisor
|
||||
|
||||
go get -u github.com/tools/godep
|
||||
|
||||
./build/presubmit.sh
|
||||
@@ -145,28 +145,11 @@
|
||||
repoName: 'kubernetes/heapster'
|
||||
gitbasedir: 'k8s.io/heapster'
|
||||
owner: 'pszczesniak@google.com'
|
||||
shell: |
|
||||
#!/bin/bash
|
||||
set -e
|
||||
set -x
|
||||
cd go/src/k8s.io/heapster
|
||||
|
||||
make test-unit test-integration
|
||||
shell: 'make test-unit test-integration'
|
||||
- 'kubelet':
|
||||
repoName: 'kubernetes/kubernetes'
|
||||
gitbasedir: 'k8s.io/kubernetes'
|
||||
owner: 'pwittroc@google.com'
|
||||
shell: |
|
||||
#!/bin/bash
|
||||
set -e
|
||||
set -x
|
||||
cd go/src/k8s.io/kubernetes
|
||||
|
||||
go get -u github.com/tools/godep
|
||||
go get -u github.com/onsi/ginkgo/ginkgo
|
||||
go get -u github.com/onsi/gomega
|
||||
|
||||
godep go build test/e2e_node/environment/conformance.go
|
||||
godep go run test/e2e_node/runner/run_e2e.go --zone us-central1-f --hosts e2e-node-container-vm-v20151215,e2e-node-coreos-beta.c.kubernetes-jenkins.internal,e2e-node-ubuntu-trusty,e2e-node-ubuntu-trusty-docker1-10 --logtostderr -v 2
|
||||
shell: 'test/e2e_node/jenkins/e2e-node-jenkins.sh test/e2e_node/jenkins/jenkins-ci.properties'
|
||||
jobs:
|
||||
- '{gitproject}-gce-e2e-ci'
|
||||
|
Reference in New Issue
Block a user