From 3ff7f9d60a0f68b9b38a8dd0f87393255bb781f1 Mon Sep 17 00:00:00 2001 From: Anupong Hompan Date: Tue, 28 Oct 2025 14:03:00 +0700 Subject: [PATCH] JK --- Jenkinsfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9af7075..4f083a7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -62,7 +62,6 @@ pipeline { sh '''#!/bin/bash -e apt-get update apt-get install -y --no-install-recommends openjdk-21-jre-headless - rm -rf /var/lib/apt/lists/* # --- Install ICU runtime (Debian uses versioned package names) --- if ! ldconfig -p | grep -qi libicu; then @@ -70,12 +69,12 @@ pipeline { if [ -n "$PKG" ]; then echo "Installing ICU package: ${PKG}" apt-get install -y --no-install-recommends "${PKG}" - else - echo "Falling back to libicu-dev..." - apt-get install -y --no-install-recommends libicu-dev - fi + else + echo "Installing fallback ICU development package..." + apt-get install -y --no-install-recommends libicu-dev fi fi + rm -rf /var/lib/apt/lists/* # Install .NET SDK locally for the build user mkdir -p "${WORKSPACE}/.dotnet"