Jenkinsfile: Do not use src subdirectory.

This commit is contained in:
/dev/urandom 2016-09-13 01:34:31 +02:00
parent 2ed39f714a
commit a9c888d17b
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E

12
Jenkinsfile vendored
View File

@ -59,18 +59,16 @@ def doBuild(premakeFlags, configuration) {
sshagent (credentials: ["ba9ec261-deff-4fa0-a0e8-5d755f88d035"]) { sshagent (credentials: ["ba9ec261-deff-4fa0-a0e8-5d755f88d035"]) {
checkout scm checkout scm
premakeHome = "${pwd()}\\src\\tools" premakeHome = "${pwd()}\\tools"
withEnv(["PATH+=${premakeHome}"]) { withEnv(["PATH+=${premakeHome}"]) {
def outputDir = pwd() def outputDir = pwd()
dir("src") { bat "premake5 vs2015 $premakeFlags"
bat "premake5 vs2015 $premakeFlags" bat "\"${tool 'MSBuild'}\" src\\build\\iw4x.sln \"/p:OutDir=$outputDir\\\" \"/p:Configuration=$configuration\""
bat "\"${tool 'MSBuild'}\" src\\build\\iw4x.sln \"/p:OutDir=$outputDir\\\" \"/p:Configuration=$configuration\""
}
} }
archiveArtifacts artifacts: "*", fingerprint: true archiveArtifacts artifacts: "*.dll,*.pdb", fingerprint: true
stash name: "iw4x $configuration", includes: "*" stash name: "iw4x $configuration", includes: "*.dll,*.pdb"
} }
} }