Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jenkinsapi.custom_exceptions.ArtifactBroken: Artifact **** seems to be broken #856

Open
SrinivPal opened this issue Mar 13, 2024 · 2 comments

Comments

@SrinivPal
Copy link

  • Bug Report
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

@SrinivPal
Copy link
Author

Can some one please help here

@rkmiec
Copy link

rkmiec commented May 31, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants