Last active
October 19, 2018 15:14
-
-
Save dac73/6edf1c4b60a576fbdee99a013081ae61 to your computer and use it in GitHub Desktop.
python shenanigans
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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