added support for log rotation for jenkins jobs