patch: test 27
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline failed

This commit is contained in:
spassignat
2026-05-02 12:36:22 +02:00
parent 0d4c6c256c
commit 7ab3d05e64

View File

@@ -96,19 +96,37 @@ steps:
# Étape 6: Publication dans Nexus # Étape 6: Publication dans Nexus
- name: publish - name: publish
image: rockdrilla/woodpecker-sonatype-nexus image: *curl_image
settings: environment:
url: http://nexus.cicd.exygen.fr/ NEXUS_USERNAME:
auth.base64: from_secret: nexus_username
from_secret: YWRtaW46UGFzc3dvcmQxIQ== NEXUS_PASSWORD:
upload: from_secret: nexus_password
- repository: domaine-passignat commands: |
paths: source ${CI_WORKSPACE}/version.env
- ${CI_WORKSPACE}/artifacts/${artifact}
if [ "$version_type" != "none" ]; then
ARTIFACT_PATH="${CI_WORKSPACE}/artifacts/${artifact}"
echo "📦 Publication de la version ${NEW_VERSION} : ${artifact}"
if [ ! -f "${ARTIFACT_PATH}" ]; then
echo "❌ Fichier introuvable: ${ARTIFACT_PATH}"
ls -la ${CI_WORKSPACE}/artifacts/
exit 1
fi
curl -v \
-u "${NEXUS_USERNAME}:${NEXUS_PASSWORD}" \
-F "raw.directory=apps/${CI_REPO_NAME}/${NEW_VERSION}" \
-F "raw.asset1=@${ARTIFACT_PATH}" \
-F "raw.asset1.filename=${artifact}" \
https://nexus.cicd.exygen.fr/service/rest/v1/components?repository=domaine-passignat
echo "✅ Artefact publié"
else
echo "⏭️ Pas de publication (version_type=none)"
fi
depends_on: [ package ] depends_on: [ package ]
# Étape 7: Commit et tag (après publication) # Étape 7: Commit et tag (après publication)