Trigger build per projectName path

Signed-off-by: Mathieu Benoit <mabenoit@microsoft.com>
This commit is contained in:
Mathieu Benoit 2018-11-10 14:28:57 -05:00
Родитель 38ea76302f
Коммит bc74a59f52
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -7,6 +7,11 @@ variables:
imageName: '$(projectName)'
# define 4 more variables: projectName, registryName, registryLogin and registryPassword in the build pipeline in UI
trigger:
batch: true
paths:
include:
- $(projectName)/*
steps:
- bash: docker build -f $(system.defaultWorkingDirectory)/$(projectName)/Dockerfile -t $(registryServerName)/$(imageName):$(build.buildId) -t $(registryServerName)/$(imageName):latest $(system.defaultWorkingDirectory)/$(projectName)