You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the quickstarter tests the verification of the Jenkins run attachments fails. This issue has to do with a failed calculation of the build url (see below for more details).
Steps to reproduce the behavior:
Go to a local checkout of ods-core.
Switch to subfolder ./tests
Run make test-quickstarter QS=fe-angular
QS provisioning and first build was successful, the verification of the build artifiacts of this first build might fail.
Expected behavior:
The verification script detects existance of an artifact file called /artifact/artifacts/SCRR-UNITT-fe-angular-test.docx.
Affected version:
OpenShift: 4.8
OpenDevStack: 4.x
Log Output (ensure to remove any confidential information like tokens, project names, etc.
...
Pipeline: run-unitt-fe-angular-test-unitt, build name from response: run-unitt-fe-angular-test-unitt-master-9
Verifying Jenkins run attachments of run-unitt-fe-angular-test-unitt-master-9 ...
Getting artifact: SCRR-unitt-fe-angular-test.docx from project: unitt-cd for build run-unitt-fe-angular-test-unitt-master-9
TestQuickstarter/fe-angular: quickstarter_test.go:324: Could not execute tests/scripts/get-artifact-from-jenkins-run.sh
- err:exit status 3
out:
grabbing artifact from /artifact/artifacts/SCRR-unitt-fe-angular-test.docx - and storing in /tmp
stderr:curl: (3) URL using bad/illegal format or missing URL
--- FAIL: TestQuickstarter (0.00s)
--- FAIL: TestQuickstarter/fe-angular (104.72s)
FAIL
FAIL github.com/opendevstack/ods-core/tests/quickstarter 105.173s
FAIL
make: *** [test-quickstarter] Error 1
Additional context:
The calculation of the build url works via an oc command from this line:
Decription
When running the quickstarter tests the verification of the Jenkins run attachments fails. This issue has to do with a failed calculation of the build url (see below for more details).
Steps to reproduce the behavior:
ods-core
../tests
make test-quickstarter QS=fe-angular
Expected behavior:
The verification script detects existance of an artifact file called
/artifact/artifacts/SCRR-UNITT-fe-angular-test.docx
.Affected version:
Log Output (ensure to remove any confidential information like tokens, project names, etc.
Additional context:
The calculation of the build url works via an oc command from this line:
ods-core/tests/scripts/get-artifact-from-jenkins-run.sh
Line 7 in fda5048
An example call of this line looks like this:
When calling this exmaple command directly the response looks like this:
I'd rather expect an output with just the URL and without the
%
sign at the end.The text was updated successfully, but these errors were encountered: