Skip to content

Commit

Permalink
Develop RHEL Upload Process
Browse files Browse the repository at this point in the history
  • Loading branch information
steelhead31 committed Dec 20, 2024
1 parent 1f7f972 commit e171b1d
Showing 1 changed file with 42 additions and 6 deletions.
48 changes: 42 additions & 6 deletions linux_new/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ def binaryRepo = "${params.VERSION.replace('jdk', 'temurin')}-binaries/releases/
def binaryDLRepo = "${params.VERSION.replace('jdk', 'temurin')}-binaries/releases/download/${params.TAG}"
def fullURL = "${baseURL}/${binaryRepo}"
def dlURL = "${baseURL}/${binaryDLRepo}"
def PKGBUILDLABEL=""

/* Supported Distro Arrays */
// Remember If Adding An Deb Distro to update the cacerts package //
Expand Down Expand Up @@ -74,6 +73,9 @@ def packagearchRhel = ""
def PackageReleaseVersion = "0"
def upstreamversion = ""
def upstreamversionARM32 = ""
def RHELkey = ""
def SUSEkey = ""

/* Have Some Default Node Labels */
def PKGBUILDLABELAPK = 'build&&linux&&x64&&dockerBuild&&dynamicAzure'
def PKGBUILDLABELDEB = 'build&&linux&&x64&&dockerBuild&&dynamicAzure'
Expand Down Expand Up @@ -149,7 +151,7 @@ def CheckAndUpload(String Target, String Distro, String BuildArch, String Versio
// Received From Alpine CheckAndUpload(Target, UpDistro, buildArch, '', '', '', '', '' , FileName)
// Received From Deb CheckAndUpload(DebTarget, DebDistro, arch, Release, distro_list, '', '', '', DebFileName)

echo "Debug 1001"
echo "Debug 2001"
echo "Target = ${Target}"
echo "Distro = ${Distro}"
echo "Arch = ${BuildArch}"
Expand Down Expand Up @@ -788,12 +790,11 @@ stage('Build & Archive Package') {
distro_list += "deb.distribution=${deb_version};"
}
def DebDistro = "Debian"
def PackFilesDeb = findFiles(glob: "**/build/ospackage/temurin-*.deb") // List All Packages To Upload
for (DebPackFile in PackFilesDeb) {
def DebPackFiles = findFiles(glob: "**/build/ospackage/temurin-*.deb") // List All Packages To Upload
for (DebPackFile in DebPackFiles) {
DebFileName = DebPackFile.name
DebTarget = "https://adoptium.jfrog.io/artifactory/deb/pool/main/t/temurin-${Release}/${DebFileName}"

echo "Debug 1000 - Debian Upload Debugging"
echo "Debug 1001 - Debian Upload Debugging"
echo "Target = ${DebTarget}"
echo "Distro = ${DebDistro}"
echo "buildArch = ${arch}"
Expand All @@ -802,6 +803,41 @@ stage('Build & Archive Package') {
echo "DistroList = ${distro_list}"
CheckAndUpload(DebTarget, DebDistro, arch, '', distro_list, '', '', '' , DebFileName)
}
echo "Preapring For RHEL Upload"
def RHELPackFiles = findFiles(glob: "**/rhel/build/ospackage/t*.rpm") // List All Packages To Upload For Temurin
for (RHELPackFile in RHELPackFiles) {
// Calculate Key
rhel_distros.each { rhel_distro ->
RHELkey = rhel_distro
echo "RHELKEY = ${RHELkey}"
}
}


def RHELFileName = RHELPackFile.name
//def RHELTarget = "https://adoptium.jfrog.io/artifactory/rpm/${KEY}/Packages/${RHELFileName}"
// Key = amazonlinux/2/x86_64
// https://adoptium.jfrog.io/artifactory/rpm/amazonlinux/2/x86_64/Packages/temurin-23-jdk-23.0.1.0.0.11-0.x86_64.rpm
echo "Debug 1002 - RHEL Upload Debugging"
//echo "Target = ${RHELTarget}"
// echo "Distro = ${DebDistro}"
// echo "buildArch = ${arch}"
// echo "Release = ${Release}"
// echo "FileName = ${DebFileName}"
// echo "DistroList = ${distro_list}"
// echo "RHEL FileName = ${RHELFileName}"
// echo "Target = ${RHELTarget}"
// //CheckAndUpload(Target, Distro, arch, VERSION, DISTROLIST, '', '', '', RHELFileName )"
// }
// echo "Preparing For SUSE Upload"
// def PackFilesSUSE = findFiles(glob: "**/suse/build/ospackage/t*.rpm") // List All Packages To Upload For Temurin
// for (PackFile in PackFilesSUSE) {
// def FileName = PackFile.name
// // def Target = "https://adoptium.jfrog.io/artifactory/${PACKAGEDIR}/${KEY}/Packages/${FileName}"
// echo "SUSE FileName = ${FileName}"
// // echo "Target = ${Target}"
// //CheckAndUpload(Target, Distro, BUILDARCH, VERSION, DISTROLIST, '', '', '', '' )"
// }
}
}
// End OF Script
Expand Down

0 comments on commit e171b1d

Please sign in to comment.