-
Notifications
You must be signed in to change notification settings - Fork 160
Force ChecksumDeploy #341
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
Comments
@yahavi Is this something you could comment on? |
Hello @staffanf, We have this functionality in the JFrog CLI, using I created #408 to add this functionality. Please let me know if that's what you're looking for. |
@staffanf, allProjects {
artifactoryPublish {
clientConfig.publisher.minChecksumDeploySizeKb = 0
}
} We'd appreciate your feedback for that! |
Checksum is the SHA-1 or something else? |
@paul-hammant |
OK, an artifact does not upload if both SHA1 and MD5 exist in Artifactory and are the same local and remote If the artifact exists in Artifactory, and the SHA1 is different, then the build step fails at that moment - right? |
Yes, exactly.
Yes, if the artifact already exists in the same deployment path and the deployer user does not possess |
Is there anyway to use this in the Jenkins Artifactory plugin? At minimum, supply the checksum not to override file if it is the same? |
F/OSS allows us to fork items and add features for ourselves. Might have to worry about trademarks as the forkers publish back to mavenland, and divergence after but there's not reason not to if upstream maintainer are not keen |
Hi, I would like an option to force the use of "X-Checksum-Deploy".
Currently this seems to be used if the files are larger than 10KB due to the CHECKSUM_DEPLOY_MIN_FILE_SIZE contant.
This is a fine default trade-off between bandwidth and latency I guess, but my use-case is that I want builds to be reproducible and retryable while still not being able to overwrite artifacts.
So If a jar is smaller than 10Kb, then checksum deploy will not be used and the a completely identical build will fail if published again.
I would like a developer build or a ci jobs to be re-runnable as long as the build artifacts are identical.
I'm using the Gradle Plugin btw.
Just changing the constant referenced above to something that is configurable would at least make this possible for by setting CHECKSUM_DEPLOY_MIN_FILE_SIZE to 0.
If there is a another way to solve my use-case or a temporary workaround, please advice.
The text was updated successfully, but these errors were encountered: