diff --git a/Jenkinsfile b/Jenkinsfile index ba9fb30e..c790648f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -56,20 +56,23 @@ def perConfiguration(suffix, f) { // We need a Windows Server with Visual Studio 2015, Premake5 and Git on it. def doBuild(premakeFlags, configuration) { node("windows") { - checkout scm + sshagent (credentials: ["ba9ec261-deff-4fa0-a0e8-5d755f88d035"]) { + checkout scm - premakeHome = "${pwd()}\\src\\tools" + premakeHome = "${pwd()}\\src\\tools" - withEnv(["PATH+=${premakeHome}"]) { - def outputDir = pwd() - dir("src") { - bat "premake5 vs2015 $premakeFlags" - bat "\"${tool 'MSBuild'}\" src\\build\\iw4x.sln \"/p:OutDir=$outputDir\\\" \"/p:Configuration=$configuration\"" + withEnv(["PATH+=${premakeHome}"]) { + def outputDir = pwd() + dir("src") { + bat "premake5 vs2015 $premakeFlags" + 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: "*" } }