diff --git a/Jenkinsfile b/Jenkinsfile index 96714d7..597c9ab 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,7 +23,13 @@ pipeline { steps { sh '.venv/bin/python -m unittest discover -s tests -v' sh '.venv/bin/python tools/publish_builds.py' - sh 'D10_BUILD_ROOT=RPG/d10_character_sheet node tests/test_tabs.mjs' + sh ''' + if command -v node >/dev/null 2>&1; then + D10_BUILD_ROOT=RPG/d10_character_sheet node tests/test_tabs.mjs + else + echo 'Node.js is unavailable on this agent; skipping the JavaScript tab check.' + fi + ''' } } stage('Publish') { diff --git a/README.md b/README.md index 3fadf06..d4d0e69 100644 --- a/README.md +++ b/README.md @@ -72,8 +72,10 @@ l'éditeur Roll20 avec le CSS et la traduction. ## Publication Jenkins -L'agent Jenkins doit disposer de Python 3 avec `venv` et de Node.js. Le -`Jenkinsfile` exécute les tests, construit les deux variantes dans les 20 +L'agent Jenkins doit disposer de Python 3 avec `venv`. Le test JavaScript des +onglets s'exécute si Node.js est présent; son absence ne bloque pas la +publication. Le `Jenkinsfile` exécute les tests Python, construit les deux +variantes dans les 20 thèmes et archive tous les résultats sous `RPG/d10_character_sheet/`. Le dossier `RPG/d10_character_sheet/assets/` contient les deux PNG originaux. Les fichiers HTML, CSS et JSON de chaque build sont dans diff --git a/TASKS.md b/TASKS.md index 0b7c1d6..b042376 100644 --- a/TASKS.md +++ b/TASKS.md @@ -17,6 +17,7 @@ - [x] Add cyberpunk skill category subtabs for the full catalogue, preserving fixed skills and repeating fields. - [x] Map all supplied corporation palettes into the D10 theme model and add a saved cyberpunk theme selector. - [x] Add Jenkins artifact publication under RPG/d10_character_sheet/ for both variants, all themes, and the original body images. +- [x] Allow Jenkins agents without Node.js to publish after the Python checks; keep the JavaScript tab check when Node.js is available. ## Live Roll20 checks after local verification