Commit aa9246a6 authored by David Diederich's avatar David Diederich
Browse files

Using variable indirection to avoid GitLab copying the config file value...

Using variable indirection to avoid GitLab copying the config file value instead of simply its name..
parent e8001f12
Pipeline #3890 failed with stages
in 8 seconds
......@@ -45,8 +45,9 @@ with open('test-execution.gitlab-ci.yml', 'w') as pipelineConfig:
' name: postman/newman_alpine33',
' entrypoint: [""]',
' script:',
' - TEST_COLLECTION_CONFIG=$(eval echo \$$TEST_COLLECTION_CONFIG_VARNAME)',
' - |',
' test -f $TEST_COLLECTION_CONFIG || (',
' test -f "$TEST_COLLECTION_CONFIG" || (',
' echo TEST_COLLECTION_CONFIG does not appear to be a file.',
' echo This probably means that you are running on a non-protected branch and did not',
' echo provide the deployment secrets manually. Or it could be a misconfigured variable.',
......@@ -84,7 +85,7 @@ with open('test-execution.gitlab-ci.yml', 'w') as pipelineConfig:
' needs: []',
' variables:',
' ENVIRONMENT: "' + environ['path'] + '"',
' TEST_COLLECTION_CONFIG: $' + platform.upper() + '_TEST_COLLECTION_CONFIG',
' TEST_COLLECTION_CONFIG_VARNAME: ' + platform.upper() + '_TEST_COLLECTION_CONFIG',
' COLLECTION_JSON: "' + collect['path'] + '"',
' HTML_REPORT_NAME: "' + htmlReportName + '"',
' JUNIT_REPORT_NAME: "' + junitReportName + '"'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment