Skip to content

Commit

Permalink
TEST: Add post build trigger for github push
Browse files Browse the repository at this point in the history
  • Loading branch information
steelhead31 committed Jan 16, 2025
1 parent 777328b commit 7ec59b5
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion linux_new/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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

0 comments on commit 7ec59b5

Please sign in to comment.