From d5a75bb708fa6908f9ab9b23ceed5b3264e7c600 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Wed, 31 May 2023 22:10:57 +1000 Subject: [PATCH] Move schema output to a running stack step --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7b0166f..f39f4bc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -114,6 +114,8 @@ pipeline { steps { sh 'rm -rf ./test/results/junit/*' sh './scripts/ci/fulltest-cypress' + // Adding this here as the schema needs to come from a running stack, but this will be used by docs later + sh 'docker-compose exec -T fullstack curl -s --output /temp-docs/api-schema.json "http://fullstack:81/api/schema"' } post { always { @@ -198,7 +200,6 @@ pipeline { } // API Docs: - sh 'docker-compose exec -T fullstack curl -s --output /temp-docs/api-schema.json "http://fullstack:81/api/schema"' sh 'mkdir -p "docs/.vuepress/dist/api"' sh 'mv docs/api-schema.json docs/.vuepress/dist/api/'