Given the following pipeline definition:
definitions:<br> common-items: #https://stackoverflow.com/a/79179771<br> - initialize: &initialize |<br> Import-Module ".\.bitbucket\Virto_Functions.psm1"<br> .\.bitbucket\initialize_step.ps1<br>pipelines:<br> pull-requests:<br> '**':<br> - step:<br> name: "Build & test"<br> script:<br> - $env:DISABLE_EAZFUSCATOR="true"<br> - *initialize
My build then fails with the message
<span><span>+ $env:DISABLE_EAZFUSCATOR="true"</span></span>
bash: :DISABLE_EAZFUSCATOR=true: command not found
Any thoughts? It appears that it's executing this using bash and not powershell..
I have my entire pipeline working just fine using the documented YAML anchor functionality, but I stumbled upon this "hidden" feature on StackOverflow
I really want to have a way to re-use sets of scripts, instead of having to duplicate entire steps simply to leave out a few script lines