返回

yaml-azure devops管道资源触发器

发布时间:2022-06-20 01:33:00 278

触发的管道

trigger: none
# trigger: 
#   branches:
#     exclude:
#       - master
 
pool:
  name: testpool

resources:
  pipelines:
   - pipeline: testtest
     source: publishnexus
     trigger: true
      #  stages:
      #  - dev

########################################## DEV ##########################################
steps:
- task: PowerShell@2
  inputs:
    targetType: 'inline'
    script: |
      # Write your PowerShell commands here.
      Write-Host "$(resources.pipeline.testtest.runName)"
      Write-Host "Hello World"

触发管道

# no trigger on master
trigger: none
  # branches:
  #   exclude:
  #     - master
pool:
  name: AWS-Linux-Prod
steps:
- bash: echo "The security-lib-ci pipeline runs first"
- script: |
    echo Add other tasks to build, test, and deploy your project.
    echo See https://aka.ms/yaml
  displayName: 'Run a multi-line script'

我设置了两条管道,以便在其他管道完成运行时触发一条管道,但这似乎不起作用,但我确认它们是链接的。我错过了什么?

 

特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报
评论区(1)
按点赞数排序
用户头像
相关帖子