I have release pipeline configured which gets triggered by pipeline resources(build). i set some custom variables based on build pipelines, trying to update with release pipeline with build pipeline infos.
below is the my release pipeline code:
resources:
pipelines:
- pipeline: pipeline1
project: appcom
source: pipeline-api
trigger:
branches:
- develop
- feat/*
- pipeline: pipeline2
project: appcom
source: pipeline2-api
trigger:
branches:
- develop
- feat/*
variables:
- name: alias
value: $(resources.triggeringAlias)
stages:
- stage: ScanImage
jobs:
- job: ScanImage
pool:
vmImage: 'ubuntu-16.04'
steps:
- script: echo $(alias)
- task: Bash@3
inputs:
targetType: 'inline'
script: |
if [ "$(alias)" == "pipeline1" ]; then
echo "##vso[task.setvariable
variable=apiname]$(resources.pipeline.pipeline1.pipelineName)"
fi
- script: echo "##vso[build.addbuildtag]$(apiname)"
when pipeline get executed it says tag is created as shown in below picture when i go and try to filter with tag, it says no tags as below image
any idea on this ?a