They did. Why do you think Mariupol took so long to fall? Fortifications and the neo-nazi Azov Battalion.
Also: https://en.wikipedia.org/wiki/Donetsk_fortress_belt