Skip to content
Snippets Groups Projects
Commit 6ee2ad69 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

make url paths relative to channel

parent 74e941e4
Branches
No related tags found
1 merge request!63Conda package based CI
...@@ -18,6 +18,7 @@ def main(channel_url, name, version, py_ver, get_urls=False): ...@@ -18,6 +18,7 @@ def main(channel_url, name, version, py_ver, get_urls=False):
if match and match.group() == 'py{}'.format(py_ver): if match and match.group() == 'py{}'.format(py_ver):
build_number = max(build_number, dist.build_number + 1) build_number = max(build_number, dist.build_number + 1)
urls.append(index[dist].url) urls.append(index[dist].url)
urls = [url.replace(channel_url, '') for url in urls]
return build_number, urls return build_number, urls
......
...@@ -24,7 +24,7 @@ done ...@@ -24,7 +24,7 @@ done
if [ -z "${CI_COMMIT_TAG}" ]; then #beta if [ -z "${CI_COMMIT_TAG}" ]; then #beta
for urls in "_ci/*/*/build_number.txt"; do for urls in "_ci/*/*/build_number.txt"; do
for url in `tail -n +2 $urls`; do for url in `tail -n +2 $urls`; do
dav_delete ${url/$DOCSERVER/} dav_delete ${url}
done done
done done
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment