From f30aea63bf2c5be636f51cfed76806f7f6a07472 Mon Sep 17 00:00:00 2001 From: Anupong Hompan Date: Tue, 28 Oct 2025 13:57:03 +0700 Subject: [PATCH] JK --- Jenkinsfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 3aed0c0..9af7075 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -64,6 +64,19 @@ pipeline { 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 + PKG="$(apt-cache search '^libicu[0-9]+$' | awk '{print $1}' | head -n1 || true)" + 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 + fi + fi + # Install .NET SDK locally for the build user mkdir -p "${WORKSPACE}/.dotnet" curl -fsSL https://dot.net/v1/dotnet-install.sh -o dotnet-install.sh