eval "$(jq -r '.artifactory[]|select(.isDefault == true)|
{"user":.user,"password":.password,"apiurl":.url|
gsub("artifactory";"xray")|gsub("/[^/]+/$";"")}|
to_entries|map("declare \(.key)=\(.value|tostring|@sh)")|.[]' \
~/.jfrog/jfrog-cli.conf)"
echo "user=$user"
echo "password=$password"
echo "apiurl=$apiurl"
https://jfrog.com/blog/fully-reproducible-builds-with-circleci-and-artifactory/