![](/img/trans.png)
[英]Azure Pipeline dynamic parameters to template file from YAML pipeline
[英]How to include a yaml template between 2 different tasks in the another template in Azure pipeline deployment
您可以直接在作业中的两个任务之间插入步骤模板,如下所示。
steps:
- task: Bash@3
displayName: 'Insert step'
inputs:
targetType: inline
script: echo "This step is inserted form the templates."
steps:
- task: Bash@3
displayName: 'Before inserted step'
inputs:
targetType: inline
script: echo "This step is before the inserted step."
- template: step-template.yml
- task: Bash@3
displayName: 'After inserted step'
inputs:
targetType: inline
script: echo "This step is after the inserted step."
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.