1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-25 01:34:18 +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 {
agent any
agent {
label 'oot'
}
stages {
stage('Check for unused asm') {
@ -9,7 +11,6 @@ pipeline {
}
stage('Setup') {
steps {
echo 'Setting up...'
sh 'cp /usr/local/etc/roms/baserom_oot.z64 baserom_original.z64'
sh 'make -j setup'
}
@ -37,9 +38,25 @@ pipeline {
branch 'master'
}
steps {
sh 'python3 progress.py csv >> /var/www/html/reports/progress.csv'
sh 'python3 progress.py csv -m >> /var/www/html/reports/progress_matching.csv'
sh 'python3 progress.py shield-json > /var/www/html/reports/progress_shield.json'
sh 'mkdir reports'
sh 'python3 progress.py csv >> reports/progress.csv'
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'
}
}
}