If doing this sort of a migration is a real possibility, it's an argument for having the bare minimum logic in the CI tool and as much as you can in your own scripts...
But I agree with your assessment, as much as the classic
script:
- chmod +x pipeline.sh
- ./pipeline.sh
makes me want to die.