mirror of
https://github.com/pmret/papermario.git
synced 2024-11-09 20:42:41 +01:00
40 lines
855 B
Groovy
40 lines
855 B
Groovy
def agentLabel
|
|
if (BRANCH_NAME == "master") {
|
|
agentLabel = "master"
|
|
} else {
|
|
agentLabel = "papermario"
|
|
}
|
|
|
|
pipeline {
|
|
agent {
|
|
label agentLabel
|
|
}
|
|
|
|
stages {
|
|
stage('Setup') {
|
|
steps {
|
|
sh './configure.py --baserom /usr/local/etc/roms/baserom_pm.z64'
|
|
}
|
|
}
|
|
stage('Build') {
|
|
steps {
|
|
sh 'ninja'
|
|
}
|
|
}
|
|
stage('Report Progress') {
|
|
when {
|
|
branch 'master'
|
|
}
|
|
steps {
|
|
sh 'python3 progress.py --csv >> /var/www/papermar.io/html/reports/progress.csv'
|
|
sh 'python3 progress.py --shield-json > /var/www/papermar.io/html/reports/progress_shield.json'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
always {
|
|
cleanWs()
|
|
}
|
|
}
|
|
}
|