Printenv and log messages with version hash improved
parent
3f9088309e
commit
13bc419728
|
|
@ -1058,7 +1058,7 @@ class AWSBuildEnvironment {
|
||||||
if (!stackExists) {
|
if (!stackExists) {
|
||||||
core.info('stack does not exist');
|
core.info('stack does not exist');
|
||||||
yield CF.createStack(createStackInput).promise();
|
yield CF.createStack(createStackInput).promise();
|
||||||
core.info('created stack');
|
core.info(`created stack (version: ${hash})`);
|
||||||
}
|
}
|
||||||
const CFState = yield describeStack();
|
const CFState = yield describeStack();
|
||||||
let stack = (_b = CFState.Stacks) === null || _b === void 0 ? void 0 : _b[0];
|
let stack = (_b = CFState.Stacks) === null || _b === void 0 ? void 0 : _b[0];
|
||||||
|
|
@ -1070,7 +1070,7 @@ class AWSBuildEnvironment {
|
||||||
yield CF.waitFor('stackCreateComplete', describeStackInput).promise();
|
yield CF.waitFor('stackCreateComplete', describeStackInput).promise();
|
||||||
}
|
}
|
||||||
if (stackExists) {
|
if (stackExists) {
|
||||||
core.info(`stack exists, stack version is ${stackVersion}, local version is ${hash}`);
|
core.info(`Base stack exists (version: ${stackVersion}, local version: ${hash})`);
|
||||||
if (hash !== stackVersion) {
|
if (hash !== stackVersion) {
|
||||||
core.info(`Updating`);
|
core.info(`Updating`);
|
||||||
yield CF.updateStack(updateInput).promise();
|
yield CF.updateStack(updateInput).promise();
|
||||||
|
|
@ -2206,7 +2206,9 @@ class RemoteBuilder {
|
||||||
const initializeSourceRepoForCaching = `${this.builderPathFull}/dist/remote-builder/cloneNoLFS.sh "${this.repoPathFull}" "${repo3}" "$GITHUB_SHA" "${testLFSFile}"`;
|
const initializeSourceRepoForCaching = `${this.builderPathFull}/dist/remote-builder/cloneNoLFS.sh "${this.repoPathFull}" "${repo3}" "$GITHUB_SHA" "${testLFSFile}"`;
|
||||||
const handleCaching = `${this.builderPathFull}/dist/remote-builder/handleCaching.sh "${cacheFolderFull}" "${branchName}" "${this.libraryFolderFull}" "${lfsDirectory}" "${purgeRemoteCache}"`;
|
const handleCaching = `${this.builderPathFull}/dist/remote-builder/handleCaching.sh "${cacheFolderFull}" "${branchName}" "${this.libraryFolderFull}" "${lfsDirectory}" "${purgeRemoteCache}"`;
|
||||||
yield this.RemoteBuilderProviderPlatform.runBuildTask(this.buildId, 'alpine/git', [
|
yield this.RemoteBuilderProviderPlatform.runBuildTask(this.buildId, 'alpine/git', [
|
||||||
` apk update -q
|
` printenv
|
||||||
|
#
|
||||||
|
apk update -q
|
||||||
apk add unzip zip git-lfs jq tree -q
|
apk add unzip zip git-lfs jq tree -q
|
||||||
#
|
#
|
||||||
mkdir -p ${this.buildPathFull}
|
mkdir -p ${this.buildPathFull}
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -267,7 +267,7 @@ class AWSBuildEnvironment implements RemoteBuilderProviderInterface {
|
||||||
if (!stackExists) {
|
if (!stackExists) {
|
||||||
core.info('stack does not exist');
|
core.info('stack does not exist');
|
||||||
await CF.createStack(createStackInput).promise();
|
await CF.createStack(createStackInput).promise();
|
||||||
core.info('created stack');
|
core.info(`created stack (version: ${hash})`);
|
||||||
}
|
}
|
||||||
const CFState = await describeStack();
|
const CFState = await describeStack();
|
||||||
let stack = CFState.Stacks?.[0];
|
let stack = CFState.Stacks?.[0];
|
||||||
|
|
@ -281,7 +281,7 @@ class AWSBuildEnvironment implements RemoteBuilderProviderInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stackExists) {
|
if (stackExists) {
|
||||||
core.info(`stack exists, stack version is ${stackVersion}, local version is ${hash}`);
|
core.info(`Base stack exists (version: ${stackVersion}, local version: ${hash})`);
|
||||||
if (hash !== stackVersion) {
|
if (hash !== stackVersion) {
|
||||||
core.info(`Updating`);
|
core.info(`Updating`);
|
||||||
await CF.updateStack(updateInput).promise();
|
await CF.updateStack(updateInput).promise();
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,9 @@ class RemoteBuilder {
|
||||||
this.buildId,
|
this.buildId,
|
||||||
'alpine/git',
|
'alpine/git',
|
||||||
[
|
[
|
||||||
` apk update -q
|
` printenv
|
||||||
|
#
|
||||||
|
apk update -q
|
||||||
apk add unzip zip git-lfs jq tree -q
|
apk add unzip zip git-lfs jq tree -q
|
||||||
#
|
#
|
||||||
mkdir -p ${this.buildPathFull}
|
mkdir -p ${this.buildPathFull}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue