Testing Jenkins refactor

This commit is contained in:
Ethan Roseman 2021-03-25 02:51:09 +09:00
parent 8e3bebad00
commit 24f75e1552
1 changed files with 20 additions and 4 deletions

24
Jenkinsfile vendored
View File

@ -1,10 +1,11 @@
pipeline {
agent any
agent {
label 'tmc'
}
stages {
stage('Setup') {
steps {
echo 'Setting up...'
sh 'cd ${AGBCC} && ./install.sh ${WORKSPACE} && cd ${WORKSPACE}'
sh 'cp /usr/local/etc/roms/tmc.us.gba baserom.gba'
sh 'make -j setup'
@ -20,8 +21,23 @@ pipeline {
branch 'master'
}
steps {
sh 'python3 progress.py >> /var/www/html/reports/progress_tmc.csv'
sh 'python3 progress.py -m >> /var/www/html/reports/progress_tmc_matching.csv'
sh 'mkdir reports'
sh 'python3 progress.py >> reports/progress_tmc.csv'
sh 'python3 progress.py -m >> reports/progress_tmc_matching.csv'
stash includes: 'reports/*', name: 'reports'
}
}
stage('Update Progress') {
when {
branch 'master'
}
agent {
label 'master'
}
steps {
unstash 'reports'
sh 'cat reports/progress_tmc.csv >> /var/www/html/reports/progress_tmc.csv'
sh 'cat reports/progress_tmc_matching.csv >> /var/www/html/reports/progress_tmc_matching.csv'
}
}
}