2020-03-17 05:54:42 +00:00
|
|
|
pipeline {
|
2021-03-23 01:17:02 +00:00
|
|
|
agent {
|
|
|
|
label 'oot'
|
|
|
|
}
|
2020-03-17 05:54:42 +00:00
|
|
|
|
|
|
|
stages {
|
2020-06-23 17:59:59 +00:00
|
|
|
stage('Check for unused asm') {
|
|
|
|
steps {
|
|
|
|
sh './tools/find_unused_asm.sh'
|
|
|
|
}
|
|
|
|
}
|
2020-03-17 05:54:42 +00:00
|
|
|
stage('Setup') {
|
|
|
|
steps {
|
2020-03-28 21:34:57 +00:00
|
|
|
sh 'cp /usr/local/etc/roms/baserom_oot.z64 baserom_original.z64'
|
2020-08-22 23:06:52 +00:00
|
|
|
sh 'make -j setup'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build (qemu-irix)') {
|
|
|
|
when {
|
|
|
|
branch 'master'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'ORIG_COMPILER=1 make -j'
|
2020-03-17 05:54:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build') {
|
2020-08-22 23:06:52 +00:00
|
|
|
when {
|
|
|
|
not {
|
|
|
|
branch 'master'
|
|
|
|
}
|
|
|
|
}
|
2020-03-17 05:54:42 +00:00
|
|
|
steps {
|
2020-08-22 23:06:52 +00:00
|
|
|
sh 'make -j'
|
2020-03-17 05:54:42 +00:00
|
|
|
}
|
|
|
|
}
|
2020-05-26 20:36:30 +00:00
|
|
|
stage('Report Progress') {
|
|
|
|
when {
|
|
|
|
branch 'master'
|
|
|
|
}
|
|
|
|
steps {
|
2021-03-23 01:17:02 +00:00
|
|
|
sh 'mkdir reports'
|
2021-12-18 15:09:51 +00:00
|
|
|
sh 'python3 progress.py csv >> reports/progress-oot-nonmatching.csv'
|
|
|
|
sh 'python3 progress.py csv -m >> reports/progress-oot-matching.csv'
|
|
|
|
sh 'python3 progress.py shield-json > reports/progress-oot-shield.json'
|
2021-03-23 01:17:02 +00:00
|
|
|
stash includes: 'reports/*', name: 'reports'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Update Progress') {
|
|
|
|
when {
|
|
|
|
branch 'master'
|
|
|
|
}
|
|
|
|
agent {
|
2022-10-16 07:45:29 +00:00
|
|
|
label 'zeldaret_website'
|
2021-03-23 01:17:02 +00:00
|
|
|
}
|
|
|
|
steps {
|
|
|
|
unstash 'reports'
|
2021-12-18 15:09:51 +00:00
|
|
|
sh 'cat reports/progress-oot-nonmatching.csv >> /var/www/zelda64.dev/assets/csv/progress-oot-nonmatching.csv'
|
2021-12-18 15:31:22 +00:00
|
|
|
sh 'cat reports/progress-oot-matching.csv >> /var/www/zelda64.dev/assets/csv/progress-oot-matching.csv'
|
2021-12-18 15:09:51 +00:00
|
|
|
sh 'cat reports/progress-oot-shield.json > /var/www/zelda64.dev/assets/csv/progress-oot-shield.json'
|
2020-05-26 20:36:30 +00:00
|
|
|
}
|
|
|
|
}
|
2020-03-17 05:54:42 +00:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
2022-12-20 05:13:52 +00:00
|
|
|
echo "Finished, deleting directory."
|
|
|
|
deleteDir()
|
|
|
|
}
|
|
|
|
cleanup {
|
|
|
|
echo "Clean up in post."
|
|
|
|
cleanWs(cleanWhenNotBuilt: false,
|
|
|
|
deleteDirs: true,
|
|
|
|
disableDeferredWipeout: true,
|
|
|
|
notFailBuild: true)
|
2020-03-17 05:54:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|