-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathJenkinsfile
37 lines (36 loc) · 986 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
pipeline {
agent {
label 'pokemonsnap'
}
stages {
stage('Setup') {
steps {
sh 'cp /usr/local/etc/roms/pokemonsnap.us.z64 pokemonsnap.z64'
sh 'pip install -U -r requirements.txt --break-system-packages'
sh 'cargo install pigment64'
sh './configure.py --setup'
sh './configure.py'
}
}
stage('Build') {
steps {
sh "bash -o pipefail -c 'ninja 2>&1 | tee build_log.txt'"
}
}
stage('Report Progress') {
when {
branch 'main'
}
steps {
withCredentials([string(credentialsId: 'pokemonsnap_frogress', variable: 'frogress_key')]) {
sh 'python3 tools/progress.py --frogress $frogress_key'
}
}
}
}
post {
always {
cleanWs()
}
}
}