Jet physics measurements at CMS