You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I tried to download the artifacts , "jenkinsapi.custom_exceptions.ArtifactBroken: Artifact **** seems to be broken'' error coming.
I have used below code
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
The text was updated successfully, but these errors were encountered: