From 0531ac6d2de01ec8886c31bc593a99f217116cdd Mon Sep 17 00:00:00 2001 From: /dev/urandom Date: Tue, 13 Sep 2016 22:47:27 +0200 Subject: [PATCH] Jenkinsfile: Use IW4x entrypoint executable from its respective job. --- Jenkinsfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 473fe401..6ba830cd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -48,6 +48,21 @@ def useShippedPremake(f) { withEnv(["PATH+=${premakeHome}"], f) } +def getIW4xExecutable() { + step [ + $class: 'CopyArtifact', + filter: '*', + fingerprintArtifacts: true, + projectName: 'iw4x/iw4x-executable/master', + selector: [ + $class: 'TriggeredBuildSelector', + allowUpstreamDependencies: false, + fallbackToLastSuccessful: true, + upstreamFilterStrategy: 'UseGlobalSetting' + ] + ] +} + // This will build the IW4x client. // We need a Windows Server with Visual Studio 2015, Premake5 and Git on it. def doBuild(name, wsid, premakeFlags, configuration) { @@ -94,6 +109,7 @@ def doUnitTests(name) { """ // Run tests + getIW4xExecutable() bat "iw4x.exe -tests" } } finally {