Skip to content

Commit

Permalink
Collect logs after a job
Browse files Browse the repository at this point in the history
As it's done in upstream with post-playbook, let's run logs
collection after actual job finishes.
Create a builder for logs collection and run it after toci-test
builder.

Change-Id: I60df894e33ca1a755bec6bbf21dd0e9027233d8c
  • Loading branch information
sshnaidm authored and javierpena committed Feb 28, 2018
1 parent 0e37fb3 commit 50a7ac3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions jobs/macros.yml
Expand Up @@ -17,6 +17,16 @@
sudo chown jenkins:jenkins $LOG_SSH_KEY
cp -p $LOG_SSH_KEY ~/.ssh/logserver
- builder:
name: collect-tripleo-logs
builders:
- shell: |
#!/bin/bash
if [[ -e $WORKSPACE/logs/collect_logs.sh ]]; then
bash $WORKSPACE/logs/collect_logs.sh
fi
- publisher:
name: rdo-rsync-logs
publishers:
Expand Down
4 changes: 4 additions & 0 deletions jobs/tripleo-upstream.yml
Expand Up @@ -240,6 +240,7 @@
type: 'periodic-singlenode-featureset023'
branch-override: "{branch-override}"
promote_name: "tripleo-ci-testing"
- collect-tripleo-logs
- build-containers-images:
release: "{release}"
publishers:
Expand Down Expand Up @@ -337,6 +338,7 @@
type: "{type}"
branch-override: "{branch-override}"
promote_name: "tripleo-ci-testing"
- collect-tripleo-logs
publishers:
- postbuildscript:
builders:
Expand Down Expand Up @@ -385,6 +387,7 @@
type: "{type}"
branch-override: "{branch-override}"
promote_name: "tripleo-ci-testing"
- collect-tripleo-logs
- images-upload-and-label:
release: "{release}"
publishers:
Expand Down Expand Up @@ -426,6 +429,7 @@
type: "{type}"
branch-override: "{branch-override}"
promote_name: "current-tripleo"
- collect-tripleo-logs
publishers:
- rdo-rsync-logs

Expand Down

0 comments on commit 50a7ac3

Please sign in to comment.