Adding rules for publishing and unpublishing jobs