Skip to content

Commit a3a6911

Browse files
author
Joshua Ashton
committed
try mkdir
1 parent d31500f commit a3a6911

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Jenkinsfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ stage ('Build Downfall') {
1212
}
1313

1414
stage('Compile on Linux') {
15-
sh 'mkdir -p sp\\game\\bin'
15+
try {
16+
sh 'mkdir -p sp\\game\\bin'
17+
} catch {}
18+
1619
dir ('sp/src') {
1720
sh '/valve/steam-runtime/shell.sh --arch=i386 make -f games.mak'
1821
}
@@ -37,7 +40,10 @@ stage ('Build Downfall') {
3740
}
3841

3942
stage('Compile on Windows') {
40-
bat 'mkdir -p sp\\game\\bin'
43+
try {
44+
bat 'mkdir -p sp\\game\\bin'
45+
} catch {}
46+
4147
dir ('sp/src') {
4248
bat '''call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\Tools\\VsDevCmd.bat"
4349
msbuild game.sln /t:Build /p:Configuration=Release /m:4'''

0 commit comments

Comments
 (0)