Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
12de230b
Commit
12de230b
authored
May 07, 2015
by
Quinton Hoole
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7935 from saad-ali/jenkinssoak
Add control variables to Jenkins E2E script
parents
c903aa76
7cc25842
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
e2e.sh
hack/jenkins/e2e.sh
+16
-5
No files found.
hack/jenkins/e2e.sh
View file @
12de230b
...
@@ -92,6 +92,11 @@ export KUBE_GKE_NETWORK=${E2E_NETWORK}
...
@@ -92,6 +92,11 @@ export KUBE_GKE_NETWORK=${E2E_NETWORK}
export
PATH
=
${
PATH
}
:/usr/local/go/bin
export
PATH
=
${
PATH
}
:/usr/local/go/bin
export
KUBE_SKIP_CONFIRMATIONS
=
y
export
KUBE_SKIP_CONFIRMATIONS
=
y
# E2E Control Variables
export
E2E_UP
=
"
${
E2E_UP
:-
true
}
"
export
E2E_TEST
=
"
${
E2E_TEST
:-
true
}
"
export
E2E_DOWN
=
"
${
E2E_DOWN
:-
true
}
"
if
[[
${
KUBE_RUN_FROM_OUTPUT
:-}
=
~ ^[yY]
$
]]
;
then
if
[[
${
KUBE_RUN_FROM_OUTPUT
:-}
=
~ ^[yY]
$
]]
;
then
echo
"Found KUBE_RUN_FROM_OUTPUT=y; will use binaries from _output"
echo
"Found KUBE_RUN_FROM_OUTPUT=y; will use binaries from _output"
cp
_output/release-tars/kubernetes
*
.tar.gz
.
cp
_output/release-tars/kubernetes
*
.tar.gz
.
...
@@ -142,14 +147,20 @@ fi
...
@@ -142,14 +147,20 @@ fi
export
E2E_REPORT_DIR
=
${
WORKSPACE
}
export
E2E_REPORT_DIR
=
${
WORKSPACE
}
### Set up ###
### Set up ###
go run ./hack/e2e.go
${
E2E_OPT
}
-v
--down
if
[[
"
${
E2E_UP
,,
}
"
==
"true"
]]
;
then
go run ./hack/e2e.go
${
E2E_OPT
}
-v
--up
go run ./hack/e2e.go
${
E2E_OPT
}
-v
--down
go run ./hack/e2e.go
-v
--ctl
=
"version --match-server-version=false"
go run ./hack/e2e.go
${
E2E_OPT
}
-v
--up
go run ./hack/e2e.go
-v
--ctl
=
"version --match-server-version=false"
fi
### Run tests ###
### Run tests ###
# Jenkins will look at the junit*.xml files for test failures, so don't exit
# Jenkins will look at the junit*.xml files for test failures, so don't exit
# with a nonzero error code if it was only tests that failed.
# with a nonzero error code if it was only tests that failed.
go run ./hack/e2e.go
${
E2E_OPT
}
-v
--test
--test_args
=
"
${
GINKGO_TEST_ARGS
}
--ginkgo.noColor"
||
true
if
[[
"
${
E2E_TEST
,,
}
"
==
"true"
]]
;
then
go run ./hack/e2e.go
${
E2E_OPT
}
-v
--test
--test_args
=
"
${
GINKGO_TEST_ARGS
}
--ginkgo.noColor"
||
true
fi
### Clean up ###
### Clean up ###
go run ./hack/e2e.go
${
E2E_OPT
}
-v
--down
if
[[
"
${
E2E_DOWN
,,
}
"
==
"true"
]]
;
then
go run ./hack/e2e.go
${
E2E_OPT
}
-v
--down
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment