pull/310/head
Frostebite 2021-12-30 15:59:09 +00:00
parent c034178f8c
commit 1e18070672
5 changed files with 246 additions and 45 deletions

View File

@ -0,0 +1,222 @@
[Cloud-Runner-System] ---
[Cloud-Runner-System] start
[Cloud-Runner-System] UNITY_LICENSE=undefined
[Cloud-Runner-System] SSH_AGENT=
[Cloud-Runner-System] GITHUB_TOKEN=
[Cloud-Runner-System] KUBE_CONFIG=
[Cloud-Runner-System] UNITY_EMAIL=undefined
[Cloud-Runner-System] LOG_ID=ydsicc0ov
[Cloud-Runner-System] KUBERNETES_PORT=tcp://10.23.128.1:443
[Cloud-Runner-System] KUBERNETES_SERVICE_PORT=443
[Cloud-Runner-System] GIT_SHA=undefined
[Cloud-Runner-System] BUILD_VERSION=none
[Cloud-Runner-System] ANDROID_VERSION_CODE=0
[Cloud-Runner-System] USYM_UPLOAD_AUTH_TOKEN=undefined
[Cloud-Runner-System] CLOUD_RUNNER_CPU=1.0
[Cloud-Runner-System] GITHUB_REPO=[object Promise]
[Cloud-Runner-System] RUN_NUMBER=0
[Cloud-Runner-System] HOSTNAME=unity-builder-job-0-windows64-6edn-mcm6v
[Cloud-Runner-System] BRANCH=remote-builder/unified-providers
[Cloud-Runner-System] CLOUD_RUNNER_CLUSTER=k8s
[Cloud-Runner-System] SHLVL=1
[Cloud-Runner-System] branch=remote-builder/unified-providers
[Cloud-Runner-System] HOME=/root
[Cloud-Runner-System] GITHUB_EVENT_PATH=undefined
[Cloud-Runner-System] RUNNER_TEMP=undefined
[Cloud-Runner-System] CUSTOM_IMAGE=false
[Cloud-Runner-System] REGION=eu-west-2
[Cloud-Runner-System] buildPathFull=\data\0-windows64-6edn
[Cloud-Runner-System] ANDROID_KEYSTORE_NAME=
[Cloud-Runner-System] GITHUB_HEAD_REF=undefined
[Cloud-Runner-System] AWS_BASE_STACK_NAME=game-ci-3-test
[Cloud-Runner-System] CLOUD_RUNNER_MEMORY=750M
[Cloud-Runner-System] UNITY_SERIAL=undefined
[Cloud-Runner-System] PRE_BUILD_STEPS=
[Cloud-Runner-System] TARGET_PLATFORM=StandaloneWindows64
[Cloud-Runner-System] ANDROID_SDK_MANAGER_PARAMETERS=
[Cloud-Runner-System] SPECIFIED_VERSION=
[Cloud-Runner-System] RUNNER_TEMP_PATH=undefined
[Cloud-Runner-System] BUILD_FILE=StandaloneWindows64.exe
[Cloud-Runner-System] BUILD_NAME=StandaloneWindows64
[Cloud-Runner-System] ANDROID_KEYALIAS_NAME=
[Cloud-Runner-System] KUBE_VOLUME_SIZE=5Gi
[Cloud-Runner-System] VERSION=none
[Cloud-Runner-System] RUNNER_OS=undefined
[Cloud-Runner-System] GITHUB_WORKFLOW=undefined
[Cloud-Runner-System] LOG_TO_FILE=true
[Cloud-Runner-System] NAME=Input
[Cloud-Runner-System] PROTOTYPE=[object Object]
[Cloud-Runner-System] CLOUD_RUNNER_TESTS=true
[Cloud-Runner-System] BUILD_METHOD=
[Cloud-Runner-System] CUSTOM_PARAMETERS=
[Cloud-Runner-System] steamPathFull=\data\0-windows64-6edn\steam
[Cloud-Runner-System] GITHUB_BASE_REF=undefined
[Cloud-Runner-System] KUBERNETES_PORT_443_TCP_ADDR=10.23.128.1
[Cloud-Runner-System] buildParameters={"version":"2019.2.11f1","customImage":false,"platform":"StandaloneWindows64","projectPath":"test-project","buildName":"StandaloneWindows64","buildPath":"build/StandaloneWindows64","buildFile":"StandaloneWindows64.exe","buildMethod":"","buildVersion":"none","androidVersionCode":0,"androidKeystoreName":"","androidKeystoreBase64":"","androidKeystorePass":"","androidKeyaliasName":"","androidKeyaliasPass":"","androidTargetSdkVersion":"","androidSdkManagerParameters":"","customParameters":"","sshAgent":"","gitPrivateToken":"","chownFilesTo":"","cloudRunnerCluster":"k8s","awsBaseStackName":"game-ci-3-test","kubeConfig":"","githubToken":"","cloudRunnerMemory":"750M","cloudRunnerCpu":"1.0","kubeVolumeSize":"5Gi","kubeVolume":"","postBuildSteps":"","preBuildSteps":"","customJob":"\n - name: 'step 1'\n image: 'alpine'\n commands: ['printenv']\n secrets:\n - name: 'testSecretName'\n value: 'testSecretValue'\n ","runNumber":"0","branch":"remote-builder/unified-providers","githubRepo":{},"logToFile":true,"remoteBuildCluster":"k8s","awsStackName":"game-ci-3-test","logId":"ydsicc0ov"}
[Cloud-Runner-System] repoPathFull=\data\0-windows64-6edn\repo
[Cloud-Runner-System] PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[Cloud-Runner-System] RUNNER_TOOL_CACHE=undefined
[Cloud-Runner-System] GIT_PRIVATE_TOKEN=
[Cloud-Runner-System] libraryFolderFull=\data\0-windows64-6edn\repo\test-project\Library
[Cloud-Runner-System] PLATFORM=StandaloneWindows64
[Cloud-Runner-System] GITHUB_ACTION=undefined
[Cloud-Runner-System] AWS_STACK_NAME=game-ci-3-test
[Cloud-Runner-System] KUBERNETES_PORT_443_TCP_PORT=443
[Cloud-Runner-System] VERSIONING_STRATEGY=None
[Cloud-Runner-System] ContainerMemory=750M
[Cloud-Runner-System] KUBERNETES_PORT_443_TCP_PROTO=tcp
[Cloud-Runner-System] BUILD_TARGET=StandaloneWindows64
[Cloud-Runner-System] GITHUB_REPOSITORY=undefined
[Cloud-Runner-System] BUILD_PATH=build/StandaloneWindows64
[Cloud-Runner-System] PROJECT_PATH=test-project
[Cloud-Runner-System] testSecretName=testSecretValue
[Cloud-Runner-System] ANDROID_TARGET_SDK_VERSION=
[Cloud-Runner-System] POST_BUILD_STEPS=
[Cloud-Runner-System] CLI_OPTIONS=[object Object]
[Cloud-Runner-System] CUSTOM_JOB=
[Cloud-Runner-System] - name: 'step 1'
[Cloud-Runner-System] image: 'alpine'
[Cloud-Runner-System] commands: ['printenv']
[Cloud-Runner-System] secrets:
[Cloud-Runner-System] - name: 'testSecretName'
[Cloud-Runner-System] value: 'testSecretValue'
[Cloud-Runner-System]
[Cloud-Runner-System] LENGTH=0
[Cloud-Runner-System] GITHUB_ENABLED=false
[Cloud-Runner-System] GITHUB_WORKSPACE=/github/workspace
[Cloud-Runner-System] REMOTE_BUILD_CLUSTER=k8s
[Cloud-Runner-System] builderPathFull=\data\0-windows64-6edn\builder
[Cloud-Runner-System] GITHUB_SHA=undefined
[Cloud-Runner-System] GITHUB_ACTOR=undefined
[Cloud-Runner-System] ANDROID_APP_BUNDLE=false
[Cloud-Runner-System] GITHUB_REF=undefined
[Cloud-Runner-System] BUILDS_PATH=build
[Cloud-Runner-System] KUBERNETES_SERVICE_PORT_HTTPS=443
[Cloud-Runner-System] KUBERNETES_PORT_443_TCP=tcp://10.23.128.1:443
[Cloud-Runner-System] ANDROID_KEYSTORE_PASS=
[Cloud-Runner-System] UNITY_LICENSE_FILE=undefined
[Cloud-Runner-System] ANDROID_KEYSTORE_BASE64=
[Cloud-Runner-System] RUNNER_WORKSPACE=undefined
[Cloud-Runner-System] KUBERNETES_SERVICE_HOST=10.23.128.1
[Cloud-Runner-System] PWD=/\data
[Cloud-Runner-System] GITHUB_EVENT_NAME=undefined
[Cloud-Runner-System] CHOWN_FILES_TO=
[Cloud-Runner-System] UNITY_PASSWORD=undefined
[Cloud-Runner-System] KUBE_VOLUME=
[Cloud-Runner-System] UNITY_VERSION=2019.2.11f1
[Cloud-Runner-System] ANDROID_KEYALIAS_PASS=
[Cloud-Runner-System] projectPathFull=\data\0-windows64-6edn\repo\test-project
[Cloud-Runner-System] ContainerCpu=1.0
[Cloud-Runner-System] ALLOW_DIRTY_BUILD=false
[Cloud-Runner-System] end--ydsicc0ov

31
dist/index.js vendored
View File

@ -2548,11 +2548,7 @@ class TaskParameterSerializer {
// value: `${CloudRunnerState.buildParams[element]}`,
//},
{
name: element
.replace(/([A-Z])/g, ' $1')
.trim()
.toUpperCase()
.replace(/ /g, '_'),
name: __1.Input.ToEnvVarFormat(element),
value: `${cloud_runner_state_1.CloudRunnerState.buildParams[element]}`,
});
}
@ -2572,11 +2568,7 @@ class TaskParameterSerializer {
// value: `${Input[element]}`,
//},
{
name: element
.replace(/([A-Z])/g, ' $1')
.trim()
.toUpperCase()
.replace(/ /g, '_'),
name: __1.Input.ToEnvVarFormat(element),
value: `${__1.Input[element]}`,
});
}
@ -3573,16 +3565,8 @@ class Input {
? Input.cliOptions[query]
: process.env[query] !== undefined
? process.env[query]
: process.env[query
.replace(/([A-Z])/g, ' $1')
.trim()
.toUpperCase()
.replace(/ /g, '_')] !== undefined
? process.env[query
.replace(/([A-Z])/g, ' $1')
.trim()
.toUpperCase()
.replace(/ /g, '_')]
: process.env[Input.ToEnvVarFormat(query)]
? process.env[Input.ToEnvVarFormat(query)]
: false;
}
static get region() {
@ -3734,6 +3718,13 @@ class Input {
static get kubeVolume() {
return Input.getInput('kubeVolume') || '';
}
static ToEnvVarFormat(input) {
return input
.replace(/([A-Z])/g, ' $1')
.trim()
.toUpperCase()
.replace(/ /g, '_');
}
}
Input.githubEnabled = true;
exports.default = Input;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -42,11 +42,7 @@ export class TaskParameterSerializer {
// value: `${CloudRunnerState.buildParams[element]}`,
//},
{
name: element
.replace(/([A-Z])/g, ' $1')
.trim()
.toUpperCase()
.replace(/ /g, '_'),
name: Input.ToEnvVarFormat(element),
value: `${CloudRunnerState.buildParams[element]}`,
},
);
@ -71,11 +67,7 @@ export class TaskParameterSerializer {
// value: `${Input[element]}`,
//},
{
name: element
.replace(/([A-Z])/g, ' $1')
.trim()
.toUpperCase()
.replace(/ /g, '_'),
name: Input.ToEnvVarFormat(element),
value: `${Input[element]}`,
},
);

View File

@ -22,20 +22,8 @@ class Input {
? Input.cliOptions[query]
: process.env[query] !== undefined
? process.env[query]
: process.env[
query
.replace(/([A-Z])/g, ' $1')
.trim()
.toUpperCase()
.replace(/ /g, '_')
] !== undefined
? process.env[
query
.replace(/([A-Z])/g, ' $1')
.trim()
.toUpperCase()
.replace(/ /g, '_')
]
: process.env[Input.ToEnvVarFormat(query)]
? process.env[Input.ToEnvVarFormat(query)]
: false;
}
static get region(): string {
@ -212,6 +200,14 @@ class Input {
static get kubeVolume() {
return Input.getInput('kubeVolume') || '';
}
public static ToEnvVarFormat(input: string) {
return input
.replace(/([A-Z])/g, ' $1')
.trim()
.toUpperCase()
.replace(/ /g, '_');
}
}
export default Input;