I have Jenkins pipeline bay which i want to have report of executed shell command in a file so that we can have an email with attachment but that file is not getting generated,