Add project config for docker-compose
Change-Id: Ib41c4a5f7c7ed500c6353add9111a6c1014f57d0
diff --git a/test-nodejs-pipeline.groovy b/test-nodejs-pipeline.groovy
index 36abbd7..a7b9e88 100644
--- a/test-nodejs-pipeline.groovy
+++ b/test-nodejs-pipeline.groovy
@@ -63,7 +63,7 @@
} else {
uniqId = defaultGitRef.tokenize('/').takeRight(2).join('') + timeStamp
}
- sh("docker-compose -f ${COMPOSE_PATH} -p ${uniqId} up -d")
+ sh("docker-compose --project-directory=${workspace} -f ${COMPOSE_PATH} -p ${uniqId} up -d")
containerName = "${uniqId}_devopsportal_1"
common.successMsg("Container with id ${containerName} started.")
}