Custom step file support

pull/437/head
Frostebite 2022-10-08 03:54:08 +01:00
parent 80d9f51457
commit cd99058428
3 changed files with 5 additions and 5 deletions

6
dist/index.js vendored
View File

@ -5363,8 +5363,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.CustomWorkflow = void 0;
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(22855));
const cloud_runner_folders_1 = __nccwpck_require__(13527);
const __1 = __nccwpck_require__(41359);
const cloud_runner_custom_steps_1 = __nccwpck_require__(96455);
const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
class CustomWorkflow {
static runCustomJobFromString(buildSteps, environmentVariables, secrets) {
return __awaiter(this, void 0, void 0, function* () {
@ -5378,10 +5378,10 @@ class CustomWorkflow {
cloud_runner_logger_1.default.log(`Cloud Runner is running in custom job mode`);
let output = '';
for (const step of buildSteps) {
if ((_a = __1.CloudRunner.buildParameters) === null || _a === void 0 ? void 0 : _a.cloudRunnerIntegrationTests) {
if ((_a = cloud_runner_1.default.buildParameters) === null || _a === void 0 ? void 0 : _a.cloudRunnerIntegrationTests) {
cloud_runner_logger_1.default.log(`Custom Job Description \n ${JSON.stringify(step, undefined, 4)}`);
}
output += yield __1.CloudRunner.Provider.runTask(__1.CloudRunner.buildParameters.buildGuid, step['image'], step['commands'], `/${cloud_runner_folders_1.CloudRunnerFolders.buildVolumeFolder}`, `/${cloud_runner_folders_1.CloudRunnerFolders.projectPathAbsolute}/`, environmentVariables, [...secrets, ...step.secrets]);
output += yield cloud_runner_1.default.Provider.runTask(cloud_runner_1.default.buildParameters.buildGuid, step['image'], step['commands'], `/${cloud_runner_folders_1.CloudRunnerFolders.buildVolumeFolder}`, `/${cloud_runner_folders_1.CloudRunnerFolders.projectPathAbsolute}/`, environmentVariables, [...secrets, ...step.secrets]);
}
return output;
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -1,9 +1,9 @@
import CloudRunnerLogger from '../services/cloud-runner-logger';
import CloudRunnerSecret from '../services/cloud-runner-secret';
import { CloudRunnerFolders } from '../services/cloud-runner-folders';
import { CloudRunner } from '../..';
import CloudRunnerEnvironmentVariable from '../services/cloud-runner-environment-variable';
import { CloudRunnerCustomSteps, CustomStep } from '../services/cloud-runner-custom-steps';
import CloudRunner from '../cloud-runner';
export class CustomWorkflow {
public static async runCustomJobFromString(