Skip to content

Commit

Permalink
Limit json file to SBOM specific and remove unnecessary code
Browse files Browse the repository at this point in the history
Signed-off-by: Sophia Guo <[email protected]>
  • Loading branch information
sophia-guo committed Jun 12, 2023
1 parent 3efb4de commit 10fdd38
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/reproduce_comparison/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pipeline {
target: 'original/'
selector: specific("${params.COMPARED_JOB_NUMBER}")
script {
def sbomFiles = findFiles(glob: "**/*.json")
def sbomFiles = findFiles(glob: "**/OpenJDK*-sbom*.json")
def sbomParams = readJSON file: "${sbomFiles[0].name}"

def sbomProperties = sbomParams.components[0].properties
Expand All @@ -44,8 +44,6 @@ pipeline {
def buildRef = reproducedParams["Temurin Build Ref"]
def buildTimeStamp = reproducedParams["Build Timestamp"]
buildRef = buildRef.substring(buildRef.lastIndexOf('/')+1)
def scmCommit = reproducedParams["OpenJDK Source Commit"]
scmCommit = scmCommit.substring(scmCommit.lastIndexOf('/')+1)

// Convert COMPARED_JOB_PARAMS to json formatt string
def jobParams = COMPARED_JOB_PARAMS.replaceAll("=", ':')
Expand Down

0 comments on commit 10fdd38

Please sign in to comment.