Define AWSI automation tests pipe for Jenkins (#6518)
* Define AWSI automation tests pipe for Jenkins Signed-off-by: Junbo Liang <68558268+junbo75@users.noreply.github.com>
This commit is contained in:
@@ -132,6 +132,35 @@
|
||||
"ASSET_PROCESSOR_PLATFORMS": "linux,server"
|
||||
}
|
||||
},
|
||||
"awsi_test_profile_pipe": {
|
||||
"TAGS": [
|
||||
"nightly-incremental",
|
||||
"nightly-clean"
|
||||
],
|
||||
"steps": [
|
||||
"awsi_deployment",
|
||||
"awsi_test_profile",
|
||||
"awsi_destruction"
|
||||
]
|
||||
},
|
||||
"awsi_test_profile": {
|
||||
"TAGS": [
|
||||
"weekly-build-metrics"
|
||||
],
|
||||
"PIPELINE_ENV": {
|
||||
"NONBLOCKING_STEP": "True"
|
||||
},
|
||||
"COMMAND": "build_test_linux.sh",
|
||||
"PARAMETERS": {
|
||||
"CONFIGURATION": "profile",
|
||||
"OUTPUT_DIRECTORY": "build\\linux",
|
||||
"CMAKE_OPTIONS": "-G 'Ninja Multi-Config' -DLY_PARALLEL_LINK_JOBS=4",
|
||||
"CMAKE_LY_PROJECTS": "AutomatedTesting",
|
||||
"CMAKE_TARGET": "TEST_SUITE_awsi",
|
||||
"CTEST_OPTIONS": "-L \"(SUITE_awsi)\" --no-tests=error",
|
||||
"TEST_RESULTS": "True"
|
||||
}
|
||||
},
|
||||
"periodic_test_profile": {
|
||||
"TAGS": [
|
||||
"nightly-incremental",
|
||||
@@ -275,5 +304,25 @@
|
||||
"CMAKE_OPTIONS": "-G 'Ninja Multi-Config' -DLY_PARALLEL_LINK_JOBS=4 -DCMAKE_MODULE_PATH=${WORKSPACE}/o3de/install/cmake",
|
||||
"CMAKE_TARGET": "all"
|
||||
}
|
||||
},
|
||||
"awsi_deployment": {
|
||||
"TAGS": [],
|
||||
"PIPELINE_ENV": {
|
||||
"NONBLOCKING_STEP": "True"
|
||||
},
|
||||
"COMMAND": "deploy_cdk_applications.sh",
|
||||
"PARAMETERS": {
|
||||
"NVM_VERSION": "v0.39.1"
|
||||
}
|
||||
},
|
||||
"awsi_destruction": {
|
||||
"TAGS": [],
|
||||
"PIPELINE_ENV": {
|
||||
"NONBLOCKING_STEP": "True"
|
||||
},
|
||||
"COMMAND": "destroy_cdk_applications.sh",
|
||||
"PARAMETERS": {
|
||||
"NVM_VERSION": "v0.39.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,6 +61,14 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo [cdk_installation] Install nvm $NVM_VERSION
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$NVM_VERSION/install.sh | bash
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
echo [cdk_installation] Install the current version of nodejs
|
||||
nvm install node
|
||||
|
||||
echo [cdk_installation] Install the latest version of CDK
|
||||
if ! sudo npm uninstall -g aws-cdk;
|
||||
then
|
||||
|
||||
@@ -61,6 +61,14 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo [cdk_installation] Install nvm $NVM_VERSION
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$NVM_VERSION/install.sh | bash
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
echo [cdk_installation] Install the current version of nodejs
|
||||
nvm install node
|
||||
|
||||
echo [cdk_installation] Install the latest version of CDK
|
||||
if ! sudo npm uninstall -g aws-cdk;
|
||||
then
|
||||
|
||||
@@ -16,5 +16,67 @@
|
||||
"nightly-clean": {
|
||||
"CLEAN_WORKSPACE": true
|
||||
}
|
||||
},
|
||||
"PIPELINE_JENKINS_PARAMETERS": {
|
||||
"nightly-incremental": [
|
||||
{
|
||||
"parameter_name": "O3DE_AWS_PROJECT_NAME",
|
||||
"parameter_type": "string",
|
||||
"default_value": "",
|
||||
"use_last_run_value": true,
|
||||
"description": "The name of the O3DE project that stacks should be deployed for."
|
||||
},
|
||||
{
|
||||
"parameter_name": "O3DE_AWS_DEPLOY_REGION",
|
||||
"parameter_type": "string",
|
||||
"default_value": "",
|
||||
"use_last_run_value": true,
|
||||
"description": "The region to deploy the stacks into."
|
||||
},
|
||||
{
|
||||
"parameter_name": "ASSUME_ROLE_ARN",
|
||||
"parameter_type": "string",
|
||||
"default_value": "",
|
||||
"use_last_run_value": true,
|
||||
"description": "The ARN of the IAM role to assume to retrieve temporary AWS credentials."
|
||||
},
|
||||
{
|
||||
"parameter_name": "COMMIT_ID",
|
||||
"parameter_type": "string",
|
||||
"default_value": "",
|
||||
"use_last_run_value": true,
|
||||
"description": "The commit ID for locking the version of CDK applications to deploy."
|
||||
}
|
||||
],
|
||||
"nightly-clean": [
|
||||
{
|
||||
"parameter_name": "O3DE_AWS_PROJECT_NAME",
|
||||
"parameter_type": "string",
|
||||
"default_value": "",
|
||||
"use_last_run_value": true,
|
||||
"description": "The name of the O3DE project that stacks should be deployed for."
|
||||
},
|
||||
{
|
||||
"parameter_name": "O3DE_AWS_DEPLOY_REGION",
|
||||
"parameter_type": "string",
|
||||
"default_value": "",
|
||||
"use_last_run_value": true,
|
||||
"description": "The region to deploy the stacks into."
|
||||
},
|
||||
{
|
||||
"parameter_name": "ASSUME_ROLE_ARN",
|
||||
"parameter_type": "string",
|
||||
"default_value": "",
|
||||
"use_last_run_value": true,
|
||||
"description": "The ARN of the IAM role to assume to retrieve temporary AWS credentials."
|
||||
},
|
||||
{
|
||||
"parameter_name": "COMMIT_ID",
|
||||
"parameter_type": "string",
|
||||
"default_value": "",
|
||||
"use_last_run_value": true,
|
||||
"description": "The commit ID for locking the version of CDK applications to deploy."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user