Generate SHA256 hashes.
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -13,5 +13,11 @@ pipeline {
|
|||||||
archiveArtifacts artifacts: 'release/*.zip'
|
archiveArtifacts artifacts: 'release/*.zip'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Generate checksums') {
|
||||||
|
steps {
|
||||||
|
sh 'Tools/generate_hashes.ps1'
|
||||||
|
archiveArtifacts artifacts: 'release/*.zip.sha256'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
5
Tools/generate_hashes.ps1
Executable file
5
Tools/generate_hashes.ps1
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
|
||||||
|
Get-ChildItem release/*.zip | Get-FileHash -Algorithm S | ForEach-Object {
|
||||||
|
$_.Hash > "$($_.Path).sha256";
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user