Changeset View
Changeset View
Standalone View
Standalone View
build/jenkins/win_diff.Jenkinsfile
- This file was added.
def jobs = "2" | |||||
pipeline { | |||||
agent { label 'WindowsSlave' } | |||||
options { | |||||
skipDefaultCheckout() | |||||
} | |||||
parameters { | |||||
string(name: 'DIFF_ID', defaultValue: '', description: 'ID of the Phabricator Differential.') | |||||
string(name: 'PHID', defaultValue: '', description: 'Phabricator ID') | |||||
} | |||||
stages { | |||||
stage ('Checkout') { | |||||
Silier: only build | |||||
options { | |||||
retry(3) | |||||
} | |||||
steps { | |||||
script { | |||||
try { | |||||
svn "https://svn.wildfiregames.com/public/ps/trunk" | |||||
} catch(e) { | |||||
bat "svn cleanup" | |||||
sleep 300 | |||||
throw e | |||||
} | |||||
} | |||||
bat "svn cleanup" | |||||
} | |||||
} | |||||
stage ('Patch') { | |||||
steps { | |||||
script { | |||||
try { | |||||
bat "arc patch D${params.DIFF_ID} --force" | |||||
ItmsUnsubmitted Not Done Inline ActionsThis is not correct. The DIFF_ID sent by Phabricator is not the ID of the revision, but the one of the diff. For instance, the diff I'm commenting on is diff 8290. The two previous diffs for this revision (D1946) were 8282 and 8289. The correct call is arc patch --diff ${params.DIFF_ID} --force Itms: This is not correct. The `DIFF_ID` sent by Phabricator is not the ID of the revision, but the… | |||||
SilierAuthorUnsubmitted Done Inline ActionsOk, I see my misstake Silier: Ok, I see my misstake | |||||
} catch (e) { | |||||
bat 'powershell.exe "svn st --no-ignore | %% {$_.substring(8)} | del -r" ' | |||||
bat "svn revert -R ." | |||||
bat "arc patch D${params.DIFF_ID} --force" | |||||
ItmsUnsubmitted Not Done Inline Actionssame Itms: same | |||||
} | |||||
} | |||||
Done Inline Actionsdo not try to delete removed items by patch Silier: do not try to delete removed items by patch | |||||
} | |||||
} | |||||
stage ('Update-Workspace') { | |||||
steps { | |||||
bat "cd build\\workspaces && update-workspaces.bat --jenkins-tests" | |||||
ItmsUnsubmitted Not Done Inline ActionsI'd be in favor of building Atlas. Let's make sure it builds, without the same bug as the autobuilder. Itms: I'd be in favor of building Atlas. Let's make sure it builds, without the same bug as the… | |||||
SilierAuthorUnsubmitted Done Inline ActionsDo you mean to always build with --atlas and /t:AtlasUI ? Silier: Do you mean to always build with --atlas and /t:AtlasUI ? | |||||
ItmsUnsubmitted Not Done Inline ActionsYes :) Itms: Yes :) | |||||
} | |||||
} | |||||
stage ('Build') { | |||||
steps { | |||||
bat("cd build\\workspaces\\vc2015 && MSBuild.exe pyrogenesis.sln /m:${jobs} /p:PlatformToolset=v140_xp /t:pyrogenesis /t:test /p:Configuration=Release -clp:Warningsonly -clp:ErrorsOnly") | |||||
} | |||||
} | |||||
stage ('Tests') { | |||||
steps { | |||||
bat 'binaries\\system\\test.exe > cxxtest_release.xml' | |||||
} | |||||
post { | |||||
unsuccessful { | |||||
ItmsUnsubmitted Not Done Inline ActionsIs there a reason you used unsuccessful instead of failure? Itms: Is there a reason you used `unsuccessful` instead of `failure`? | |||||
echo (message: readFile (file: "cxxtest_release.xml")) | |||||
} | |||||
always { | |||||
junit "cxxtest_release.xml" | |||||
} | |||||
} | |||||
} | |||||
} | |||||
post { | |||||
always { | |||||
step([$class: 'PhabricatorNotifier', commentOnSuccess: true, commentWithConsoleLinkOnFailure: true]) | |||||
bat "svn revert -R ." | |||||
bat 'powershell.exe "svn st binaries/data | %% {$_.substring(8)} | del -r " ' | |||||
bat 'powershell.exe "svn st source/ | %% {$_.substring(8)} | del -r " ' | |||||
} | |||||
} | |||||
} | |||||
Done Inline Actionsdo not try to delete removed items by patch Silier: do not try to delete removed items by patch |
Wildfire Games · Phabricator
only build