Doing a shorter set of intervals on trainer and then riding outside

I’ve done the exact same before and it’s worked well. I don’t have a place near my home where I can do 6 mins over-unders. I find that type of workout very challenging to execute outside and generally prefer to do inside.