this is developer repo pipeline
resources:
repositories:
- repository: extendCheck
type: git
name: PUL/extendCheck
trigger:
- none
extends:
template: base2.yml@extendCheck
parameters:
buildSteps:
- bash: echo Test #Passes
displayName: succeed
- bash: echo "Test"
displayName: succeed
- script: echo "Script Test"
displayName: Fail
this is extend template from centralized policy team's repo
# File: start.yml
name: $(Date:yyyy)$(Date:.MM)$(Date:.dd)$(Rev:-r)
parameters:
- name: buildSteps # the name of the parameter is buildSteps
type: stepList # data type is StepList
default: [] # default value of buildSteps
stages:
- stage: secure_buildstage
pool:
vmImage: 'ubuntu-latest'
jobs:
- job: secure_buildjob
steps:
- script: echo This happens before code
displayName: 'Base: Pre-build'
- script: echo Building
displayName: 'Base: Build'
- ${{ each step in parameters.buildSteps }}:
- ${{ each pair in step }}:
${{ if ne(pair.key, 'script') }}:
${{ pair.key }}: ${{ pair.value }}
${{ if eq(pair.key, 'script') }}: # checks for buildStep with script
'Rejecting Script: ${{ pair.value }}': error # rejects buildStep when script is found
- script: echo This happens after code
displayName: 'Base: Signing'
When i run this , i get following error
/base2.yml@extendCheck (Line: 2, Col: 1): Unexpected value 'name'
We want to control the build number format and so don't want to keep it in developer repo. Any suggestions for this problem