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

This commit is contained in:
spassignat
2026-05-02 13:06:52 +02:00
parent 27dbfa5c48
commit f99a7bedd8

View File

@@ -21,6 +21,7 @@ steps:
rm -rf dist rm -rf dist
rm -f ${CI_WORKSPACE}/version.env rm -f ${CI_WORKSPACE}/version.env
echo "✅ Nettoyage terminé" echo "✅ Nettoyage terminé"
ls -als
depends_on: [ ] depends_on: [ ]
# Étape 2: Analyser le message du commit # Étape 2: Analyser le message du commit
@@ -47,6 +48,7 @@ steps:
echo "version_type=none" >> ${CI_WORKSPACE}/version.env echo "version_type=none" >> ${CI_WORKSPACE}/version.env
echo "⚠️ Aucun changement de version" echo "⚠️ Aucun changement de version"
fi fi
ls -als
depends_on: [ clean_project ] depends_on: [ clean_project ]
# Étape 3: Mettre à jour la version # Étape 3: Mettre à jour la version
@@ -73,6 +75,7 @@ steps:
echo "artifact=no-artifact" >> ${CI_WORKSPACE}/version.env echo "artifact=no-artifact" >> ${CI_WORKSPACE}/version.env
echo "⏭️ Pas de mise à jour de version" echo "⏭️ Pas de mise à jour de version"
fi fi
ls -als
depends_on: [ prepare ] depends_on: [ prepare ]
# Étape 4: Build de l'application # Étape 4: Build de l'application
@@ -85,6 +88,7 @@ steps:
echo ${CI_WORKSPACE} echo ${CI_WORKSPACE}
npm ci --cache .npm --prefer-offline npm ci --cache .npm --prefer-offline
npm run build npm run build
ls -als
depends_on: [ update_version ] depends_on: [ update_version ]
# Étape 5: Package des artefacts # Étape 5: Package des artefacts
@@ -112,6 +116,7 @@ steps:
echo "✅ Artefact créé: ${CI_WORKSPACE}/artifacts/${artifact}" echo "✅ Artefact créé: ${CI_WORKSPACE}/artifacts/${artifact}"
ls -la ${CI_WORKSPACE}/artifacts/${artifact} ls -la ${CI_WORKSPACE}/artifacts/${artifact}
fi fi
ls -als
depends_on: [ build ] depends_on: [ build ]
# Étape 6: Publication dans Nexus # Étape 6: Publication dans Nexus
@@ -123,6 +128,10 @@ steps:
NEXUS_PASSWORD: NEXUS_PASSWORD:
from_secret: nexus_password from_secret: nexus_password
commands: | commands: |
pwd
ls -als
echo $CI_WORKSPACE
echo ${CI_WORKSPACE}
source ${CI_WORKSPACE}/version.env source ${CI_WORKSPACE}/version.env
if [ "$version_type" != "none" ]; then if [ "$version_type" != "none" ]; then
@@ -147,6 +156,7 @@ steps:
else else
echo "⏭️ Pas de publication (version_type=none)" echo "⏭️ Pas de publication (version_type=none)"
fi fi
ls -als
depends_on: [ package ] depends_on: [ package ]
# Étape 7: Commit et tag (après publication) # Étape 7: Commit et tag (après publication)
@@ -156,6 +166,10 @@ steps:
GITEA_TOKEN: GITEA_TOKEN:
from_secret: gitea_token from_secret: gitea_token
commands: | commands: |
pwd
ls -als
echo $CI_WORKSPACE
echo ${CI_WORKSPACE}
source ${CI_WORKSPACE}/version.env source ${CI_WORKSPACE}/version.env
if [ "$version_type" != "none" ]; then if [ "$version_type" != "none" ]; then
@@ -181,6 +195,7 @@ steps:
else else
echo "⚠️ Aucun changement à commiter" echo "⚠️ Aucun changement à commiter"
fi fi
ls -als
depends_on: [ publish ] depends_on: [ publish ]
# Étape 8: Déclencher le déploiement # Étape 8: Déclencher le déploiement