1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-10 19:20:13 +00:00

Jenkins refactor (#732)

* Jenkins refactor

* reorder
This commit is contained in:
Ethan Roseman 2021-03-23 10:17:02 +09:00 committed by GitHub
parent 8f0549cd9a
commit 9b9a983860
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

27
Jenkinsfile vendored
View file

@ -1,5 +1,7 @@
pipeline { pipeline {
agent any agent {
label 'oot'
}
stages { stages {
stage('Check for unused asm') { stage('Check for unused asm') {
@ -9,7 +11,6 @@ pipeline {
} }
stage('Setup') { stage('Setup') {
steps { steps {
echo 'Setting up...'
sh 'cp /usr/local/etc/roms/baserom_oot.z64 baserom_original.z64' sh 'cp /usr/local/etc/roms/baserom_oot.z64 baserom_original.z64'
sh 'make -j setup' sh 'make -j setup'
} }
@ -37,9 +38,25 @@ pipeline {
branch 'master' branch 'master'
} }
steps { steps {
sh 'python3 progress.py csv >> /var/www/html/reports/progress.csv' sh 'mkdir reports'
sh 'python3 progress.py csv -m >> /var/www/html/reports/progress_matching.csv' sh 'python3 progress.py csv >> reports/progress.csv'
sh 'python3 progress.py shield-json > /var/www/html/reports/progress_shield.json' sh 'python3 progress.py csv -m >> reports/progress_matching.csv'
sh 'python3 progress.py shield-json > reports/progress_shield.json'
stash includes: 'reports/*', name: 'reports'
}
}
stage('Update Progress') {
when {
branch 'master'
}
agent {
label 'master'
}
steps {
unstash 'reports'
sh 'cat reports/progress.csv >> /var/www/html/reports/progress.csv'
sh 'cat reports/progress_matching.csv >> /var/www/html/reports/progress_matching.csv'
sh 'cat reports/progress_shield.json > /var/www/html/reports/progress_shield.json'
} }
} }
} }