Mon 17911 change curl delivery to nexus (#4291)

* enh(deb-delivery): attempt to fiabilize delivery on nexus

* enh(deb-delivery): more logical timeout options

* test delivery

* retrieve changes

---------

Co-authored-by: Kevin Duret <kduret@centreon.com>
This commit is contained in:
omercier 2023-03-21 23:15:34 +01:00 committed by GitHub
parent 7b11dcad59
commit 031f24a945
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,6 +55,6 @@ runs:
FOLDER_SUFFIX=""
fi
find -name "*.deb" -print0 | xargs -0 -t -I % -P 2 curl --fail -v -u "${{ inputs.nexus_username }}":"${{ inputs.nexus_password }}" -H "Content-Type: multipart/form-data" --data-binary "@%" https://apt.centreon.com/repository/$MAJOR$FOLDER_SUFFIX/
find -name "*.deb" -print0 | xargs -0 -t -I % -P 2 sh -c "curl --connect-timeout 10 --retry 2 --retry-max-time 30 --fail --silent --show-error -u '${{ inputs.nexus_username }}':'${{ inputs.nexus_password }}' -H 'Content-Type: multipart/form-data' --data-binary '@%' https://apt.centreon.com/repository/$MAJOR$FOLDER_SUFFIX/ >/dev/null || exit 255" || break
done
shell: bash