Click here to Skip to main content
15,868,115 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am trying to set a build pipeline in AzDo and my build is failing with error A mapping was not expected

What i ma trying to do is to create a new stage and new job to access a template based on the boolean condition

- stage: RunTests
    jobs:
      - job: RunTests
        displayName: Run Correlate Unit Tests
        condition: eq(parameters.TestStage, true)
        steps:
            template: '${{ variables.TestStageTemplate }}'
            parameters:
                UnitTestTemplate: '${{ variables.UnitTestTemplate }}'
                IntegrationTestTemplate: '${{ variables.IntegrationTestTemplate }}'
                AcceptanceTestsTemplate: '${{ variables.AcceptanceTestsTemplate }}'
                BuildTemplate: '${{ variables.BuildTemplate }}'
                UnitTests: '${{ parameters.UnitTests }}'
                IntegrationTests: '${{ parameters.IntegrationTests }}'
                AcceptanceTests: '${{ parameters.AcceptanceTests }}'
                UnitTestObj: '${{ parameters.UnitTestObj }}'
                IntegrationTestObj: '${{ parameters.IntegrationTestObj }}'



I am not able to understand what am i doing wrong here.Can somebody please suggest

What I have tried:

havent tried anything as i am not sure of where i am doing wrong
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900