Skip to content

Instantly share code, notes, and snippets.

@dac73
Last active October 19, 2018 15:14
Show Gist options
  • Select an option

  • Save dac73/6edf1c4b60a576fbdee99a013081ae61 to your computer and use it in GitHub Desktop.

Select an option

Save dac73/6edf1c4b60a576fbdee99a013081ae61 to your computer and use it in GitHub Desktop.
python shenanigans
# upload artifact to nexus3 via python
artifact_name=os.path.basename(zipped_log_file)
headers = {'Content-Type': 'application/binary'}
with open(zipped_log_file, 'rb') as artifact:
requests.put(nexus_url + '/' + artifact_name, headers=headers,
data=artifact, auth=(nexus_username, nexus_password))
# get pip for python36 on f29+
wget https://bootstrap.pypa.io/get-pip.py
python3.6 get-pip.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment