From bc74a59f526d845d460f33c3257abccab1a2fc29 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Sat, 10 Nov 2018 14:28:57 -0500 Subject: [PATCH] Trigger build per projectName path Signed-off-by: Mathieu Benoit --- azure-build-pipeline.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/azure-build-pipeline.yml b/azure-build-pipeline.yml index a362219..a5b2bc1 100644 --- a/azure-build-pipeline.yml +++ b/azure-build-pipeline.yml @@ -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)