Skip to content

Commit

Permalink
ci: include testenv_post stage
Browse files Browse the repository at this point in the history
  • Loading branch information
khys95 committed Aug 13, 2024
1 parent fbdf267 commit f7bc581
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
50 changes: 25 additions & 25 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -382,31 +382,31 @@ Prepare k8s environment:
#
# collect all logs
#
#Collect container logs:
# stage: testenv_post
# extends: .kubernetes_image
# when: always
# allow_failure: true
# script:
# - kubectl -n $K8S_NAMESPACE get pods | grep Running | awk '{print $1}' | xargs -n1 kubectl -n $K8S_NAMESPACE logs | tee $K8S_NAMESPACE.log
# - kubectl -n $K8S_NAMESPACE run -i --rm --restart=Never -q --image=edenhill/kcat:1.7.1 kcat -- kcat -C -t billing -b billing-kafka:9092 -p 0 -e -q | tee $K8S_NAMESPACE-billing.json
# artifacts:
# name: "logs-$CI_PIPELINE_ID"
# paths:
# - "$K8S_NAMESPACE.log"
# - "$K8S_NAMESPACE-billing.json"
#
##
## dispose kubernetes resources
##
#Clean k8s environment:
# stage: testenv_post
# extends: .kubernetes_image
# needs:
# - Collect container logs
# when: always
# script:
# - kubectl delete namespace ${K8S_NAMESPACE} --grace-period=1 --ignore-not-found=true
Collect container logs:
stage: testenv_post
extends: .kubernetes_image
when: always
allow_failure: true
script:
- kubectl -n $K8S_NAMESPACE get pods | grep Running | awk '{print $1}' | xargs -n1 kubectl -n $K8S_NAMESPACE logs | tee $K8S_NAMESPACE.log
- kubectl -n $K8S_NAMESPACE run -i --rm --restart=Never -q --image=edenhill/kcat:1.7.1 kcat -- kcat -C -t billing -b billing-kafka:9092 -p 0 -e -q | tee $K8S_NAMESPACE-billing.json
artifacts:
name: "logs-$CI_PIPELINE_ID"
paths:
- "$K8S_NAMESPACE.log"
- "$K8S_NAMESPACE-billing.json"

#
# dispose kubernetes resources
#
Clean k8s environment:
stage: testenv_post
extends: .kubernetes_image
needs:
- Collect container logs
when: always
script:
- kubectl delete namespace ${K8S_NAMESPACE} --grace-period=1 --ignore-not-found=true

#
# infrastructure required to run dCache
Expand Down
4 changes: 2 additions & 2 deletions http-client.private.env.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"qos-policy": "/qos-policy",
"namespace": "/namespace",
"labels": "/labels",
"sourcePool" : "pool_write",
"sourcePool" : "\"pool_write\"",
"target": "hsm",
"targetPools": "pool_res1",
"targetPools": "\"pool_res1\"",
"osm_targetPools": "\"osm\"",
"wrong_src_pool_name" : "wrong_src_pool_name",
"wrong_target_pool_name" : "wrong_target_pool_name",
Expand Down

0 comments on commit f7bc581

Please sign in to comment.