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:55:30 +00:00
parent 3353197435
commit e5310ec861

7
Jenkinsfile vendored
View File

@ -2,12 +2,6 @@ pipeline {
agent any
stages {
stage('Checkout') {
steps {
git 'https://github.com/your-repo/your-project.git'
}
}
stage('Install Dependencies') {
steps {
script {
@ -35,7 +29,6 @@ pipeline {
def dependencies = sh(script: "jq -r '.dependencies | keys[]' package.json", returnStdout: true).split('\n')
for (dep in dependencies) {
// Poprawne użycie notacji \$
sh "wget https://registry.npmjs.org/${dep}/-/\$(jq -r '.dependencies[\"${dep}\"]' package.json)/${dep}.tgz.asc"
sh "gpg --verify ${dep}.tgz.asc ${dep}-*.tgz"
}