Jesus certainly advocated keeping the Law.
Matthew 19:16-17
And someone came to Him and said, “Teacher, what good thing shall I do that I may obtain eternal life?” 17 And He said to him, “Why are you asking Me about what is good? There is only One who is good; but if you wish to enter into life, keep the commandments.”
Luke 19:8-10
8 Zaccheus stopped and said to the Lord, “Behold, Lord, half of my possessions I will give to the poor, and if I have defrauded anyone of anything, I will give back four times as much.” 9 And Jesus said to him, “Today salvation has come to this house, because he, too, is a son of Abraham. 10 For the Son of Man has come to seek and to save that which was lost.”
John 5:28-29
Do not marvel at this; for an hour is coming, in which all who are in the tombs will hear His voice, 29 and will come forth; those who did the good deeds to a resurrection of life, those who committed the evil deeds to a resurrection of judgment.
Luke 10:25-28
And a lawyer stood up and put Him to the test, saying, “Teacher, what shall I do to inherit eternal life?” 26 And He said to him, “What is written in the Law? How does it read to you?” 27 And he answered, “You shall love the Lord your God with all your heart, and with all your soul, and with all your strength, and with all your mind; and your neighbor as yourself.” 28 And He said to him, “You have answered correctly; do this and you will live.”