瀏覽代碼

Fix race condition with integration network

Jamie Curnow 1 年之前
父節點
當前提交
6aee2bbcba
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Jenkinsfile

+ 5 - 0
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'
 					}
 				}
 			}