Deploy D10 builds to shared books directory
Chado/d10_cs_generator/pipeline/head This commit looks good
Details
Chado/d10_cs_generator/pipeline/head This commit looks good
Details
This commit is contained in:
parent
426ca46ed7
commit
50f13a1285
|
|
@ -6,6 +6,10 @@ pipeline {
|
|||
timestamps()
|
||||
}
|
||||
|
||||
environment {
|
||||
DEPLOY_DIR = '/mnt/books/RPG/d10_character_sheet'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
|
|
@ -37,5 +41,20 @@ pipeline {
|
|||
archiveArtifacts artifacts: 'RPG/d10_character_sheet/**', fingerprint: true, onlyIfSuccessful: true
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
when {
|
||||
branch 'master'
|
||||
}
|
||||
steps {
|
||||
sh '''
|
||||
set -eu
|
||||
mkdir -p "$DEPLOY_DIR"
|
||||
rsync -a RPG/d10_character_sheet/ "$DEPLOY_DIR/"
|
||||
test -f "$DEPLOY_DIR/assets/robotman_health_r.png"
|
||||
test -f "$DEPLOY_DIR/assets/robotman_armor_r.png"
|
||||
test -f "$DEPLOY_DIR/cyberpunk/parchment/sheet.html"
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -87,9 +87,12 @@ est :
|
|||
D10_BUILD_ROOT=RPG/d10_character_sheet node tests/test_tabs.mjs
|
||||
```
|
||||
|
||||
Jenkins expose ces fichiers comme artifacts du job. Après avoir obtenu une URL
|
||||
HTTPS publique et stable pour le dossier `assets/`, reconstruire les feuilles
|
||||
cyberpunk avec `--asset-base-url` afin que les images fonctionnent dans Roll20.
|
||||
Jenkins archive ces fichiers comme artifacts du job, puis déploie les builds de
|
||||
`master` vers `/mnt/books/RPG/d10_character_sheet/` avec `rsync`, selon le même
|
||||
principe que le pipeline Ravenous. Les autres branches ne sont pas déployées.
|
||||
Après avoir obtenu une URL HTTPS publique et stable pour le dossier `assets/`,
|
||||
reconstruire les feuilles cyberpunk avec `--asset-base-url` afin que les images
|
||||
fonctionnent dans Roll20.
|
||||
|
||||
## Vérifier
|
||||
|
||||
|
|
|
|||
1
TASKS.md
1
TASKS.md
|
|
@ -18,6 +18,7 @@
|
|||
- [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.
|
||||
- [x] Mirror Ravenous Jenkins publication by deploying successful master artifacts to /mnt/books/RPG/d10_character_sheet/.
|
||||
|
||||
## Live Roll20 checks after local verification
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue