From 8f38b1e96717a20b569c80bd84ef73de35ac3c72 Mon Sep 17 00:00:00 2001 From: David Tapiador Date: Fri, 25 Sep 2026 11:48:43 +0200 Subject: [PATCH] ci: update Sonatype deployment toolchain --- .gitlab-ci.yml | 13 +++++++------ pom.xml | 1 + 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8d77449a0d3..4f83b79e3af 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,7 +10,7 @@ variables: deploy_to_sonatype: stage: deploy_to_sonatype tags: [ "arch:amd64" ] - image: registry.ddbuild.io/images/mirror/maven:3.8.6-openjdk-8 + image: registry.ddbuild.io/images/mirror/maven:3.9-eclipse-temurin-17 only: - tags script: @@ -18,10 +18,11 @@ deploy_to_sonatype: # operations - set +x - - echo "Installing AWSCLI..." - - apt update - - apt install -y python3 python3-pip - - python3 -m pip install awscli + - echo "Installing AWSCLI and GnuPG..." + - apt-get update + - apt-get install -y --no-install-recommends gnupg pipx + - pipx install awscli + - export PATH="$PATH:$HOME/.local/bin" - echo "Fetching Sonatype user..." - export SONATYPE_USER=$(aws ssm get-parameter --region us-east-1 --name ci.datadog-api-client-java.publishing.sonatype_username --with-decryption --query "Parameter.Value" --out text) @@ -34,7 +35,7 @@ deploy_to_sonatype: - echo "Fetching signing key..." - GPG_KEY=$(aws ssm get-parameter --region us-east-1 --name ci.datadog-api-client-java.signing.gpg_private_key --with-decryption --query "Parameter.Value" --out text) - - printf -- "$GPG_KEY" | gpg --import --batch + - printf '%s' "$GPG_KEY" | gpg --import --batch - set -x diff --git a/pom.xml b/pom.xml index e77f1ef2c38..df5f2721ddf 100644 --- a/pom.xml +++ b/pom.xml @@ -228,6 +228,7 @@ + none http.response.details