Jenkinsfile: Reuse SSH credentials through SSH agent (hopefully).

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

21
Jenkinsfile vendored
View File

@ -56,20 +56,23 @@ def perConfiguration(suffix, f) {
// We need a Windows Server with Visual Studio 2015, Premake5 and Git on it. // We need a Windows Server with Visual Studio 2015, Premake5 and Git on it.
def doBuild(premakeFlags, configuration) { def doBuild(premakeFlags, configuration) {
node("windows") { node("windows") {
checkout scm sshagent (credentials: ["ba9ec261-deff-4fa0-a0e8-5d755f88d035"]) {
checkout scm
premakeHome = "${pwd()}\\src\\tools" premakeHome = "${pwd()}\\src\\tools"
withEnv(["PATH+=${premakeHome}"]) { withEnv(["PATH+=${premakeHome}"]) {
def outputDir = pwd() def outputDir = pwd()
dir("src") { 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
stash name: "iw4x $configuration", includes: "*"
} }
archiveArtifacts artifacts: "*", fingerprint: true
stash name: "iw4x $configuration", includes: "*"
} }
} }