Fix
parent
d1ecc89a3e
commit
255dc97e82
|
|
@ -2300,7 +2300,7 @@ class RemoteBuilder {
|
|||
echo ' '
|
||||
echo 'Initializing source repository for cloning with caching of LFS files'
|
||||
${initializeSourceRepoForCaching}
|
||||
export LFS_ASSETS_HASH="$(cat ${this.repoPathFull}/.lfs-assets-id)"
|
||||
export LFS_ASSETS_HASH="$(cat ${this.repoPathFull}/.lfs-assets-guid)"
|
||||
echo 'Source repository initialized'
|
||||
echo ' '
|
||||
${process.env.DEBUG ? '' : '#'}echo $LFS_ASSETS_HASH
|
||||
|
|
@ -2348,13 +2348,13 @@ class RemoteBuilder {
|
|||
printenv
|
||||
apk update -q
|
||||
apk add zip -q
|
||||
cd "${this.libraryFolderFull}"
|
||||
zip -r "lib-${this.buildGuid}.zip" "${this.libraryFolderFull}"
|
||||
mv "lib-${this.buildGuid}.zip" "${this.cacheFolderFull}/lib"
|
||||
cd "${this.projectPathFull}"
|
||||
ls -lh "${this.projectPathFull}"
|
||||
zip -r "build-${this.buildGuid}.zip" "${this.projectPathFull}/${RemoteBuilder.buildParams.buildPath}"
|
||||
mv "build-${this.buildGuid}.zip" "/${buildVolumeFolder}/${this.buildGuid}/build-${this.buildGuid}.zip"
|
||||
cd "$libraryFolderFull"
|
||||
zip -r "lib-$buildGuid.zip" "$libraryFolderFull"
|
||||
mv "lib-$buildGuid.zip" "$cacheFolderFull/lib"
|
||||
cd "$projectPathFull"
|
||||
ls -lh "$projectPathFull"
|
||||
zip -r "build-$buildGuid.zip" "$projectPathFull/${RemoteBuilder.buildParams.buildPath}"
|
||||
mv "build-$buildGuid.zip" "/${buildVolumeFolder}/$buildGuid/build-$buildGuid.zip"
|
||||
`,
|
||||
], `/${buildVolumeFolder}`, `/${buildVolumeFolder}`, [
|
||||
{
|
||||
|
|
@ -2445,56 +2445,6 @@ class RemoteBuilder {
|
|||
};
|
||||
}));
|
||||
}
|
||||
static readUploadArtifactsSecrets() {
|
||||
return [
|
||||
{
|
||||
ParameterKey: 'AWSAccessKeyID',
|
||||
EnvironmentVariable: 'AWS_ACCESS_KEY_ID',
|
||||
ParameterValue: process.env.AWS_ACCESS_KEY_ID || '',
|
||||
},
|
||||
{
|
||||
ParameterKey: 'AWSSecretAccessKey',
|
||||
EnvironmentVariable: 'AWS_SECRET_ACCESS_KEY',
|
||||
ParameterValue: process.env.AWS_SECRET_ACCESS_KEY || '',
|
||||
},
|
||||
...this.defaultSecrets,
|
||||
];
|
||||
}
|
||||
static readDeployToSteamSecrets() {
|
||||
return [
|
||||
{
|
||||
EnvironmentVariable: 'INPUT_APPID',
|
||||
ParameterKey: 'appId',
|
||||
ParameterValue: process.env.APP_ID || '',
|
||||
},
|
||||
{
|
||||
EnvironmentVariable: 'INPUT_BUILDDESCRIPTION',
|
||||
ParameterKey: 'buildDescription',
|
||||
ParameterValue: process.env.BUILD_DESCRIPTION || '',
|
||||
},
|
||||
{
|
||||
EnvironmentVariable: 'INPUT_ROOTPATH',
|
||||
ParameterKey: 'rootPath',
|
||||
ParameterValue: RemoteBuilder.buildParams.buildPath,
|
||||
},
|
||||
{
|
||||
EnvironmentVariable: 'INPUT_RELEASEBRANCH',
|
||||
ParameterKey: 'releaseBranch',
|
||||
ParameterValue: process.env.RELEASE_BRANCH || '',
|
||||
},
|
||||
{
|
||||
EnvironmentVariable: 'INPUT_LOCALCONTENTSERVER',
|
||||
ParameterKey: 'localContentServer',
|
||||
ParameterValue: process.env.LOCAL_CONTENT_SERVER || '',
|
||||
},
|
||||
{
|
||||
EnvironmentVariable: 'INPUT_PREVIEWENABLED',
|
||||
ParameterKey: 'previewEnabled',
|
||||
ParameterValue: process.env.PREVIEW_ENABLED || '',
|
||||
},
|
||||
...this.defaultSecrets,
|
||||
];
|
||||
}
|
||||
static readBuildEnvironmentVariables() {
|
||||
return [
|
||||
{
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -18,15 +18,15 @@ git clone $cloneUrl $repoPathFull
|
|||
git checkout $githubSha
|
||||
echo "Checked out $githubSha"
|
||||
|
||||
git lfs ls-files -l | cut -d ' ' -f1 | sort > .lfs-assets-id
|
||||
md5sum .lfs-assets-id > .lfs-assets-id-sum
|
||||
git lfs ls-files -l | cut -d ' ' -f1 | sort > .lfs-assets-guid
|
||||
md5sum .lfs-assets-guid > .lfs-assets-guid-sum
|
||||
|
||||
echo ' '
|
||||
echo 'Contents of .lfs-assets-id file:'
|
||||
cat .lfs-assets-id
|
||||
echo 'Contents of .lfs-assets-guid file:'
|
||||
cat .lfs-assets-guid
|
||||
|
||||
echo ' '
|
||||
echo 'Contents of .lfs-assets-id-sum file:'
|
||||
cat .lfs-assets-id-sum
|
||||
echo 'Contents of .lfs-assets-guid-sum file:'
|
||||
cat .lfs-assets-guid-sum
|
||||
|
||||
echo ' '
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ class RemoteBuilder {
|
|||
echo ' '
|
||||
echo 'Initializing source repository for cloning with caching of LFS files'
|
||||
${initializeSourceRepoForCaching}
|
||||
export LFS_ASSETS_HASH="$(cat ${this.repoPathFull}/.lfs-assets-id)"
|
||||
export LFS_ASSETS_HASH="$(cat ${this.repoPathFull}/.lfs-assets-guid)"
|
||||
echo 'Source repository initialized'
|
||||
echo ' '
|
||||
${process.env.DEBUG ? '' : '#'}echo $LFS_ASSETS_HASH
|
||||
|
|
@ -197,13 +197,13 @@ class RemoteBuilder {
|
|||
printenv
|
||||
apk update -q
|
||||
apk add zip -q
|
||||
cd "${this.libraryFolderFull}"
|
||||
zip -r "lib-${this.buildGuid}.zip" "${this.libraryFolderFull}"
|
||||
mv "lib-${this.buildGuid}.zip" "${this.cacheFolderFull}/lib"
|
||||
cd "${this.projectPathFull}"
|
||||
ls -lh "${this.projectPathFull}"
|
||||
zip -r "build-${this.buildGuid}.zip" "${this.projectPathFull}/${RemoteBuilder.buildParams.buildPath}"
|
||||
mv "build-${this.buildGuid}.zip" "/${buildVolumeFolder}/${this.buildGuid}/build-${this.buildGuid}.zip"
|
||||
cd "$libraryFolderFull"
|
||||
zip -r "lib-$buildGuid.zip" "$libraryFolderFull"
|
||||
mv "lib-$buildGuid.zip" "$cacheFolderFull/lib"
|
||||
cd "$projectPathFull"
|
||||
ls -lh "$projectPathFull"
|
||||
zip -r "build-$buildGuid.zip" "$projectPathFull/${RemoteBuilder.buildParams.buildPath}"
|
||||
mv "build-$buildGuid.zip" "/${buildVolumeFolder}/$buildGuid/build-$buildGuid.zip"
|
||||
`,
|
||||
],
|
||||
`/${buildVolumeFolder}`,
|
||||
|
|
@ -307,58 +307,6 @@ class RemoteBuilder {
|
|||
);
|
||||
}
|
||||
|
||||
private static readUploadArtifactsSecrets() {
|
||||
return [
|
||||
{
|
||||
ParameterKey: 'AWSAccessKeyID',
|
||||
EnvironmentVariable: 'AWS_ACCESS_KEY_ID',
|
||||
ParameterValue: process.env.AWS_ACCESS_KEY_ID || '',
|
||||
},
|
||||
{
|
||||
ParameterKey: 'AWSSecretAccessKey',
|
||||
EnvironmentVariable: 'AWS_SECRET_ACCESS_KEY',
|
||||
ParameterValue: process.env.AWS_SECRET_ACCESS_KEY || '',
|
||||
},
|
||||
...this.defaultSecrets,
|
||||
];
|
||||
}
|
||||
|
||||
private static readDeployToSteamSecrets(): RemoteBuilderSecret[] {
|
||||
return [
|
||||
{
|
||||
EnvironmentVariable: 'INPUT_APPID',
|
||||
ParameterKey: 'appId',
|
||||
ParameterValue: process.env.APP_ID || '',
|
||||
},
|
||||
{
|
||||
EnvironmentVariable: 'INPUT_BUILDDESCRIPTION',
|
||||
ParameterKey: 'buildDescription',
|
||||
ParameterValue: process.env.BUILD_DESCRIPTION || '',
|
||||
},
|
||||
{
|
||||
EnvironmentVariable: 'INPUT_ROOTPATH',
|
||||
ParameterKey: 'rootPath',
|
||||
ParameterValue: RemoteBuilder.buildParams.buildPath,
|
||||
},
|
||||
{
|
||||
EnvironmentVariable: 'INPUT_RELEASEBRANCH',
|
||||
ParameterKey: 'releaseBranch',
|
||||
ParameterValue: process.env.RELEASE_BRANCH || '',
|
||||
},
|
||||
{
|
||||
EnvironmentVariable: 'INPUT_LOCALCONTENTSERVER',
|
||||
ParameterKey: 'localContentServer',
|
||||
ParameterValue: process.env.LOCAL_CONTENT_SERVER || '',
|
||||
},
|
||||
{
|
||||
EnvironmentVariable: 'INPUT_PREVIEWENABLED',
|
||||
ParameterKey: 'previewEnabled',
|
||||
ParameterValue: process.env.PREVIEW_ENABLED || '',
|
||||
},
|
||||
...this.defaultSecrets,
|
||||
];
|
||||
}
|
||||
|
||||
private static readBuildEnvironmentVariables(): RemoteBuilderEnvironmentVariable[] {
|
||||
return [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue