diff --git a/linux_new/Jenkinsfile b/linux_new/Jenkinsfile index aa85b8413..cc7c1f4ae 100644 --- a/linux_new/Jenkinsfile +++ b/linux_new/Jenkinsfile @@ -8,6 +8,7 @@ def JVM = 'hotspot' // Artifactory Global Variables def baseURL = "https://github.com/adoptium/" +def ArchiveFileName = "" // Github Artifact Repos def binaryRepo = "${params.VERSION.replace('jdk', 'temurin')}-binaries/releases/tag/${params.TAG}" @@ -693,7 +694,7 @@ stage('Generate Spec File') { // Archive & store the generated files, for future reference -def ArchiveFileName = "Package_Bld_Src_${distro}_${params.TAG}_${arch}_${env.BUILD_NUMBER}.tar.gz" +ArchiveFileName = "Package_Bld_Src_${distro}_${params.TAG}_${arch}_${env.BUILD_NUMBER}.tar.gz" echo "ArchiveFileName = ${ArchiveFileName}" sh "find ./linux_new -type f \\( -name '*.spec' -o -name 'control' -o -name 'changelog' -o -name 'rules' -o -name 'APKBUILD' \\) | tar -czf ./${ArchiveFileName} -T -" sh "pwd" @@ -905,5 +906,31 @@ stage('Publish Packages') { } // Stage Definition - End } +// Add Post Build Trigger To Run Publish_Linux_PkG_Src Job + post { + success { + echo 'Build succeeded. Triggering downstream job...' + echo "Release : ${params.TAG}" + echo "FileName : ${ArchiveFileName}" + echo "Dry Run : ${params.DRY_RUN}" + + // string(name: 'TAG', defaultValue: 'jdk-23+37', description: 'Release Tag') + // string(name: 'VERSION', defaultValue: 'jdk23', description: 'Release Version') + // string(name: 'ARTIFACTS_TO_COPY', defaultValue: '**/alpine-linux/aarch64/temurin/*.tar.gz,**/alpine-linux/aarch64/temurin/*.zip,**/alpine-linux/aarch64/temurin/*.sha256.txt,**/alpine-linux/aarch64/temurin/*.msi,**/alpine-linux/aarch64/temurin/*.pkg,**/alpine-linux/aarch64/temurin/*.json,**/alpine-linux/aarch64/temurin/*.sig', description: 'Artifacts String') + // booleanParam(name: 'RELEASE', defaultValue: false, description: 'Release Flag' ) + // booleanParam(name: 'DRY_RUN', defaultValue: false, description: 'Release Dry Run') + // booleanParam(name: 'ENABLEGPGSIGNING', defaultValue: true, description: 'Require GPG Signing') + // booleanParam(name: 'ENABLEDEBUG', defaultValue: false, description: 'Tick to enable --stacktrace for gradle build') + // booleanParam(name: 'REPACKAGE', defaultValue: false, description: 'Tick if this is a republish of an existing package, ie xx.xxx.2 , rather than the base release of a package (1)') + // string(name: 'PACKAGE_INCREMENT', defaultValue: '1', description: 'This is the incremental number used for re-releases of package versions - Should be set appropriately if RePackage is True') + // string(name: 'TEMURIN_VERSION_INCREMENT', defaultValue: '0', description: 'Final Element Of The Version Number - Used For Temurin Specific Patches - NEARLY ALWAYS ZERO') + build job: 'sfr-publish-linux-pck', parameters: [ + string(name: 'TAG', value: "${params.TAG}"), + string(name: 'FILENAME', value: "${ArchiveFileName}"), + booleanParam(name: 'DRY_RUN', value: params.DRY_RUN) + ] + } + } + } // Pipeline Definition - End \ No newline at end of file