Add file exists conditional for ebs_snapshot stash command (#7178)
Signed-off-by: Mike Chang <changml@amazon.com>
This commit is contained in:
Vendored
+3
-1
@@ -845,8 +845,10 @@ try {
|
||||
// Stash the INCREMENTAL_BUILD_SCRIPT_PATH and EBS_SNAPSHOT_SCRIPT_PATH since all nodes will use it
|
||||
stash name: 'incremental_build_script',
|
||||
includes: INCREMENTAL_BUILD_SCRIPT_PATH
|
||||
stash name: 'ebs_snapshot_script',
|
||||
if (fileExists(EBS_SNAPSHOT_SCRIPT_PATH)) {
|
||||
stash name: 'ebs_snapshot_script',
|
||||
includes: EBS_SNAPSHOT_SCRIPT_PATH
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user