/var/log/jenkins/jenkins.log /var/log/jenkins/access_log {
    compress
    dateext
    maxage 365
    rotate 99
    size=+4096k
    notifempty
    missingok
    create 644
    su jenkins jenkins
    postrotate
        if pgrep jenkins.sh > /dev/null; then
            JPID=`pgrep jenkins.sh`
            test -n "`find /proc/$JPID -maxdepth 0 -user ${JENKINS_USER:-jenkins} 2>/dev/null`" && kill -s ALRM $JPID || :
        fi
    endscript
}
