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
cf0bdadd
Commit
cf0bdadd
authored
Oct 12, 2015
by
Dawn Chen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15486 from ixdy/resource-check
jenkins/e2e: only run ./cluster/gce/list-resources.sh if it exists
parents
ff84db09
1a3d273b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
e2e.sh
hack/jenkins/e2e.sh
+14
-6
No files found.
hack/jenkins/e2e.sh
View file @
cf0bdadd
...
...
@@ -960,9 +960,17 @@ cd kubernetes
ARTIFACTS
=
${
WORKSPACE
}
/_artifacts
mkdir
-p
${
ARTIFACTS
}
export
E2E_REPORT_DIR
=
${
ARTIFACTS
}
declare
-r
gcp_list_resources_script
=
"./cluster/gce/list-resources.sh"
declare
-r
gcp_resources_before
=
"
${
ARTIFACTS
}
/gcp-resources-before.txt"
declare
-r
gcp_resources_cluster_up
=
"
${
ARTIFACTS
}
/gcp-resources-cluster-up.txt"
declare
-r
gcp_resources_after
=
"
${
ARTIFACTS
}
/gcp-resources-after.txt"
# TODO(15492): figure out some way to run this script even if it doesn't exist
# in the Kubernetes tarball.
if
[[
(
${
KUBERNETES_PROVIDER
}
==
"gce"
||
${
KUBERNETES_PROVIDER
}
==
"gke"
)
&&
-x
"
${
gcp_list_resources_script
}
"
]]
;
then
gcp_list_resources
=
"true"
else
gcp_list_resources
=
"false"
fi
### Pre Set Up ###
# Install gcloud from a custom path if provided. Used to test GKE with gcloud
...
...
@@ -982,13 +990,13 @@ fi
### Set up ###
if
[[
"
${
E2E_UP
,,
}
"
==
"true"
]]
;
then
go run ./hack/e2e.go
${
E2E_OPT
}
-v
--down
if
[[
${
KUBERNETES_PROVIDER
}
==
"gce"
||
${
KUBERNETES_PROVIDER
}
==
"gk
e"
]]
;
then
./cluster/gce/list-resources.sh
>
"
${
gcp_resources_before
}
"
if
[[
"
${
gcp_list_resources
}
"
==
"tru
e"
]]
;
then
${
gcp_list_resources_script
}
>
"
${
gcp_resources_before
}
"
fi
go run ./hack/e2e.go
${
E2E_OPT
}
-v
--up
go run ./hack/e2e.go
-v
--ctl
=
"version --match-server-version=false"
if
[[
${
KUBERNETES_PROVIDER
}
==
"gce"
||
${
KUBERNETES_PROVIDER
}
==
"gk
e"
]]
;
then
./cluster/gce/list-resources.sh
>
"
${
gcp_resources_cluster_up
}
"
if
[[
"
${
gcp_list_resources
}
"
==
"tru
e"
]]
;
then
${
gcp_list_resources_script
}
>
"
${
gcp_resources_cluster_up
}
"
fi
fi
...
...
@@ -1032,8 +1040,8 @@ if [[ "${E2E_DOWN,,}" == "true" ]]; then
# for the wait between attempts.
sleep
30
go run ./hack/e2e.go
${
E2E_OPT
}
-v
--down
if
[[
${
KUBERNETES_PROVIDER
}
==
"gce"
||
${
KUBERNETES_PROVIDER
}
==
"gk
e"
]]
;
then
./cluster/gce/list-resources.sh
>
"
${
gcp_resources_after
}
"
if
[[
"
${
gcp_list_resources
}
"
==
"tru
e"
]]
;
then
${
gcp_list_resources_script
}
>
"
${
gcp_resources_after
}
"
fi
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