Copy build artifact correctly to s3
							parent
							
								
									0d598c2896
								
							
						
					
					
						commit
						583a6f0cef
					
				|  | @ -88,9 +88,9 @@ jobs: | ||||||
|                 aws configure set region $AWS_DEFAULT_REGION --profile default |                 aws configure set region $AWS_DEFAULT_REGION --profile default | ||||||
|                 aws s3 ls |                 aws s3 ls | ||||||
|                 aws s3 ls game-ci-test-storage |                 aws s3 ls game-ci-test-storage | ||||||
|                 ls /data/$BUILD_GUID/repo/$PROJECT_PATH/$BUILD_PATH/$BUILD_FILE |                 ls /data/cache/$BUILD_GUID/build-$BUILD_GUID.zip | ||||||
|                 echo "$PROJECT_PATH/$BUILD_PATH/$BUILD_FILE s3://game-ci-test-storage/$BUILD_PATH/$BUILD_FILE" |                 echo "/data/cache/$BUILD_GUID/build-$BUILD_GUID.zip s3://game-ci-test-storage/$BUILD_PATH/$BUILD_FILE" | ||||||
|                 aws s3 cp /data/$BUILD_GUID/repo/$PROJECT_PATH/$BUILD_PATH/$BUILD_FILE s3://game-ci-test-storage/$BUILD_PATH/$BUILD_FILE |                 aws s3 cp /data/cache/$BUILD_GUID/build-$BUILD_GUID.zip s3://game-ci-test-storage/$BUILD_PATH/$BUILD_FILE | ||||||
|               secrets: |               secrets: | ||||||
|               - name: awsAccessKeyId |               - name: awsAccessKeyId | ||||||
|                 value: ${{ secrets.AWS_ACCESS_KEY_ID }} |                 value: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||||||
|  |  | ||||||
|  | @ -2832,13 +2832,13 @@ class BuildStep { | ||||||
|         apt-get update |         apt-get update | ||||||
|         apt-get install -y -q zip |         apt-get install -y -q zip | ||||||
|         cd "${cloud_runner_state_1.CloudRunnerState.libraryFolderFull.replace(/\\/g, `/`)}/.." |         cd "${cloud_runner_state_1.CloudRunnerState.libraryFolderFull.replace(/\\/g, `/`)}/.." | ||||||
|         zip -r "lib-$BUILD_GUID.zip" "./Library" |         zip -r "lib-${cloud_runner_state_1.CloudRunnerState.buildParams.buildGuid}.zip" "./Library" | ||||||
|         mv "lib-$BUILD_GUID.zip" "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull.replace(/\\/g, `/`)}/lib" |         mv "lib-${cloud_runner_state_1.CloudRunnerState.buildParams.buildGuid}.zip" "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull.replace(/\\/g, `/`)}/lib" | ||||||
|         ls -lh "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull.replace(/\\/g, `/`)}/lib" |         ls -lh "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull.replace(/\\/g, `/`)}/lib" | ||||||
|         cd "${cloud_runner_state_1.CloudRunnerState.repoPathFull.replace(/\\/g, `/`)}" |         cd "${cloud_runner_state_1.CloudRunnerState.repoPathFull.replace(/\\/g, `/`)}" | ||||||
|         ls -lh "${cloud_runner_state_1.CloudRunnerState.repoPathFull.replace(/\\/g, `/`)}" |         ls -lh "${cloud_runner_state_1.CloudRunnerState.repoPathFull.replace(/\\/g, `/`)}" | ||||||
|         zip -r "build-$BUILD_GUID.zip" "./${cloud_runner_state_1.CloudRunnerState.buildParams.buildPath.replace(/\\/g, `/`)}" |         zip -r "build-${cloud_runner_state_1.CloudRunnerState.buildParams.buildGuid}.zip" "./${cloud_runner_state_1.CloudRunnerState.buildParams.buildPath.replace(/\\/g, `/`)}" | ||||||
|         mv "build-$BUILD_GUID.zip" "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull.replace(/\\/g, `/`)}/build-$BUILD_GUID.zip" |         mv "build-${cloud_runner_state_1.CloudRunnerState.buildParams.buildGuid}.zip" "${cloud_runner_state_1.CloudRunnerState.cacheFolderFull.replace(/\\/g, `/`)}/build-${cloud_runner_state_1.CloudRunnerState.buildParams.buildGuid}.zip" | ||||||
|         ls ${cloud_runner_state_1.CloudRunnerState.cacheFolderFull.replace(/\\/g, `/`)}/lib |         ls ${cloud_runner_state_1.CloudRunnerState.cacheFolderFull.replace(/\\/g, `/`)}/lib | ||||||
|         echo " " |         echo " " | ||||||
|         ls |         ls | ||||||
|  |  | ||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -40,13 +40,21 @@ export class BuildStep implements StepInterface { | ||||||
|         apt-get update |         apt-get update | ||||||
|         apt-get install -y -q zip |         apt-get install -y -q zip | ||||||
|         cd "${CloudRunnerState.libraryFolderFull.replace(/\\/g, `/`)}/.." |         cd "${CloudRunnerState.libraryFolderFull.replace(/\\/g, `/`)}/.." | ||||||
|         zip -r "lib-$BUILD_GUID.zip" "./Library" |         zip -r "lib-${CloudRunnerState.buildParams.buildGuid}.zip" "./Library" | ||||||
|         mv "lib-$BUILD_GUID.zip" "${CloudRunnerState.cacheFolderFull.replace(/\\/g, `/`)}/lib" |         mv "lib-${CloudRunnerState.buildParams.buildGuid}.zip" "${CloudRunnerState.cacheFolderFull.replace( | ||||||
|  |         /\\/g, | ||||||
|  |         `/`, | ||||||
|  |       )}/lib" | ||||||
|         ls -lh "${CloudRunnerState.cacheFolderFull.replace(/\\/g, `/`)}/lib" |         ls -lh "${CloudRunnerState.cacheFolderFull.replace(/\\/g, `/`)}/lib" | ||||||
|         cd "${CloudRunnerState.repoPathFull.replace(/\\/g, `/`)}" |         cd "${CloudRunnerState.repoPathFull.replace(/\\/g, `/`)}" | ||||||
|         ls -lh "${CloudRunnerState.repoPathFull.replace(/\\/g, `/`)}" |         ls -lh "${CloudRunnerState.repoPathFull.replace(/\\/g, `/`)}" | ||||||
|         zip -r "build-$BUILD_GUID.zip" "./${CloudRunnerState.buildParams.buildPath.replace(/\\/g, `/`)}" |         zip -r "build-${ | ||||||
|         mv "build-$BUILD_GUID.zip" "${CloudRunnerState.cacheFolderFull.replace(/\\/g, `/`)}/build-$BUILD_GUID.zip" |           CloudRunnerState.buildParams.buildGuid | ||||||
|  |         }.zip" "./${CloudRunnerState.buildParams.buildPath.replace(/\\/g, `/`)}" | ||||||
|  |         mv "build-${CloudRunnerState.buildParams.buildGuid}.zip" "${CloudRunnerState.cacheFolderFull.replace( | ||||||
|  |         /\\/g, | ||||||
|  |         `/`, | ||||||
|  |       )}/build-${CloudRunnerState.buildParams.buildGuid}.zip" | ||||||
|         ls ${CloudRunnerState.cacheFolderFull.replace(/\\/g, `/`)}/lib |         ls ${CloudRunnerState.cacheFolderFull.replace(/\\/g, `/`)}/lib | ||||||
|         echo " " |         echo " " | ||||||
|         ls |         ls | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue