Azure devops build pipelines.
We are seeing a weird issue where any yarn command in a script block will terminate that script block after the yarn command.
steps:
- script: |
echo "*********1*********"
cd D:\my\src
echo "*********2*********"
yarn add --dev jest-junit
echo "*********3*********"
yarn test:unit --silent --ci --reporters=jest-junit
echo "*********4*********"
Will produce this output:
"*********1*********"
"*********2*********"
yarn add v1.16.0
[1/4] Resolving packages...
...
Done in 107.91s.
Finishing: CmdLine
So we never get to echo "*********3*********"
Even something like simple like this:
- script: |
echo "Start"
yarn -v
echo "We never get here"
It seems the Cmdline task just stops after the first yarn task.
This is running on an on-premise Windows Server 2016. If we run the same script on an ubuntu vm it works fine.