Reputation:
Basic idea: I want to get this zipped artifactory, go through with a loop open every text file and add a line and save it. After that I want to upload the new version of this folder, again as a zipped folder.
My first problem is I cant download this zipped folder from artifactory.
I have already tried this out: https://github.com/devopshq/artifactory
I changed the same code with my personal path, username and pw (changed it for this post because of security) but I get lots of errors:
UPDATE: no SSL errors anymore but I still have a problem with my code.
Upvotes: 0
Views: 903
Reputation: 20376
The error seems to be related to validation of your Artifactory SSL certificate.
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)
You should look at the various options which the Python interface library for JFrog Artifactory is offering for handling SSL certificate validations.
For example disable host cert verification
from artifactory import ArtifactoryPath
path = ArtifactoryPath(
"http://my-artifactory/artifactory/libs-snapshot-local/myapp/1.0", verify=False
)
Upvotes: 2