Overwrite files when unzipping + correction to secret names
commit
320a33fa5c
|
|
@ -1239,7 +1239,7 @@ class AWSBuildEnvironment {
|
||||||
const insertionStringContainerSecrets = 'p3 - container def';
|
const insertionStringContainerSecrets = 'p3 - container def';
|
||||||
const indexp1 = taskDefCloudFormation.search(insertionStringParameters) + insertionStringParameters.length + '\n'.length;
|
const indexp1 = taskDefCloudFormation.search(insertionStringParameters) + insertionStringParameters.length + '\n'.length;
|
||||||
const parameterTemplate = `
|
const parameterTemplate = `
|
||||||
${secret.ParameterKey}:
|
${secret.ParameterKey.replace(/[^\dA-Za-z]/g, '')}:
|
||||||
Type: String
|
Type: String
|
||||||
Default: ''
|
Default: ''
|
||||||
`;
|
`;
|
||||||
|
|
@ -1883,7 +1883,7 @@ class RemoteBuilder {
|
||||||
echo "Library cache exists from build $latest from ${branchName}"
|
echo "Library cache exists from build $latest from ${branchName}"
|
||||||
echo 'Creating empty Library folder for cache'
|
echo 'Creating empty Library folder for cache'
|
||||||
mkdir "$libDir"
|
mkdir "$libDir"
|
||||||
unzip -q $latest -d '/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.'
|
unzip -q $latest -o -d '/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.'
|
||||||
else
|
else
|
||||||
echo 'Cache does not exist'
|
echo 'Cache does not exist'
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -69,7 +69,7 @@ class AWSBuildEnvironment {
|
||||||
const indexp1 =
|
const indexp1 =
|
||||||
taskDefCloudFormation.search(insertionStringParameters) + insertionStringParameters.length + '\n'.length;
|
taskDefCloudFormation.search(insertionStringParameters) + insertionStringParameters.length + '\n'.length;
|
||||||
const parameterTemplate = `
|
const parameterTemplate = `
|
||||||
${secret.ParameterKey}:
|
${secret.ParameterKey.replace(/[^\dA-Za-z]/g, '')}:
|
||||||
Type: String
|
Type: String
|
||||||
Default: ''
|
Default: ''
|
||||||
`;
|
`;
|
||||||
|
|
|
||||||
|
|
@ -324,7 +324,7 @@ class RemoteBuilder {
|
||||||
echo "Library cache exists from build $latest from ${branchName}"
|
echo "Library cache exists from build $latest from ${branchName}"
|
||||||
echo 'Creating empty Library folder for cache'
|
echo 'Creating empty Library folder for cache'
|
||||||
mkdir "$libDir"
|
mkdir "$libDir"
|
||||||
unzip -q $latest -d '/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.'
|
unzip -q $latest -o -d '/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.'
|
||||||
else
|
else
|
||||||
echo 'Cache does not exist'
|
echo 'Cache does not exist'
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue