Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend-clients
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
frontend-clients
Commits
c61f9221
Commit
c61f9221
authored
9 months ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
test e2e on load cluster
parent
40df0785
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
alfa-client/apps/alfa-e2e/Jenkinsfile
+6
-6
6 additions, 6 deletions
alfa-client/apps/alfa-e2e/Jenkinsfile
with
6 additions
and
6 deletions
alfa-client/apps/alfa-e2e/Jenkinsfile
+
6
−
6
View file @
c61f9221
...
@@ -530,9 +530,9 @@ Boolean hasNamespaceFile(String bezeichner) {
...
@@ -530,9 +530,9 @@ Boolean hasNamespaceFile(String bezeichner) {
Void
waitForDeletion
(
String
bezeichner
)
{
Void
waitForDeletion
(
String
bezeichner
)
{
try
{
try
{
sh
"kubectl wait --for=delete applications/by-${bezeichner}-
dev
-application -n argocd --timeout=900s"
sh
"kubectl wait --for=delete applications/by-${bezeichner}-
load
-application -n argocd --timeout=900s"
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
error
(
"Application by-${bezeichner}-
dev
-application konnte nicht gelöscht werden"
)
error
(
"Application by-${bezeichner}-
load
-application konnte nicht gelöscht werden"
)
}
}
}
}
...
@@ -569,15 +569,15 @@ Void waitForHealthyApplication(String bezeichner, String application) {
...
@@ -569,15 +569,15 @@ Void waitForHealthyApplication(String bezeichner, String application) {
}
}
Boolean
isApplicationPresent
(
String
bezeichner
,
String
application
)
{
Boolean
isApplicationPresent
(
String
bezeichner
,
String
application
)
{
return
sh
(
script:
"kubectl get applications -n argocd | grep 'by-${bezeichner}-
dev
-${application}'"
,
returnStatus:
true
)
==
env
.
SH_SUCCESS_STATUS_CODE
as
Integer
return
sh
(
script:
"kubectl get applications -n argocd | grep 'by-${bezeichner}-
load
-${application}'"
,
returnStatus:
true
)
==
env
.
SH_SUCCESS_STATUS_CODE
as
Integer
}
}
Boolean
isApplicationHealthy
(
String
bezeichner
,
String
application
)
{
Boolean
isApplicationHealthy
(
String
bezeichner
,
String
application
)
{
return
sh
(
script:
"kubectl get application/by-${bezeichner}-
dev
-${application} -n argocd -o=jsonpath='{.status.health.status}' | grep Healthy"
,
returnStatus:
true
)
==
env
.
SH_SUCCESS_STATUS_CODE
as
Integer
return
sh
(
script:
"kubectl get application/by-${bezeichner}-
load
-${application} -n argocd -o=jsonpath='{.status.health.status}' | grep Healthy"
,
returnStatus:
true
)
==
env
.
SH_SUCCESS_STATUS_CODE
as
Integer
}
}
Void
waitForHealthyStatus
(
String
bezeichner
,
String
application
)
{
Void
waitForHealthyStatus
(
String
bezeichner
,
String
application
)
{
sh
"kubectl wait --for=jsonpath='{.status.health.status}'=Healthy applications/by-${bezeichner}-
dev
-${application} -n argocd --timeout=900s"
sh
"kubectl wait --for=jsonpath='{.status.health.status}'=Healthy applications/by-${bezeichner}-
load
-${application} -n argocd --timeout=900s"
}
}
Void
publishE2ETestResult
(
String
reportFolder
,
String
reportName
)
{
Void
publishE2ETestResult
(
String
reportFolder
,
String
reportName
)
{
...
@@ -789,7 +789,7 @@ Boolean isElasticSearchForwarded() {
...
@@ -789,7 +789,7 @@ Boolean isElasticSearchForwarded() {
}
}
String
generateNamespace
(
String
bezeichner
)
{
String
generateNamespace
(
String
bezeichner
)
{
return
"${env.BUNDESLAND}-${bezeichner}-
dev
"
return
"${env.BUNDESLAND}-${bezeichner}-
load
"
}
}
String
decodeString
(
String
encoded
)
{
String
decodeString
(
String
encoded
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment