Jenkins update (#79)

* Jenkins update

* reorder
This commit is contained in:
Ethan Roseman 2021-03-22 20:14:27 +09:00 committed by GitHub
parent 0e2738b81a
commit d61a7a9ef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 4 deletions

26
Jenkinsfile vendored
View File

@ -1,5 +1,7 @@
pipeline {
agent any
agent {
label 'mm'
}
stages {
stage('Copy ROM') {
@ -18,9 +20,25 @@ pipeline {
branch 'master'
}
steps {
sh 'python3 ./tools/progress.py csv >> /var/www/html/reports/progress_mm.us.rev1.csv'
sh 'python3 ./tools/progress.py csv -m >> /var/www/html/reports/progress_matching_mm.us.rev1.csv'
sh 'python3 ./tools/progress.py shield-json > /var/www/html/reports/progress_shield_mm.us.rev1.json'
sh 'mkdir reports'
sh 'python3 ./tools/progress.py csv >> reports/progress_mm.us.rev1.csv'
sh 'python3 ./tools/progress.py csv -m >> reports/progress_matching_mm.us.rev1.csv'
sh 'python3 ./tools/progress.py shield-json > reports/progress_shield_mm.us.rev1.json'
stash includes: 'reports/*', name: 'reports'
}
}
stage('Update Progress') {
when {
branch 'master'
}
agent{
label 'master'
}
steps {
unstash 'reports'
sh 'cat reports/progress_mm.us.rev1.csv >> /var/www/html/reports/progress_mm.us.rev1.csv'
sh 'cat reports/progress_matching_mm.us.rev1.csv >> /var/www/html/reports/progress_matching_mm.us.rev1.csv'
sh 'cat reports/progress_shield_mm.us.rev1.json > /var/www/html/reports/progress_shield_mm.us.rev1.json'
}
}
}