Do not fail the build if we can't set ONOS logs to the desired level
Change-Id: Ia43386eeff463702c255854c7de3d8bd9343210c
diff --git a/vars/setOnosLogLevels.groovy b/vars/setOnosLogLevels.groovy
index 0c18fd4..5b1bd45 100644
--- a/vars/setOnosLogLevels.groovy
+++ b/vars/setOnosLogLevels.groovy
@@ -28,7 +28,7 @@
for (int j = 0; j < cfg.apps.size(); j++) {
def app = cfg.apps[j]
sh """
- sshpass -p karaf ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@localhost log:set ${cfg.logLevel} ${app}
+ sshpass -p karaf ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@localhost log:set ${cfg.logLevel} ${app} || true
"""
}
sh """