async workflow test
parent
b09cf1f846
commit
4cc1fa72a2
|
|
@ -862,7 +862,7 @@ class CloudRunnerOptions {
|
|||
return CloudRunnerOptions.getInput(`cloudRunnerDebugEnv`) || false;
|
||||
}
|
||||
static get watchCloudRunnerToEnd() {
|
||||
return (CloudRunnerOptions.getInput(`watchToEnd`) || CloudRunnerOptions.asyncCloudRunner() || true) !== 'false';
|
||||
return (CloudRunnerOptions.getInput(`watchToEnd`) || CloudRunnerOptions.asyncCloudRunner || true) !== 'false';
|
||||
}
|
||||
static get asyncCloudRunner() {
|
||||
return CloudRunnerOptions.getInput('asyncCloudRunner') || false;
|
||||
|
|
@ -5736,7 +5736,7 @@ class BuildAutomationWorkflow {
|
|||
// TODO accept post and pre build steps as yaml files in the repo
|
||||
try {
|
||||
if (cloud_runner_options_1.default.githubChecksEnabled) {
|
||||
BuildAutomationWorkflow.githubCheckId = yield github_1.default.createGitHubCheck(cloud_runner_options_1.default.githubOwner, cloud_runner_options_1.default.githubRepoName, cloud_runner_1.default.buildParameters.gitPrivateToken, 'test-check-name', cloud_runner_1.default.buildParameters.gitSha, 'A check test', cloud_runner_1.default.buildParameters.buildGuid);
|
||||
BuildAutomationWorkflow.githubCheckId = yield github_1.default.createGitHubCheck(cloud_runner_options_1.default.githubOwner, cloud_runner_options_1.default.githubRepoName, cloud_runner_1.default.buildParameters.gitPrivateToken, `${BuildAutomationWorkflow.checkNamePrefix}-${cloud_runner_1.default.buildParameters.buildGuid}-${cloud_runner_1.default.buildParameters.targetPlatform}`, cloud_runner_1.default.buildParameters.gitSha, `${BuildAutomationWorkflow.checkNamePrefix}-${cloud_runner_1.default.buildParameters.buildGuid}-${cloud_runner_1.default.buildParameters.targetPlatform}`, cloud_runner_1.default.buildParameters.buildGuid);
|
||||
}
|
||||
cloud_runner_logger_1.default.log(`Cloud Runner is running standard build automation`);
|
||||
let output = '';
|
||||
|
|
@ -5755,13 +5755,13 @@ class BuildAutomationWorkflow {
|
|||
cloud_runner_logger_1.default.logWithTime('Configurable post build step(s) time');
|
||||
cloud_runner_logger_1.default.log(`Cloud Runner finished running standard build automation`);
|
||||
if (cloud_runner_options_1.default.githubChecksEnabled) {
|
||||
yield github_1.default.updateGitHubCheck(BuildAutomationWorkflow.githubCheckId, cloud_runner_options_1.default.githubOwner, cloud_runner_options_1.default.githubRepoName, cloud_runner_1.default.buildParameters.gitPrivateToken, 'test-check-name', cloud_runner_1.default.buildParameters.gitSha, 'A check test', cloud_runner_1.default.buildParameters.buildGuid, '');
|
||||
yield github_1.default.updateGitHubCheck(BuildAutomationWorkflow.githubCheckId, cloud_runner_options_1.default.githubOwner, cloud_runner_options_1.default.githubRepoName, cloud_runner_1.default.buildParameters.gitPrivateToken, `${BuildAutomationWorkflow.checkNamePrefix}-${cloud_runner_1.default.buildParameters.buildGuid}-${cloud_runner_1.default.buildParameters.targetPlatform}`, cloud_runner_1.default.buildParameters.gitSha, `${BuildAutomationWorkflow.checkNamePrefix}-${cloud_runner_1.default.buildParameters.buildGuid}-${cloud_runner_1.default.buildParameters.targetPlatform}`, cloud_runner_1.default.buildParameters.buildGuid, '');
|
||||
}
|
||||
return output;
|
||||
}
|
||||
catch (error) {
|
||||
if (cloud_runner_options_1.default.githubChecksEnabled) {
|
||||
yield github_1.default.updateGitHubCheck(BuildAutomationWorkflow.githubCheckId, cloud_runner_options_1.default.githubOwner, cloud_runner_options_1.default.githubRepoName, cloud_runner_1.default.buildParameters.gitPrivateToken, 'test-check-name', cloud_runner_1.default.buildParameters.gitSha, 'A check test', cloud_runner_1.default.buildParameters.buildGuid, '');
|
||||
yield github_1.default.updateGitHubCheck(BuildAutomationWorkflow.githubCheckId, cloud_runner_options_1.default.githubOwner, cloud_runner_options_1.default.githubRepoName, cloud_runner_1.default.buildParameters.gitPrivateToken, `${BuildAutomationWorkflow.checkNamePrefix}-${cloud_runner_1.default.buildParameters.buildGuid}-${cloud_runner_1.default.buildParameters.targetPlatform}`, cloud_runner_1.default.buildParameters.gitSha, `${BuildAutomationWorkflow.checkNamePrefix}-${cloud_runner_1.default.buildParameters.buildGuid}-${cloud_runner_1.default.buildParameters.targetPlatform}`, cloud_runner_1.default.buildParameters.buildGuid, error);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
|
|
@ -5823,6 +5823,7 @@ class BuildAutomationWorkflow {
|
|||
}
|
||||
}
|
||||
exports.BuildAutomationWorkflow = BuildAutomationWorkflow;
|
||||
BuildAutomationWorkflow.checkNamePrefix = `Cloud-Runner`;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -235,7 +235,7 @@ class CloudRunnerOptions {
|
|||
}
|
||||
|
||||
static get watchCloudRunnerToEnd(): boolean {
|
||||
return (CloudRunnerOptions.getInput(`watchToEnd`) || CloudRunnerOptions.asyncCloudRunner() || true) !== 'false';
|
||||
return (CloudRunnerOptions.getInput(`watchToEnd`) || CloudRunnerOptions.asyncCloudRunner || true) !== 'false';
|
||||
}
|
||||
|
||||
static get asyncCloudRunner() {
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ import GitHub from '../../github';
|
|||
|
||||
export class BuildAutomationWorkflow implements WorkflowInterface {
|
||||
static githubCheckId;
|
||||
static readonly checkNamePrefix = `Cloud-Runner`;
|
||||
async run(cloudRunnerStepState: CloudRunnerStepState) {
|
||||
try {
|
||||
return await BuildAutomationWorkflow.standardBuildAutomation(cloudRunnerStepState.image, cloudRunnerStepState);
|
||||
|
|
@ -28,9 +29,9 @@ export class BuildAutomationWorkflow implements WorkflowInterface {
|
|||
CloudRunnerOptions.githubOwner,
|
||||
CloudRunnerOptions.githubRepoName,
|
||||
CloudRunner.buildParameters.gitPrivateToken,
|
||||
'test-check-name',
|
||||
`${BuildAutomationWorkflow.checkNamePrefix}-${CloudRunner.buildParameters.buildGuid}-${CloudRunner.buildParameters.targetPlatform}`,
|
||||
CloudRunner.buildParameters.gitSha,
|
||||
'A check test',
|
||||
`${BuildAutomationWorkflow.checkNamePrefix}-${CloudRunner.buildParameters.buildGuid}-${CloudRunner.buildParameters.targetPlatform}`,
|
||||
CloudRunner.buildParameters.buildGuid,
|
||||
);
|
||||
}
|
||||
|
|
@ -68,9 +69,9 @@ export class BuildAutomationWorkflow implements WorkflowInterface {
|
|||
CloudRunnerOptions.githubOwner,
|
||||
CloudRunnerOptions.githubRepoName,
|
||||
CloudRunner.buildParameters.gitPrivateToken,
|
||||
'test-check-name',
|
||||
`${BuildAutomationWorkflow.checkNamePrefix}-${CloudRunner.buildParameters.buildGuid}-${CloudRunner.buildParameters.targetPlatform}`,
|
||||
CloudRunner.buildParameters.gitSha,
|
||||
'A check test',
|
||||
`${BuildAutomationWorkflow.checkNamePrefix}-${CloudRunner.buildParameters.buildGuid}-${CloudRunner.buildParameters.targetPlatform}`,
|
||||
CloudRunner.buildParameters.buildGuid,
|
||||
'',
|
||||
);
|
||||
|
|
@ -84,11 +85,11 @@ export class BuildAutomationWorkflow implements WorkflowInterface {
|
|||
CloudRunnerOptions.githubOwner,
|
||||
CloudRunnerOptions.githubRepoName,
|
||||
CloudRunner.buildParameters.gitPrivateToken,
|
||||
'test-check-name',
|
||||
`${BuildAutomationWorkflow.checkNamePrefix}-${CloudRunner.buildParameters.buildGuid}-${CloudRunner.buildParameters.targetPlatform}`,
|
||||
CloudRunner.buildParameters.gitSha,
|
||||
'A check test',
|
||||
`${BuildAutomationWorkflow.checkNamePrefix}-${CloudRunner.buildParameters.buildGuid}-${CloudRunner.buildParameters.targetPlatform}`,
|
||||
CloudRunner.buildParameters.buildGuid,
|
||||
'',
|
||||
error,
|
||||
);
|
||||
}
|
||||
throw error;
|
||||
|
|
|
|||
Loading…
Reference in New Issue