Make it so output is preserved when running on Jenkins
parent
32edff3ee4
commit
34036c5286
@ -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…
Reference in New Issue