Add overall timeout for the AR pipeline #7261

monroegm-disable-blank-issue-2
Brian Herrera 4 years ago committed by GitHub
commit 31f39930af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -12,6 +12,9 @@ INCREMENTAL_BUILD_SCRIPT_PATH = 'scripts/build/bootstrap/incremental_build_util.
EBS_SNAPSHOT_SCRIPT_PATH = 'scripts/build/tools/ebs_snapshot.py' EBS_SNAPSHOT_SCRIPT_PATH = 'scripts/build/tools/ebs_snapshot.py'
PIPELINE_RETRY_ATTEMPTS = 3 PIPELINE_RETRY_ATTEMPTS = 3
// Number of minutes of inactivity in all stages of the pipeline to reach the timeout
PIPELINE_TIMEOUT = 60
EMPTY_JSON = readJSON text: '{}' EMPTY_JSON = readJSON text: '{}'
ENGINE_REPOSITORY_NAME = 'o3de' ENGINE_REPOSITORY_NAME = 'o3de'
@ -753,6 +756,7 @@ def pipelineConfig = {}
// Start Pipeline // Start Pipeline
try { try {
timeout(time: PIPELINE_TIMEOUT, unit: 'MINUTES', activity: true) {
stage('Setup Pipeline') { stage('Setup Pipeline') {
node('controller') { node('controller') {
def envVarList = [] def envVarList = []
@ -892,6 +896,7 @@ try {
currentBuild.result = 'NOT_BUILT' currentBuild.result = 'NOT_BUILT'
} }
} }
}
catch(Exception e) { catch(Exception e) {
error "Exception: ${e}" error "Exception: ${e}"
} }

Loading…
Cancel
Save