cleanup
parent
a9e7f80b57
commit
5b66d0069e
|
@ -4948,13 +4948,15 @@ const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(22855));
|
||||||
class CloudRunnerCustomSteps {
|
class CloudRunnerCustomSteps {
|
||||||
static GetCustomStepsFromFiles(hookLifecycle) {
|
static GetCustomStepsFromFiles(hookLifecycle) {
|
||||||
const results = [];
|
const results = [];
|
||||||
remote_client_logger_1.RemoteClientLogger.log(`GetCustomStepFiles: ${hookLifecycle} CustomStepFiles: ${cloud_runner_options_1.default.customStepFiles}`);
|
// RemoteClientLogger.log(
|
||||||
|
// `GetCustomStepFiles: ${hookLifecycle} CustomStepFiles: ${CloudRunnerOptions.customStepFiles}`,
|
||||||
|
// );
|
||||||
try {
|
try {
|
||||||
const gameCiCustomStepsPath = path_1.default.join(process.cwd(), `game-ci`, `steps`);
|
const gameCiCustomStepsPath = path_1.default.join(process.cwd(), `game-ci`, `steps`);
|
||||||
const files = fs.readdirSync(gameCiCustomStepsPath);
|
const files = fs.readdirSync(gameCiCustomStepsPath);
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
if (!cloud_runner_options_1.default.customStepFiles.includes(file.replace(`.yaml`, ``))) {
|
if (!cloud_runner_options_1.default.customStepFiles.includes(file.replace(`.yaml`, ``))) {
|
||||||
remote_client_logger_1.RemoteClientLogger.log(`Skipping CustomStepFile: ${file}`);
|
// RemoteClientLogger.log(`Skipping CustomStepFile: ${file}`);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const fileContents = fs.readFileSync(path_1.default.join(gameCiCustomStepsPath, file), `utf8`);
|
const fileContents = fs.readFileSync(path_1.default.join(gameCiCustomStepsPath, file), `utf8`);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -13,15 +13,16 @@ import { CustomStep } from './custom-step';
|
||||||
export class CloudRunnerCustomSteps {
|
export class CloudRunnerCustomSteps {
|
||||||
static GetCustomStepsFromFiles(hookLifecycle: string): CustomStep[] {
|
static GetCustomStepsFromFiles(hookLifecycle: string): CustomStep[] {
|
||||||
const results: CustomStep[] = [];
|
const results: CustomStep[] = [];
|
||||||
RemoteClientLogger.log(
|
|
||||||
`GetCustomStepFiles: ${hookLifecycle} CustomStepFiles: ${CloudRunnerOptions.customStepFiles}`,
|
// RemoteClientLogger.log(
|
||||||
);
|
// `GetCustomStepFiles: ${hookLifecycle} CustomStepFiles: ${CloudRunnerOptions.customStepFiles}`,
|
||||||
|
// );
|
||||||
try {
|
try {
|
||||||
const gameCiCustomStepsPath = path.join(process.cwd(), `game-ci`, `steps`);
|
const gameCiCustomStepsPath = path.join(process.cwd(), `game-ci`, `steps`);
|
||||||
const files = fs.readdirSync(gameCiCustomStepsPath);
|
const files = fs.readdirSync(gameCiCustomStepsPath);
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
if (!CloudRunnerOptions.customStepFiles.includes(file.replace(`.yaml`, ``))) {
|
if (!CloudRunnerOptions.customStepFiles.includes(file.replace(`.yaml`, ``))) {
|
||||||
RemoteClientLogger.log(`Skipping CustomStepFile: ${file}`);
|
// RemoteClientLogger.log(`Skipping CustomStepFile: ${file}`);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const fileContents = fs.readFileSync(path.join(gameCiCustomStepsPath, file), `utf8`);
|
const fileContents = fs.readFileSync(path.join(gameCiCustomStepsPath, file), `utf8`);
|
||||||
|
|
Loading…
Reference in New Issue