Make it so output is preserved when running on Jenkins

master
Kuba Orlik 2 years ago
parent 32edff3ee4
commit 34036c5286

@ -1,6 +1,4 @@
#!/bin/bash
set -e
#!/bin/bash -xe
docker-compose down

@ -1,3 +1,14 @@
#!/usr/bin/env bash
#!/usr/bin/env -S bash -x
docker-compose run --user="$UID" --rm --service-ports test npm --loglevel warn "$@"
# the "--no-TTY" option is crucial - without it the output is not captured in Jenkins
docker-compose run \
--no-TTY \
--user="$UID" \
--rm \
--service-ports \
-e BASELINE_DATABASE="baseline" \
-e "BASELINE_PORT=1433" \
test \
npm --loglevel warn "$@"

Loading…
Cancel
Save