Include name of lamp in message

print json message to logger.
Use lastCompletedBuild instead of lastBuild

getLastBuild().getResult() will return null if the job is currently building