Skip to content

Commit

Permalink
Enable SBOM strace for all Linux platforms (#1065)
Browse files Browse the repository at this point in the history
* Enable SBOM strace for all Linux platforms

Signed-off-by: Andrew Leonard <[email protected]>

* Enable SBOM strace for all Linux platforms

Signed-off-by: Andrew Leonard <[email protected]>

* Enable SBOM strace for all Linux platforms

Signed-off-by: Andrew Leonard <[email protected]>

* Enable SBOM strace for all Linux platforms

Signed-off-by: Andrew Leonard <[email protected]>

* Enable SBOM strace for all Linux platforms

Signed-off-by: Andrew Leonard <[email protected]>

---------

Signed-off-by: Andrew Leonard <[email protected]>
  • Loading branch information
andrew-m-leonard authored Jul 5, 2024
1 parent b575eaa commit 259c9a6
Show file tree
Hide file tree
Showing 8 changed files with 162 additions and 66 deletions.
2 changes: 2 additions & 0 deletions pipelines/build/common/openjdk_build_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1862,6 +1862,8 @@ class Build {
context.sh(script: 'rm -rf ' + context.WORKSPACE + '/workspace/target')
context.println 'Cleaning workspace build output files: ' + context.WORKSPACE + '/workspace/build/devkit'
context.sh(script: 'rm -rf ' + context.WORKSPACE + '/workspace/build/devkit')
context.println 'Cleaning workspace build output files: ' + context.WORKSPACE + '/workspace/build/straceOutput'
context.sh(script: 'rm -rf ' + context.WORKSPACE + '/workspace/build/straceOutput')
}
} else {
context.println 'Warning: Unable to clean workspace as context.WORKSPACE is null/empty'
Expand Down
63 changes: 45 additions & 18 deletions pipelines/jobs/configurations/jdk11u_pipeline_config.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Config11 {
additionalNodeLabels: 'xcode15.0.1',
configureArgs : [
'openj9' : '--enable-dtrace=auto --with-cmake',
'temurin' : '--enable-dtrace=auto'
'temurin' : '--enable-dtrace=auto --disable-ccache'
],
buildArgs : [
'temurin' : '--create-sbom'
Expand All @@ -27,15 +27,15 @@ class Config11 {
],
configureArgs : [
'openj9' : '--enable-dtrace=auto',
'temurin' : '--enable-dtrace=auto',
'temurin' : '--enable-dtrace=auto --disable-ccache',
'corretto' : '--enable-dtrace=auto',
'SapMachine' : '--enable-dtrace=auto',
'dragonwell' : '--enable-dtrace=auto --enable-unlimited-crypto --with-jvm-variants=server --with-zlib=system --with-jvm-features=zgc',
'fast_startup': '--enable-dtrace=auto',
'bisheng' : '--enable-dtrace=auto --with-extra-cflags=-fstack-protector-strong --with-extra-cxxflags=-fstack-protector-strong --with-jvm-variants=server --disable-warnings-as-errors'
],
buildArgs : [
'temurin' : '--create-source-archive --create-sbom'
'temurin' : '--create-source-archive --create-sbom --enable-sbom-strace'
]
],

Expand All @@ -44,9 +44,12 @@ class Config11 {
arch : 'x64',
dockerImage : 'adoptopenjdk/alpine3_build_image',
test : 'default',
configureArgs : '--enable-headless-only=yes',
configureArgs : [
'openj9' : '--enable-headless-only=yes',
'temurin' : '--enable-headless-only=yes --disable-ccache'
],
buildArgs : [
'temurin' : '--create-sbom'
'temurin' : '--create-sbom --enable-sbom-strace'
]
],

Expand All @@ -55,9 +58,12 @@ class Config11 {
arch : 'aarch64',
dockerImage : 'adoptopenjdk/alpine3_build_image',
test : 'default',
configureArgs : '--enable-headless-only=yes',
configureArgs : [
'openj9' : '--enable-headless-only=yes',
'temurin' : '--enable-headless-only=yes --disable-ccache --with-jobs=4'
],
buildArgs : [
'temurin' : '--create-sbom'
'temurin' : '--create-sbom --enable-sbom-strace'
]
],

Expand All @@ -69,8 +75,11 @@ class Config11 {
openj9: 'win2012&&vs2017',
dragonwell: 'win2012'
],
configureArgs : [
'temurin' : '--disable-ccache'
],
buildArgs : [
temurin : '--jvm-variant client,server --create-sbom'
'temurin' : '--jvm-variant client,server --create-sbom'
],
test : 'default'
],
Expand All @@ -79,8 +88,11 @@ class Config11 {
os : 'windows',
arch : 'x86-32',
additionalNodeLabels: 'win2022&&vs2019',
configureArgs : [
'temurin' : '--disable-ccache'
],
buildArgs : [
temurin : '--jvm-variant client,server --create-sbom'
'temurin' : '--jvm-variant client,server --create-sbom'
],
test : 'default'
],
Expand All @@ -92,6 +104,9 @@ class Config11 {
test : 'default',
additionalTestLabels: 'sw.os.aix.7_2',
cleanWorkspaceAfterBuild: true,
configureArgs : [
'temurin' : '--disable-ccache'
],
buildArgs : [
'temurin' : '--create-sbom'
]
Expand All @@ -102,17 +117,23 @@ class Config11 {
arch : 's390x',
dockerImage : 'rhel7_build_image',
test : 'default',
configureArgs : '--enable-dtrace=auto',
configureArgs : [
'openj9' : '--enable-dtrace=auto',
'temurin' : '--enable-dtrace=auto --disable-ccache'
],
buildArgs : [
'temurin' : '--create-sbom'
'temurin' : '--create-sbom --enable-sbom-strace'
]
],

sparcv9Solaris : [
os : 'solaris',
arch : 'sparcv9',
test : false,
configureArgs : '--enable-dtrace=auto',
configureArgs : [
'openj9' : '--enable-dtrace=auto',
'temurin' : '--enable-dtrace=auto --disable-ccache'
],
buildArgs : [
'temurin' : '--create-sbom'
]
Expand All @@ -124,11 +145,11 @@ class Config11 {
dockerImage : 'adoptopenjdk/centos7_build_image',
test : 'default',
configureArgs : [
'temurin' : '--enable-dtrace=auto',
'temurin' : '--enable-dtrace=auto --disable-ccache',
'openj9' : '--enable-dtrace=auto'
],
buildArgs : [
'temurin' : '--create-sbom'
'temurin' : '--create-sbom --enable-sbom-strace'
]

],
Expand All @@ -151,9 +172,12 @@ class Config11 {
dockerImage : 'adoptopenjdk/ubuntu1604_build_image',
dockerArgs : '--platform linux/arm/v7',
test : 'default',
configureArgs : '--enable-dtrace=auto',
configureArgs : [
'openj9' : '--enable-dtrace=auto',
'temurin' : '--enable-dtrace=auto --disable-ccache --with-jobs=4'
],
buildArgs : [
'temurin' : '--create-sbom'
'temurin' : '--create-sbom --enable-sbom-strace'
]
],

Expand All @@ -169,14 +193,14 @@ class Config11 {
dragonwell: 'armv8.2'
],
configureArgs : [
'temurin' : '--enable-dtrace=auto',
'temurin' : '--enable-dtrace=auto --disable-ccache --with-jobs=4',
'openj9' : '--enable-dtrace=auto',
'corretto' : '--enable-dtrace=auto',
'dragonwell': "--enable-dtrace=auto --with-extra-cflags=\"-march=armv8.2-a+crypto\" --with-extra-cxxflags=\"-march=armv8.2-a+crypto\"",
'bisheng' : '--enable-dtrace=auto --with-extra-cflags=-fstack-protector-strong --with-extra-cxxflags=-fstack-protector-strong --with-jvm-variants=server'
],
buildArgs : [
'temurin' : '--create-sbom'
'temurin' : '--create-sbom --enable-sbom-strace'
]
],

Expand Down Expand Up @@ -225,6 +249,9 @@ class Config11 {
crossCompile : 'x64',
additionalNodeLabels: 'win2022&&vs2019',
test : 'default',
configureArgs : [
'temurin' : '--disable-ccache'
],
buildArgs : [
'temurin' : '--jvm-variant client,server --create-sbom --cross-compile'
]
Expand Down
29 changes: 19 additions & 10 deletions pipelines/jobs/configurations/jdk17u_pipeline_config.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Config17 {
'temurin' : '--enable-dtrace'
],
buildArgs : [
'temurin' : '--create-source-archive --create-jre-image --create-sbom'
'temurin' : '--create-source-archive --create-jre-image --create-sbom --enable-sbom-strace'
]
],

Expand All @@ -53,7 +53,7 @@ class Config17 {
test : 'default',
configureArgs : '--enable-headless-only=yes',
buildArgs : [
'temurin' : '--create-jre-image --create-sbom'
'temurin' : '--create-jre-image --create-sbom --enable-sbom-strace'
]
],

Expand All @@ -62,9 +62,12 @@ class Config17 {
arch : 'aarch64',
dockerImage : 'adoptopenjdk/alpine3_build_image',
test : 'default',
configureArgs : '--enable-headless-only=yes',
configureArgs : [
'openj9' : '--enable-headless-only=yes',
'temurin' : '--enable-headless-only=yes --with-jobs=4'
],
buildArgs : [
'temurin' : '--create-jre-image --create-sbom'
'temurin' : '--create-jre-image --create-sbom --enable-sbom-strace'
]
],

Expand Down Expand Up @@ -115,7 +118,7 @@ class Config17 {
],
configureArgs : '--enable-dtrace',
buildArgs : [
'temurin' : '--create-jre-image --create-sbom'
'temurin' : '--create-jre-image --create-sbom --enable-sbom-strace'
]
],

Expand All @@ -128,7 +131,7 @@ class Config17 {
'temurin' : true
],
buildArgs : [
'temurin' : '--create-jre-image --create-sbom'
'temurin' : '--create-jre-image --create-sbom --enable-sbom-strace'
]
],

Expand All @@ -137,12 +140,15 @@ class Config17 {
arch : 'aarch64',
dockerImage : 'adoptopenjdk/centos7_build_image',
test : 'default',
configureArgs : '--enable-dtrace',
configureArgs : [
'openj9' : '--enable-dtrace',
'temurin' : '--enable-dtrace --with-jobs=4'
],
reproducibleCompare : [
'temurin' : true
],
buildArgs : [
'temurin' : '--create-jre-image --create-sbom'
'temurin' : '--create-jre-image --create-sbom --enable-sbom-strace'
]

],
Expand All @@ -168,9 +174,12 @@ class Config17 {
dockerImage : 'adoptopenjdk/ubuntu1604_build_image',
dockerArgs : '--platform linux/arm/v7',
test : 'default',
configureArgs : '--enable-dtrace',
configureArgs : [
'openj9' : '--enable-dtrace',
'temurin' : '--enable-dtrace --with-jobs=4'
],
buildArgs : [
'temurin' : '--create-jre-image --create-sbom'
'temurin' : '--create-jre-image --create-sbom --enable-sbom-strace'
]
],

Expand Down
13 changes: 8 additions & 5 deletions pipelines/jobs/configurations/jdk21u_pipeline_config.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Config21 {
test : 'default',
configureArgs : '--enable-headless-only=yes',
buildArgs : [
'temurin' : '--create-jre-image --create-sbom'
'temurin' : '--create-jre-image --create-sbom --enable-sbom-strace'
]
],

Expand All @@ -60,9 +60,12 @@ class Config21 {
arch : 'aarch64',
dockerImage : 'adoptopenjdk/alpine3_build_image',
test : 'default',
configureArgs : '--enable-headless-only=yes',
configureArgs : [
'openj9' : '--enable-headless-only=yes',
'temurin' : '--enable-headless-only=yes --with-jobs=4'
],
buildArgs : [
'temurin' : '--create-jre-image --create-sbom'
'temurin' : '--create-jre-image --create-sbom --enable-sbom-strace'
]
],

Expand Down Expand Up @@ -108,7 +111,7 @@ class Config21 {
'temurin' : true
],
buildArgs : [
'temurin' : '--create-jre-image --create-sbom --use-adoptium-devkit gcc-11.3.0-Centos7.9.2009-b03'
'temurin' : '--create-jre-image --create-sbom --enable-sbom-strace --use-adoptium-devkit gcc-11.3.0-Centos7.9.2009-b03'
]
],

Expand Down Expand Up @@ -138,7 +141,7 @@ class Config21 {
],
configureArgs : [
'openj9' : '--enable-dtrace',
'temurin' : '--enable-dtrace --with-jobs=40'
'temurin' : '--enable-dtrace --with-jobs=4'
],
buildArgs : [
'temurin' : '--create-jre-image --create-sbom --enable-sbom-strace --use-adoptium-devkit gcc-11.3.0-Centos7.6.1810-b03'
Expand Down
22 changes: 14 additions & 8 deletions pipelines/jobs/configurations/jdk22u_pipeline_config.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Config22 {
'temurin' : '--enable-dtrace'
],
buildArgs : [
'temurin' : '--create-source-archive --create-jre-image --create-sbom --use-adoptium-devkit gcc-11.3.0-Centos7.9.2009-b03'
'temurin' : '--create-source-archive --create-jre-image --create-sbom --enable-sbom-strace --use-adoptium-devkit gcc-11.3.0-Centos7.9.2009-b03'
]
],

Expand All @@ -46,7 +46,7 @@ class Config22 {
test : 'default',
configureArgs : '--enable-headless-only=yes',
buildArgs : [
'temurin' : '--create-jre-image --create-sbom'
'temurin' : '--create-jre-image --create-sbom --enable-sbom-strace'
]
],

Expand All @@ -55,9 +55,12 @@ class Config22 {
arch : 'aarch64',
dockerImage : 'adoptopenjdk/alpine3_build_image',
test : 'default',
configureArgs : '--enable-headless-only=yes',
configureArgs : [
'openj9' : '--enable-headless-only=yes',
'temurin' : '--enable-headless-only=yes --with-jobs=4'
],
buildArgs : [
'temurin' : '--create-jre-image --create-sbom'
'temurin' : '--create-jre-image --create-sbom --enable-sbom-strace'
]
],

Expand Down Expand Up @@ -97,7 +100,7 @@ class Config22 {
dockerImage : 'rhel7_build_image',
test : 'default',
buildArgs : [
'temurin' : '--create-jre-image --create-sbom --use-adoptium-devkit gcc-11.3.0-Centos7.9.2009-b03'
'temurin' : '--create-jre-image --create-sbom --enable-sbom-strace --use-adoptium-devkit gcc-11.3.0-Centos7.9.2009-b03'
]
],

Expand All @@ -110,7 +113,7 @@ class Config22 {
'openj9' : '--enable-dtrace'
],
buildArgs : [
'temurin' : '--create-jre-image --create-sbom --use-adoptium-devkit gcc-11.3.0-Centos7.9.2009-b03'
'temurin' : '--create-jre-image --create-sbom --enable-sbom-strace --use-adoptium-devkit gcc-11.3.0-Centos7.9.2009-b03'
]
],

Expand All @@ -119,9 +122,12 @@ class Config22 {
arch : 'aarch64',
dockerImage : 'adoptopenjdk/centos7_build_image',
test : 'default',
configureArgs : '--enable-dtrace',
configureArgs : [
'openj9' : '--enable-dtrace',
'temurin' : '--enable-dtrace --with-jobs=4'
],
buildArgs : [
'temurin' : '--create-jre-image --create-sbom --use-adoptium-devkit gcc-11.3.0-Centos7.6.1810-b03'
'temurin' : '--create-jre-image --create-sbom --enable-sbom-strace --use-adoptium-devkit gcc-11.3.0-Centos7.6.1810-b03'
]
],

Expand Down
Loading

0 comments on commit 259c9a6

Please sign in to comment.