Skip to content
Snippets Groups Projects
Commit 70246c7d authored by Dylan Aïssi's avatar Dylan Aïssi Committed by Walter Lozano
Browse files

Split the curl command to make it easier to read

parent 9a13f2aa
No related branches found
No related tags found
1 merge request!596Backport v2024 <- 2025dev1: Backport improvements
......@@ -26,13 +26,16 @@ job_name: Run {{SOURCE_PKG_NAME}}-in-{{image_name}}
- #systemctl restart systemd-timesyncd
{%- endif %}
- apt update -q && apt install curl unzip -q -y
- 'curl -H "JOB-TOKEN: {% raw %}{{job.CI_JOB_TOKEN}}{% endraw %}" -O {{BUILD_RESULTS_URL}}/artifacts-list.txt'
- |
curl -H "JOB-TOKEN: {% raw %}{{job.CI_JOB_TOKEN}}{% endraw %}" \
-O {{BUILD_RESULTS_URL}}/artifacts-list.txt
- BIN_PKG_LIST="{{BIN_PKG_LIST}}"
- |
for DEB in ${BIN_PKG_LIST}
do
DEB_PATH=$(grep "${DEB}_.*_{{arch}}\.deb$" artifacts-list.txt)
curl -H "JOB-TOKEN: {% raw %}{{job.CI_JOB_TOKEN}}{% endraw %}" -O {{BUILD_RESULTS_URL}}/${DEB_PATH}
curl -H "JOB-TOKEN: {% raw %}{{job.CI_JOB_TOKEN}}{% endraw %}" \
-O {{BUILD_RESULTS_URL}}/${DEB_PATH}
done
- sudo apt install ./*.deb -q -y
from: inline
......@@ -44,9 +47,13 @@ job_name: Run {{SOURCE_PKG_NAME}}-in-{{image_name}}
name: "Run {{SOURCE_PKG_NAME}} test"
run:
steps:
- 'curl -H "JOB-TOKEN: {% raw %}{{job.CI_JOB_TOKEN}}{% endraw %}" -O {{BUILD_RESULTS_URL}}/artifacts-list.txt'
- |
curl -H "JOB-TOKEN: {% raw %}{{job.CI_JOB_TOKEN}}{% endraw %}" \
-O {{BUILD_RESULTS_URL}}/artifacts-list.txt
- DEBTAR_PATH=$(grep -m 1 "{{ SOURCE_PKG_NAME }}.*\.debian\.tar\.xz$" artifacts-list.txt)
- 'curl -H "JOB-TOKEN: {% raw %}{{job.CI_JOB_TOKEN}}{% endraw %}" --output {{SOURCE_PKG_NAME}}.debian.tar.xz {{BUILD_RESULTS_URL}}/${DEBTAR_PATH}'
- |
curl -H "JOB-TOKEN: {% raw %}{{job.CI_JOB_TOKEN}}{% endraw %}" \
--output {{SOURCE_PKG_NAME}}.debian.tar.xz {{BUILD_RESULTS_URL}}/${DEBTAR_PATH}
- tar -xf {{SOURCE_PKG_NAME}}.debian.tar.xz
- mkdir -p debian/tests/
- cd debian/tests/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment