Skip to content

Commit

Permalink
Fix Alpine APK builds
Browse files Browse the repository at this point in the history
  • Loading branch information
steelhead31 committed Jan 28, 2025
1 parent c8df680 commit 5370bc0
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion linux/jdk/alpine/src/main/packaging/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG CONTAINER_REGISTRY=""

FROM ${CONTAINER_REGISTRY}alpine:3.19
FROM ${CONTAINER_REGISTRY}alpine
ENV GOSU_VERSION 1.14

RUN set -eux; \
Expand Down
2 changes: 1 addition & 1 deletion linux/jdk/alpine/src/main/packaging/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cp -R /home/builder/build/generated/packaging /home/builder/workspace

# Build package and set distributions it supports
cd /home/builder/workspace/packaging
abuild -r
abuild -r -v --no-repo-update

arch=$(abuild -A)

Expand Down
2 changes: 1 addition & 1 deletion linux/jre/alpine/src/main/packaging/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG CONTAINER_REGISTRY=""

FROM ${CONTAINER_REGISTRY}alpine:3.19
FROM ${CONTAINER_REGISTRY}alpine
ENV GOSU_VERSION 1.14

RUN set -eux; \
Expand Down
2 changes: 1 addition & 1 deletion linux/jre/alpine/src/main/packaging/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cp -R /home/builder/build/generated/packaging /home/builder/workspace

# Build package and set distributions it supports
cd /home/builder/workspace/packaging
abuild -r
abuild -r -v --no-repo-update

arch=$(abuild -A)

Expand Down
17 changes: 9 additions & 8 deletions linux_new/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def ArchiveFileName = ""
// Github Artifact Repos
def binaryRepo = "${params.VERSION.replace('jdk', 'temurin')}-binaries/releases/tag/${params.TAG}"
def binaryDLRepo = "${params.VERSION.replace('jdk', 'temurin')}-binaries/releases/download/${params.TAG}"
def fullURL = "${baseURL}/${binaryRepo}"
def dlURL = "${baseURL}/${binaryDLRepo}"
def fullURL = "${baseURL}${binaryRepo}"
def dlURL = "${baseURL}${binaryDLRepo}"

/* Supported Distro Arrays */
// Remember If Adding An Deb Distro to update the cacerts package //
Expand Down Expand Up @@ -198,7 +198,8 @@ def CheckAndUpload(String Target, String Distro, String BuildArch, String RelVer
break
} else {
// This Upload Works
jf 'rt u **/build/ospackage/${FILENAME} apk/alpine/main/${BUILDARCH}/ --flat=true'
echo "DEBUGXX"
// jf 'rt u **/build/ospackage/${FILENAME} apk/alpine/main/${BUILDARCH}/ --flat=true'
break
}
case "RPMS":
Expand Down Expand Up @@ -256,7 +257,7 @@ pipeline {
string(name: 'UPSTREAM_JOB_NUMBER', defaultValue: '', description: 'Parameter From Upstream Job Not Required Here')
booleanParam(name: 'UPLOAD_TESTRESULTS_ONLY', defaultValue: false, description: 'Parameter From Upstream Job Not Required Here')
string(name: 'TIMESTAMP', defaultValue: '', description: 'Parameter From Upstream Job Not Required Here')
string(name: 'GITHUB_TOKEN', defaultValue: '', description: 'Parameter From Upstream Job Not Required Here')
password(name: 'GITHUB_TOKEN', defaultValue: '', description: 'Parameter From Upstream Job Not Required Here')
string(name: 'ARTIFACTS_TO_SKIP', defaultValue: '', description: 'Parameter From Upstream Job Not Required Here')
}
// Stage Definition - Start
Expand Down Expand Up @@ -304,7 +305,7 @@ pipeline {

// Valid architectures
def validArchs = ['aarch64', 'x64', 's390x', 'arm', 'ppc64le', 'riscv64']

// Extract architectures from the parameter
def specifiedPaths = params.ARTIFACTS_TO_COPY.tokenize(',') // Split by commas
def extractedArchs = specifiedPaths.collect { path ->
Expand Down Expand Up @@ -748,7 +749,7 @@ stage('Build & Archive Package') {
buildCli = params.ENABLEDEBUG.toBoolean() ? buildCli + ' --stacktrace' : buildCli
sh("$buildCli")
}

if (DistArrayElement == "rhel" || DistArrayElement == "suse") { // for RPM based: RedHat / Suse / Alpine
echo "Using RPM Private KEY"
def privateKey = 'adoptium-artifactory-gpg-key'
Expand All @@ -758,7 +759,7 @@ stage('Build & Archive Package') {
sh("$buildCli")
}
}

if (DistArrayElement == "alpine") {
echo "Using Alpine Private KEY"
def privateKey = 'adoptium-artifactory-rsa-key'
Expand Down Expand Up @@ -920,4 +921,4 @@ post {
}
// End Of Post Build Trigger Stage
}
// Pipeline Definition - End
// Pipeline Definition - End
2 changes: 1 addition & 1 deletion linux_new/jdk/alpine/src/main/packaging/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG CONTAINER_REGISTRY=""

FROM ${CONTAINER_REGISTRY}alpine:3.19
FROM ${CONTAINER_REGISTRY}alpine
ENV GOSU_VERSION 1.14

RUN set -eux; \
Expand Down
2 changes: 1 addition & 1 deletion linux_new/jdk/alpine/src/main/packaging/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cp -R /home/builder/build/generated/packaging /home/builder/workspace

# Build package and set distributions it supports
cd /home/builder/workspace/packaging
abuild -r
abuild -r -v --no-repo-update

arch=$(abuild -A)

Expand Down
2 changes: 1 addition & 1 deletion linux_new/jre/alpine/src/main/packaging/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG CONTAINER_REGISTRY=""

FROM ${CONTAINER_REGISTRY}alpine:3.19
FROM ${CONTAINER_REGISTRY}alpine
ENV GOSU_VERSION 1.14

RUN set -eux; \
Expand Down
2 changes: 1 addition & 1 deletion linux_new/jre/alpine/src/main/packaging/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cp -R /home/builder/build/generated/packaging /home/builder/workspace

# Build package and set distributions it supports
cd /home/builder/workspace/packaging
abuild -r
abuild -r -v --no-repo-update

arch=$(abuild -A)

Expand Down

0 comments on commit 5370bc0

Please sign in to comment.