From 6aee2bbcba665ceef646ec0141bbdbbe1f6975ae Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Tue, 9 Jan 2024 10:57:47 +1000 Subject: [PATCH] Fix race condition with integration network --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 3f4ae53ad..4fa196544 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -100,8 +100,13 @@ pipeline { } stage('Cypress') { steps { + // Creating will also create the network prior to + // using it in parallel stages below and mitigating + // a race condition. sh 'docker-compose build cypress-sqlite' sh 'docker-compose build cypress-mysql' + sh 'docker-compose create cypress-sqlite' + sh 'docker-compose create cypress-mysql' } } }