after initalizing repo without lfs, log test LFS file size
parent
1173911f95
commit
d353d2ce56
|
|
@ -2153,11 +2153,12 @@ class RemoteBuilder {
|
||||||
const repoPathFull = `${buildPathFull}/${repositoryFolder}`;
|
const repoPathFull = `${buildPathFull}/${repositoryFolder}`;
|
||||||
const projectPathFull = `${repoPathFull}/${buildParameters.projectPath}`;
|
const projectPathFull = `${repoPathFull}/${buildParameters.projectPath}`;
|
||||||
const libraryFolderFull = `${projectPathFull}/Library`;
|
const libraryFolderFull = `${projectPathFull}/Library`;
|
||||||
|
const testLFSFile = 'test-project/Assets/LFS_Test_File.jpg';
|
||||||
const repo = `https://${buildParameters.githubToken}@github.com/game-ci/unity-builder.git`;
|
const repo = `https://${buildParameters.githubToken}@github.com/game-ci/unity-builder.git`;
|
||||||
const repo2 = `https://${buildParameters.githubToken}@github.com/game-ci/steam-deploy.git`;
|
const repo2 = `https://${buildParameters.githubToken}@github.com/game-ci/steam-deploy.git`;
|
||||||
const repo3 = `https://${buildParameters.githubToken}@github.com/${process.env.GITHUB_REPOSITORY}.git`;
|
const repo3 = `https://${buildParameters.githubToken}@github.com/${process.env.GITHUB_REPOSITORY}.git`;
|
||||||
const purgeRemoteCache = process.env.PURGE_REMOTE_BUILDER_CACHE === undefined;
|
const purgeRemoteCache = process.env.PURGE_REMOTE_BUILDER_CACHE === undefined;
|
||||||
const initializeSourceRepoForCaching = `${builderPathFull}/dist/remote-builder/cloneNoLFS.sh ${repoPathFull} ${repo3} $GITHUB_SHA`;
|
const initializeSourceRepoForCaching = `${builderPathFull}/dist/remote-builder/cloneNoLFS.sh ${repoPathFull} ${repo3} $GITHUB_SHA ${testLFSFile}`;
|
||||||
const handleCaching = `${builderPathFull}/dist/remote-builder/handleCaching.sh ${cacheFolderFull} ${branchName} ${libraryFolderFull} ${purgeRemoteCache}`;
|
const handleCaching = `${builderPathFull}/dist/remote-builder/handleCaching.sh ${cacheFolderFull} ${branchName} ${libraryFolderFull} ${purgeRemoteCache}`;
|
||||||
yield this.RemoteBuilderProviderPlatform.runBuildTask(buildUid, 'alpine/git', [
|
yield this.RemoteBuilderProviderPlatform.runBuildTask(buildUid, 'alpine/git', [
|
||||||
` apk update -q
|
` apk update -q
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -3,6 +3,7 @@
|
||||||
repoPathFull=$1
|
repoPathFull=$1
|
||||||
cloneUrl=$2
|
cloneUrl=$2
|
||||||
githubSha=$3
|
githubSha=$3
|
||||||
|
testLFSFile=$4
|
||||||
|
|
||||||
cd $repoPathFull
|
cd $repoPathFull
|
||||||
|
|
||||||
|
|
@ -12,6 +13,8 @@ git clone --filter=blob:none --no-checkout $cloneUrl $repoPathFull
|
||||||
git checkout $githubSha
|
git checkout $githubSha
|
||||||
echo "Checked out $githubSha"
|
echo "Checked out $githubSha"
|
||||||
|
|
||||||
|
ls -l "$repoPathFull/$testLFSFile"
|
||||||
|
|
||||||
echo ' '
|
echo ' '
|
||||||
echo 'Tree of cloned target repository:'
|
echo 'Tree of cloned target repository:'
|
||||||
tree
|
tree
|
||||||
|
|
|
||||||
|
|
@ -95,12 +95,14 @@ class RemoteBuilder {
|
||||||
const projectPathFull = `${repoPathFull}/${buildParameters.projectPath}`;
|
const projectPathFull = `${repoPathFull}/${buildParameters.projectPath}`;
|
||||||
const libraryFolderFull = `${projectPathFull}/Library`;
|
const libraryFolderFull = `${projectPathFull}/Library`;
|
||||||
|
|
||||||
|
const testLFSFile = 'test-project/Assets/LFS_Test_File.jpg';
|
||||||
|
|
||||||
const repo = `https://${buildParameters.githubToken}@github.com/game-ci/unity-builder.git`;
|
const repo = `https://${buildParameters.githubToken}@github.com/game-ci/unity-builder.git`;
|
||||||
const repo2 = `https://${buildParameters.githubToken}@github.com/game-ci/steam-deploy.git`;
|
const repo2 = `https://${buildParameters.githubToken}@github.com/game-ci/steam-deploy.git`;
|
||||||
const repo3 = `https://${buildParameters.githubToken}@github.com/${process.env.GITHUB_REPOSITORY}.git`;
|
const repo3 = `https://${buildParameters.githubToken}@github.com/${process.env.GITHUB_REPOSITORY}.git`;
|
||||||
|
|
||||||
const purgeRemoteCache = process.env.PURGE_REMOTE_BUILDER_CACHE === undefined;
|
const purgeRemoteCache = process.env.PURGE_REMOTE_BUILDER_CACHE === undefined;
|
||||||
const initializeSourceRepoForCaching = `${builderPathFull}/dist/remote-builder/cloneNoLFS.sh ${repoPathFull} ${repo3} $GITHUB_SHA`;
|
const initializeSourceRepoForCaching = `${builderPathFull}/dist/remote-builder/cloneNoLFS.sh ${repoPathFull} ${repo3} $GITHUB_SHA ${testLFSFile}`;
|
||||||
const handleCaching = `${builderPathFull}/dist/remote-builder/handleCaching.sh ${cacheFolderFull} ${branchName} ${libraryFolderFull} ${purgeRemoteCache}`;
|
const handleCaching = `${builderPathFull}/dist/remote-builder/handleCaching.sh ${cacheFolderFull} ${branchName} ${libraryFolderFull} ${purgeRemoteCache}`;
|
||||||
await this.RemoteBuilderProviderPlatform.runBuildTask(
|
await this.RemoteBuilderProviderPlatform.runBuildTask(
|
||||||
buildUid,
|
buildUid,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue