Update Jenkinsfile
Some checks failed
jenkins_organization/checksum_verification_and_signature_verification/pipeline/head There was a failure building this commit

This commit is contained in:
first_admin 2024-09-01 19:50:11 +00:00
parent c5b232b0b1
commit 84ab03a6cf

2
Jenkinsfile vendored
View File

@ -16,7 +16,7 @@ pipeline {
// Weryfikacja sumy kontrolnej dla każdego pakietu
for (dep in dependencies) {
sh "npm pack ${dep}@$(jq -r '.dependencies[\"'${dep}'\"]' package.json)"
sh "npm pack ${dep}@\$(jq -r '.dependencies[\"${dep}\"]' package.json)"
sh "sha256sum ${dep}-*.tgz > ${dep}.sha256"
// Weryfikacja sumy kontrolnej (przykład: zakładając, że masz zapisany poprawny checksum)
sh "echo 'expected-sha256-value ${dep}-*.tgz' | sha256sum -c -"