Fix dstat run in gates
With previous commit [1] a condition was introduced on when to run
dstat. Though, ZUUL_PROJECT env variable used is defined
only in post jobs, while dstat should be started in pre-jobs and then
collected with logs. So we adjust condition to start up dstat in gates
at the first place.
[1] 0369605a1c
Change-Id: I7fd4a846360847496b1db7b505b35b9eff57ebbe
This commit is contained in:
parent
80d839ba04
commit
cae3e206e0
@ -29,10 +29,10 @@ GATE_EXIT_LOG_COPY="${GATE_EXIT_LOG_COPY:-false}"
|
||||
GATE_EXIT_LOG_GZIP="${GATE_EXIT_LOG_GZIP:-true}"
|
||||
GATE_EXIT_RUN_ARA="${GATE_EXIT_RUN_ARA:-true}"
|
||||
|
||||
if [ -z ${ZUUL_PROJECT} ]; then
|
||||
GATE_EXIT_RUN_DSTAT="${GATE_EXIT_RUN_DSTAT:-false}"
|
||||
else
|
||||
if [ -v ZUUL_PROJECT ] || [ -v ZUUL_SRC_PATH ]; then
|
||||
GATE_EXIT_RUN_DSTAT="${GATE_EXIT_RUN_DSTAT:-true}"
|
||||
else
|
||||
GATE_EXIT_RUN_DSTAT="${GATE_EXIT_RUN_DSTAT:-false}"
|
||||
fi
|
||||
|
||||
# The default SSHD configuration has MaxSessions = 10. If a deployer changes
|
||||
|
Loading…
Reference in New Issue
Block a user