Fix CodeNarc warning about empty catch (2nd try)
Change-Id: I2e6ca39173ad5bb44ab467aa57265b22f42114e1
diff --git a/validate-cloud.groovy b/validate-cloud.groovy
index 5dd8008..dbfc94b 100644
--- a/validate-cloud.groovy
+++ b/validate-cloud.groovy
@@ -70,13 +70,7 @@
stage('Run Rally tests') {
if (RUN_RALLY_TESTS.toBoolean() == true) {
- def report_dir = '/root/qa_results'
- try {
- if(REPORT_DIR != ""){
- report_dir = REPORT_DIR
- }
- } catch (MissingPropertyException e) {
- }
+ def report_dir = env.REPORT_DIR ?: '/root/qa_results'
def rally_variables = ["floating_network=${FLOATING_NETWORK}",
"rally_image=${RALLY_IMAGE}",
"rally_flavor=${RALLY_FLAVOR}",