2021-01-19 10:16:45 +01:00
|
|
|
def agentLabel
|
|
|
|
if (BRANCH_NAME == "master") {
|
|
|
|
agentLabel = "master"
|
|
|
|
} else {
|
|
|
|
agentLabel = "papermario"
|
|
|
|
}
|
|
|
|
|
2020-08-15 06:12:23 +02:00
|
|
|
pipeline {
|
2021-01-18 14:05:32 +01:00
|
|
|
agent {
|
2021-01-19 10:16:45 +01:00
|
|
|
label agentLabel
|
2021-01-18 14:05:32 +01:00
|
|
|
}
|
2020-08-15 06:12:23 +02:00
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Setup') {
|
|
|
|
steps {
|
2021-02-22 10:21:23 +01:00
|
|
|
sh 'cp /usr/local/etc/roms/papermario.us.z64 ver/us/baserom.z64'
|
|
|
|
sh 'cp /usr/local/etc/roms/papermario.jp.z64 ver/jp/baserom.z64'
|
|
|
|
sh './configure.py'
|
2020-08-15 06:12:23 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
2021-01-15 01:04:40 +01:00
|
|
|
sh 'ninja'
|
2020-08-15 06:12:23 +02:00
|
|
|
}
|
|
|
|
}
|
2021-01-04 14:50:33 +01:00
|
|
|
stage('Report Progress') {
|
|
|
|
when {
|
|
|
|
branch 'master'
|
|
|
|
}
|
|
|
|
steps {
|
2021-02-22 10:21:23 +01:00
|
|
|
sh 'python3 progress.py us --csv >> /var/www/papermar.io/html/reports/progress_us.csv'
|
|
|
|
sh 'python3 progress.py us --shield-json > /var/www/papermar.io/html/reports/progress_us_shield.json'
|
|
|
|
|
|
|
|
sh 'python3 progress.py jp --csv >> /var/www/papermar.io/html/reports/progress_jp.csv'
|
|
|
|
sh 'python3 progress.py jp --shield-json > /var/www/papermar.io/html/reports/progress_jp_shield.json'
|
2021-01-04 14:50:33 +01:00
|
|
|
}
|
|
|
|
}
|
2020-08-15 06:12:23 +02:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
cleanWs()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|