-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjenkinsfile
38 lines (36 loc) · 948 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
38
pipeline {
agent any
stages {
stage('Checkout') {
steps {
git branch: 'master',
url: 'https://github.com/sixteenbits/TownQuest.git'
}
}
stage('Version') {
steps {
sh '''
myversion=$(git log -1 | head -1 | sed 's/commit //')
echo $myversion
echo '#define VERSION' $myversion > src/version.h
'''
}
}
stage('Build') {
steps {
sh '''
# export GENDEV=/opt/gendev
make -f $GENDEV/sgdk/mkfiles/makefile.gen clean all
'''
}
}
stage('Deploy') {
steps {
sh '''
echo 'Deploy...'
#scp $WORKSPACE/out/rom.bin [email protected]:/home/pi/RetroPie/roms/Town_Quest.md
'''
}
}
}
}