Skip to content

Fingerprint validation fails when artifacts have different filenames but same contents/hash #709

@gjb1002

Description

@gjb1002
ISSUE TYPE
  • Bug Report
Jenkinsapi 0.3.9
Jenkins 2.150.2
SUMMARY

If I do "Replay" from a pipeline build it confuses the fingerprint handling code, frequently leading to errors when the fingerprints are perfectly correct. This seems to be because the new artifact has the same content and hence md5sum but a different file name (our artifact has a timestamp in its name), leading to the "original" structure having the wrong data.

EXPECTED RESULTS

Fingerprints should match correctly.

ACTUAL RESULTS

jenkinsapi.custom_exceptions.ArtifactBroken: Artifact c95cdb45923926b28833833b770770e1 seems to be broken, check <jenkins url>

In log

Filename from jenkins (<artifact name from original build>) did not match provided (<artifact name from replayed build>)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions