Add file exists conditional for ebs_snapshot stash command (#7178)

Signed-off-by: Mike Chang <changml@amazon.com>
This commit is contained in:
Mike Chang
2022-01-26 17:11:58 -08:00
committed by GitHub
parent 2f4ff1072c
commit 5ebe3d12df
+3 -1
View File
@@ -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
}
}
}
}