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:
parent
7b11dcad59
commit
031f24a945
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue