cleanup
parent
2b317da7f3
commit
958ce4dcd2
|
|
@ -2419,6 +2419,7 @@ exports.CloudRunnerBuildCommandProcessor = void 0;
|
|||
class CloudRunnerBuildCommandProcessor {
|
||||
static ProcessCommands(commands, buildParameters) {
|
||||
return `echo "---"
|
||||
printenv
|
||||
echo "start"
|
||||
${commands}
|
||||
echo "end---${buildParameters.logId}"
|
||||
|
|
@ -2545,6 +2546,7 @@ exports.TaskParameterSerializer = void 0;
|
|||
const __1 = __webpack_require__(41359);
|
||||
const image_environment_factory_1 = __importDefault(__webpack_require__(25145));
|
||||
const cloud_runner_state_1 = __webpack_require__(70912);
|
||||
const cloud_runner_logger_1 = __importDefault(__webpack_require__(22855));
|
||||
class TaskParameterSerializer {
|
||||
static readBuildEnvironmentVariables() {
|
||||
TaskParameterSerializer.setupDefaultSecrets();
|
||||
|
|
@ -2574,6 +2576,7 @@ class TaskParameterSerializer {
|
|||
x.value = `${x.value}`;
|
||||
return x;
|
||||
});
|
||||
cloud_runner_logger_1.default.log(JSON.stringify(array, undefined, 4));
|
||||
return array;
|
||||
}
|
||||
static readBuildParameters(array) {
|
||||
|
|
@ -3472,7 +3475,7 @@ class Input {
|
|||
}
|
||||
static getInput(query) {
|
||||
const coreInput = core.getInput(query);
|
||||
return coreInput
|
||||
return coreInput && coreInput !== ''
|
||||
? coreInput
|
||||
: Input.cliOptions !== undefined && Input.cliOptions[query] !== undefined
|
||||
? Input.cliOptions[query]
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -3,6 +3,7 @@ import { BuildParameters } from '../..';
|
|||
export class CloudRunnerBuildCommandProcessor {
|
||||
public static ProcessCommands(commands: string, buildParameters: BuildParameters): string {
|
||||
return `echo "---"
|
||||
printenv
|
||||
echo "start"
|
||||
${commands}
|
||||
echo "end---${buildParameters.logId}"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import { Input } from '../..';
|
|||
import ImageEnvironmentFactory from '../../image-environment-factory';
|
||||
import CloudRunnerEnvironmentVariable from './cloud-runner-environment-variable';
|
||||
import { CloudRunnerState } from '../state/cloud-runner-state';
|
||||
import CloudRunnerLogger from './cloud-runner-logger';
|
||||
|
||||
export class TaskParameterSerializer {
|
||||
public static readBuildEnvironmentVariables(): CloudRunnerEnvironmentVariable[] {
|
||||
|
|
@ -35,6 +36,7 @@ export class TaskParameterSerializer {
|
|||
x.value = `${x.value}`;
|
||||
return x;
|
||||
});
|
||||
CloudRunnerLogger.log(JSON.stringify(array, undefined, 4));
|
||||
return array;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ class Input {
|
|||
}
|
||||
private static getInput(query) {
|
||||
const coreInput = core.getInput(query);
|
||||
return coreInput
|
||||
return coreInput && coreInput !== ''
|
||||
? coreInput
|
||||
: Input.cliOptions !== undefined && Input.cliOptions[query] !== undefined
|
||||
? Input.cliOptions[query]
|
||||
|
|
|
|||
Loading…
Reference in New Issue