Skip to content

Commit

Permalink
Remove bat from wreiteMetadata
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart X Addison <[email protected]>
  • Loading branch information
sxa committed Sep 9, 2024
1 parent 265e8ae commit f9bbf20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipelines/build/common/openjdk_build_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1346,11 +1346,11 @@ class Build {
} else if (file.contains('-sbom')) {
type = 'sbom'
}
context.println "(writeMetaData) Potentially battable assuming sha256sum on windows 1340 windbld#388"
context.println "(writeMetaData) Potentially battable assuming sha256sum on windows 1340 windbld#388 - No - failes #479"

String hash
if ( buildConfig.TARGET_OS == 'windows' && buildConfig.DOCKER_IMAGE ) {
hash = context.bat(script: "sha256sum ${file} | cut -f1 -d' '") // .replaceAll('\n', '')
hash = context.sh(script: "sha256sum ${file} | cut -f1 -d' '") // .replaceAll('\n', '')
} else {
hash = context.sh(script: """\
if [ -x "\$(command -v shasum)" ]; then
Expand Down

0 comments on commit f9bbf20

Please sign in to comment.