Open SrinivPal opened 8 months ago
Can some one please help here
I have a similar issue.
I have tested the API on one of the repositories and since it worked I have integrated jenkinsapi
in my script.
Later on turned out it doesn't work on different repository.
The difference I could see regarding the artifacts is that on See fingerprints, the Original owner is defined as this build for all files, while on the not working job I have outside Jenkins, even though it was created on a different branch.
filename and hash are correct in the {URL}/fingerprint/{md5}/python/api
, but the original
field instead of having reference to another build says "original": None
.
The branch where it was first generated is already removed in git, so the build job is also removed and this verification probably fails for this reason.
latest Jenkinsapi
Jenkins VERSION 2.426.3
SUMMARY
When I tried to download the artifacts , "jenkinsapi.custom_exceptions.ArtifactBroken: Artifact **** seems to be broken'' error coming. I have used below code
textfile = artifacts["JobOutput/sample.txt"] textfile.save_to_dir(textDir, strict_validation=True)
EXPECTED RESULTS
Artifactory file should download without any issue.
ACTUAL RESULTS
jenkinsapi.custom_exceptions.ArtifactBroken: Artifact **** seems to be broken