-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile
40 lines (40 loc) · 1.26 KB
/
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
39
40
pipeline {
agent any
stages {
stage('Version check') {
parallel {
stage('Blender') {
steps {
sh '''/home/lucas/Documentos/TCC/Blender/blender -v
'''
}
}
stage('PBRTv3') {
steps {
sh 'wget https://gist.github.com/LucasReSilva/40dc265ccaaf04dc0cb6e2c81c7dbb0e/raw/8cd87f29a67e496222688eb46281b3ffe5e4c623/PBRTv3_Exemple'
sh 'pbrt PBRTv3_Exemple --quick'
}
}
}
}
stage('Export file') {
steps {
sh 'wget "https://github.com/LucasReSilva/Cornell-Box/raw/master/Blender%20files/Cycles.blend"'
sh '/home/lucas/Documentos/TCC/Blender/blender -b --addons pbrtBlend -E help '
sh '/home/lucas/Documentos/TCC/Blender/blender --addons pbrtBlend -b Cycles.blend -E PBRTv3_RENDER -f 1 --python /home/lucas/Documentos/TCC/blendToPBRTv3.py'
}
}
stage('Render scene') {
steps {
sh 'pbrt /tmp/untitled.Scene.00001.PBRTv3s'
}
}
stage('Compare') {
steps {
sh 'wget http://www.graphics.cornell.edu/online/box/box.jpg'
sh ' convert box.jpg -resize 500x500 box_resized.png'
sh 'composite cornell-box.png box_resized.png -compose difference difference.png'
}
}
}
}