4592-jenkins_tests #1075

Merged
joan merged 27 commits from 4592-jenkins_tests into dev 2022-10-05 12:40:29 +00:00
1 changed files with 4 additions and 3 deletions
Showing only changes of commit 8468eda05a - Show all commits

View File

@ -42,9 +42,13 @@ module.exports = class Docker {
let runChown = process.platform != 'linux';
let network = '';
if (ci) network = '--network="jenkins"';
log('Starting container...');
const container = await this.execP(`
docker run \
${network} \
--env RUN_CHOWN=${runChown} \
-d ${dockerArgs} salix-db
`);
@ -52,9 +56,6 @@ module.exports = class Docker {
try {
if (this.isRandom) {
if (ci)
await this.execP(`docker network connect jenkins ${this.id}`);
let inspect = await this.execP(`docker inspect -f "{{json .NetworkSettings}}" ${this.id}`);
let netSettings = JSON.parse(inspect.stdout);