The first one is Past Perfect Continuous. It tells us that the action had been continuing up until an unspecified point during that year. Since the next sentence emphasizes of the continuity of the action, Past Perfect Continuous seems to be the better choice.
The second one is Past Perfect. It would be the better choice if you wanted to emphasize that the year was over (or nearly over) when something else happened, but that doesn't seem to be the case in your example.