Log to google for GCP_LOGGING
							parent
							
								
									eee099835f
								
							
						
					
					
						commit
						7b1d4ed923
					
				|  | @ -108,7 +108,7 @@ jobs: | ||||||
|               - name: awsDefaultRegion |               - name: awsDefaultRegion | ||||||
|                 value: eu-west-2 |                 value: eu-west-2 | ||||||
|       - run: | |       - run: | | ||||||
|           aws s3 cp s3://game-ci-test-storage/${{ steps.aws-fargate-unity-build.outputs.BRANCH }}/${{ steps.aws-fargate-unity-build.outputs.BUILD_GUID }}.zip ${{ steps.aws-fargate-unity-build.outputs.BUILD_GUID }}.zip |           aws s3 cp s3://game-ci-test-storage/${{ steps.aws-fargate-unity-build.outputs.BRANCH }}/build-${{ steps.aws-fargate-unity-build.outputs.BUILD_GUID }}.zip build-${{ steps.aws-fargate-unity-build.outputs.BUILD_GUID }}.zip | ||||||
|           ls |           ls | ||||||
|       ########################### |       ########################### | ||||||
|       #          Upload         # |       #          Upload         # | ||||||
|  | @ -117,5 +117,5 @@ jobs: | ||||||
|       - uses: actions/upload-artifact@v2 |       - uses: actions/upload-artifact@v2 | ||||||
|         with: |         with: | ||||||
|           name: AWS Build (${{ matrix.targetPlatform }}) |           name: AWS Build (${{ matrix.targetPlatform }}) | ||||||
|           path: ${{ steps.aws-fargate-unity-build.outputs.BUILD_GUID }}.zip |           path: build-${{ steps.aws-fargate-unity-build.outputs.BUILD_GUID }}.zip | ||||||
|           retention-days: 14 |           retention-days: 14 | ||||||
|  |  | ||||||
|  | @ -2625,17 +2625,17 @@ class CloudRunnerLogger { | ||||||
|         if (process.env.INIT_HOOK === undefined || !__1.Input.cloudRunnerTests) { |         if (process.env.INIT_HOOK === undefined || !__1.Input.cloudRunnerTests) { | ||||||
|             return; |             return; | ||||||
|         } |         } | ||||||
|         CloudRunnerLogger.log(process.env.INIT_HOOK); |         CloudRunnerLogger.log(`STARTING INIT HOOK ${process.env.INIT_HOOK}`); | ||||||
|         child_process_1.exec(process.env.INIT_HOOK, (error, stdout, stderr) => { |         child_process_1.exec(process.env.INIT_HOOK, (error, stdout, stderr) => { | ||||||
|             if (error) { |             if (error) { | ||||||
|                 CloudRunnerLogger.error(JSON.stringify(error)); |                 CloudRunnerLogger.error(`[GCP-LOGGER][ERROR]${JSON.stringify(error)}`); | ||||||
|                 return; |                 return; | ||||||
|             } |             } | ||||||
|             if (stderr) { |             if (stderr) { | ||||||
|                 CloudRunnerLogger.logWarning(`[GCP-LOGGER]${stderr}`); |                 CloudRunnerLogger.logWarning(`[GCP-LOGGER][DIAGNOSTIC]${stderr}`); | ||||||
|                 return; |                 return; | ||||||
|             } |             } | ||||||
|             CloudRunnerLogger.log(stdout); |             CloudRunnerLogger.log(`[GCP-LOGGER]${stdout}`); | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -50,17 +50,17 @@ class CloudRunnerLogger { | ||||||
|     if (process.env.INIT_HOOK === undefined || !Input.cloudRunnerTests) { |     if (process.env.INIT_HOOK === undefined || !Input.cloudRunnerTests) { | ||||||
|       return; |       return; | ||||||
|     } |     } | ||||||
|     CloudRunnerLogger.log(process.env.INIT_HOOK); |     CloudRunnerLogger.log(`STARTING INIT HOOK ${process.env.INIT_HOOK}`); | ||||||
|     exec(process.env.INIT_HOOK, (error: any, stdout: string, stderr: any) => { |     exec(process.env.INIT_HOOK, (error: any, stdout: string, stderr: any) => { | ||||||
|       if (error) { |       if (error) { | ||||||
|         CloudRunnerLogger.error(JSON.stringify(error)); |         CloudRunnerLogger.error(`[GCP-LOGGER][ERROR]${JSON.stringify(error)}`); | ||||||
|         return; |         return; | ||||||
|       } |       } | ||||||
|       if (stderr) { |       if (stderr) { | ||||||
|         CloudRunnerLogger.logWarning(`[GCP-LOGGER]${stderr}`); |         CloudRunnerLogger.logWarning(`[GCP-LOGGER][DIAGNOSTIC]${stderr}`); | ||||||
|         return; |         return; | ||||||
|       } |       } | ||||||
|       CloudRunnerLogger.log(stdout); |       CloudRunnerLogger.log(`[GCP-LOGGER]${stdout}`); | ||||||
|     }); |     }); | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue