path: root/trigger-zephyr-upstream.yaml
diff options
authorDaniel Díaz <daniel.diaz@linaro.org>2017-11-06 14:01:12 -0600
committerDaniel Díaz <daniel.diaz@linaro.org>2017-11-06 15:30:47 -0600
commita85d1092751a5bbe4d1d9eaa795993ce9a368c78 (patch)
tree941e6424c8aae02659ea1bcac9efb6692bc73919 /trigger-zephyr-upstream.yaml
parenta09e27ead3932c938f8d8df0827cefc8471d6766 (diff)
zephyr-upstream: build specifically commit that triggered it
A timing issue was made evident with the extensive times it takes to go from the first to the last job in the matrix configuration: by the time the last job's turn is up, the Git repository may have changed already, and thus a different codebase would be built. To fix this, anchor against the GIT_REVISION that triggered the pipeline, by passing that revision as a parameter to the downstream jobs. Change-Id: I66f7ebff3e4b12da9280e4c56bde468c0f1e3659 Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Diffstat (limited to 'trigger-zephyr-upstream.yaml')
1 files changed, 1 insertions, 0 deletions
diff --git a/trigger-zephyr-upstream.yaml b/trigger-zephyr-upstream.yaml
index f693a1d3b..5bd1ba88b 100644
--- a/trigger-zephyr-upstream.yaml
+++ b/trigger-zephyr-upstream.yaml
@@ -31,3 +31,4 @@
- trigger-builds:
- project: 'zephyr-upstream'
+ predefined-parameters: GIT_REVISION=${GIT_REVISION}