[Python] How do I upload a raw artifact with custom attributes to a Nexus repository using cURL

Discussão em 'Python' iniciado por Stack, Janeiro 15, 2025.

  1. Stack

    Stack Membro Participativo

    I am creating a python script to iterate through a tree and upload all the artifacts to a raw Nexus repository. I am not familiar with Nexus, but I would like to include individual file specific metadata when I upload it. I had hoped to do this using custom attributes (if supported).

    My code so far:

    curl_command = [
    'curl', '-u', f'{username}:{password}', '-T', file_path, full_url
    ]
    result = subprocess.run(curl_command, capture_output=True, text=True)

    Continue reading...

Compartilhe esta Página