Generate SHA256 hashes.
This commit is contained in:
parent
9ccb9aeb5c
commit
d92f305402
2 changed files with 11 additions and 0 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
|
@ -13,5 +13,11 @@ pipeline {
|
|||
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";
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue