@@ -4,7 +4,7 @@ Jenkins job does reproducible build compare.
44import groovy.json.JsonOutput
55
66pipeline {
7- agent any
7+ agent { label ' dockerBuild&&linux&&x64 ' }
88 parameters {
99 string(name : ' COMPARED_JOB_NUMBER' , defaultValue : ' ' , description : ' Compared nightly build job name' )
1010 string(name : ' COMPARED_JOB_NAME' , defaultValue : ' ' , description : ' Compared nightly build job number' )
@@ -59,7 +59,7 @@ pipeline {
5959 jsonJobParams. BUILD_CONFIGURATION . SCM_REF = scmRef
6060 jsonJobParams. BUILD_CONFIGURATION . BUILD_REF = buildRef
6161 jsonJobParams. BUILD_CONFIGURATION . BUILD_ARGS + = " --build-reproducible-date ${ buildTimeStamp} "
62- jsonJobParams. BUILD_CONFIGURATION . ENABLE_REPRODUCIBLE_COMPARE = " false"
62+ jsonJobParams. BUILD_CONFIGURATION . ENABLE_REPRODUCIBLE_COMPARE = false
6363
6464 def buildParams = [
6565 text(name : ' BUILD_CONFIGURATION' , value : JsonOutput . prettyPrint(JsonOutput . toJson(jsonJobParams. BUILD_CONFIGURATION ))),
@@ -95,13 +95,13 @@ pipeline {
9595
9696 def originalJDKFile = findFiles(glob : " original/*.tar.gz" )
9797 def reproducedJDKFile = findFiles(glob : " reproduced/*.tar.gz" )
98- def untarOriginalJDK = sh returnStatus : true , script : " tar -xz ${ originalJDKFile[0].name } -C original"
98+ def untarOriginalJDK = sh returnStatus : true , script : " tar xzf ${ originalJDKFile[0].path } -C original"
9999 if (untarOriginalJDK != 0 ) {
100100 currentBuild. result = ' UNSTABLE'
101101 error " Untar ${ originalJDKFile[0].name} failed"
102102 return
103- }
104- def untarReproducedJDK = sh returnStatus : true , script : " tar -xz ${ reproducedJDKFile[0].name } -C reproduced"
103+ }
104+ def untarReproducedJDK = sh returnStatus : true , script : " tar xzf ${ reproducedJDKFile[0].path } -C reproduced"
105105 if (untarReproducedJDK != 0 ) {
106106 currentBuild. result = ' UNSTABLE'
107107 error " Untar ${ reproducedJDKFile[0].name} failed"
@@ -115,13 +115,13 @@ pipeline {
115115 checkout([$class : ' GitSCM' , branches : [[name : ' master' ]], doGenerateSubmoduleConfigurations : false , extensions : [[$class : ' RelativeTargetDirectory' , relativeTargetDir : " temurin-build" ]], submoduleCfg : [], userRemoteConfigs : [[url : " https://github.com/adoptium/temurin-build.git" ]]])
116116 script {
117117 try {
118- dir(' temurin-build/tools/reproduce_comparison ' ) {
118+ dir(' temurin-build/tooling ' ) {
119119 def rc = 0
120120 if (COMPARED_JOB_NAME . contains(' linux' )) {
121- rc = sh returnStatus : true , script : " ./tooling/linux_repo_compare .sh temurin . /original temurin . /reproduced"
121+ rc = sh returnStatus : true , script : " ./linux_repro_compare .sh temurin ${ WORKSPACE } /original temurin ${ WORKSPACE } /reproduced"
122122 } else if (COMPARED_JOB_NAME . contains(' mac' )) {
123123 // mac
124- // sh "./tooling/mac_repo_compare .sh temurin ./original temurin ./reproduced ${self_cert_file} ${self_cert_passwd}"
124+ // sh "./tooling/mac_repro_compare .sh temurin ./original temurin ./reproduced ${self_cert_file} ${self_cert_passwd}"
125125 echo ' todo mac build comparison'
126126 } else if (COMPARED_JOB_NAME . contains(' windows' )) {
127127 // windows
0 commit comments