1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-11 03:39:59 +00:00
oot/Jenkinsfile
Ethan Roseman ba0e57eecd
Progress reporting through Jenkins (2) (#166)
* Progress reporting through Jenkins

* Update progress.py

Co-authored-by: Roman971 <32455037+Roman971@users.noreply.github.com>

* Jenkins reporting attempt 2

Co-authored-by: Roman971 <32455037+Roman971@users.noreply.github.com>
2020-05-26 17:00:22 -04:00

33 lines
750 B
Groovy

pipeline {
agent any
stages {
stage('Setup') {
steps {
echo 'Setting up...'
sh 'cp /usr/local/etc/roms/baserom_oot.z64 baserom_original.z64'
sh 'make -j`nproc` setup'
}
}
stage('Build') {
steps {
echo 'Building...'
sh 'make -j`nproc`'
}
}
stage('Report Progress') {
when {
branch 'master'
}
steps {
sh 'python3 progress.py -j'
sh 'mv build/progress.json /var/www/html/reports/progress.json'
}
}
}
post {
always {
cleanWs()
}
}
}