Jenkinsfile: Use IW4x entrypoint executable from its respective job.

This commit is contained in:
/dev/urandom 2016-09-13 22:47:27 +02:00
parent 1b9478bd26
commit 0531ac6d2d
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E

16
Jenkinsfile vendored
View File

@ -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 {