How to keep alias setting with doskey in Azure pipeline?

109 Views Asked by At

I am using Azure pipeline with Self-hosted Windows agents to run a local script init.cmd, which is mainly for alias setting with doskey. I am using the following YAML file to configure the pipeline

trigger:
- master

pool: $(AGENT_POOL)

steps:
- script: |
    init.cmd
    build
  displayName: 'init.cmd'
  workingDirectory: $(CODE_BASE)

the alias setting seems not to work:

'build' is not recognized as an internal or external command
0

There are 0 best solutions below