Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add missing file-based triggers to docker templates
[releng/global-jjb.git]
/
jjb
/
lf-docker-jobs.yaml
diff --git
a/jjb/lf-docker-jobs.yaml
b/jjb/lf-docker-jobs.yaml
index
220c225
..
ec870b6
100644
(file)
--- a/
jjb/lf-docker-jobs.yaml
+++ b/
jjb/lf-docker-jobs.yaml
@@
-10,7
+10,6
@@
builders:
- inject:
properties-content: |
builders:
- inject:
properties-content: |
- DOCKER_NAME={docker-name}
DOCKER_ROOT={docker-root}
- conditional-step:
condition-kind: regex-match
DOCKER_ROOT={docker-root}
- conditional-step:
condition-kind: regex-match
@@
-37,8
+36,10
@@
- inject:
properties-content: |
DOCKER_ARGS={docker-build-args}
- inject:
properties-content: |
DOCKER_ARGS={docker-build-args}
+ DOCKER_NAME={docker-name}
DOCKER_ROOT={docker-root}
CONTAINER_PULL_REGISTRY={container-public-registry}
DOCKER_ROOT={docker-root}
CONTAINER_PULL_REGISTRY={container-public-registry}
+ CONTAINER_PUSH_REGISTRY={container-push-registry}
- shell: !include-raw-escape:
- ../shell/docker-build.sh
- shell: !include-raw-escape:
- ../shell/docker-build.sh
@@
-129,6
+130,14
@@
- comment-added-contains-event:
comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
- comment-added-contains-event:
comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
+ gerrit_trigger_file_paths:
+ - compare-type: REG_EXP
+ pattern: '.*'
+
+ # github_included_regions MUST match gerrit_trigger_file_paths
+ github_included_regions:
+ - '.*'
+
builders:
- lf-infra-pre-build
- lf-infra-docker-login:
builders:
- lf-infra-pre-build
- lf-infra-docker-login:
@@
-137,12
+146,13
@@
- shell: '{pre_docker_build_script}'
- lf-docker-get-container-tag:
docker-use-params-from: '{docker-use-params-from}'
- shell: '{pre_docker_build_script}'
- lf-docker-get-container-tag:
docker-use-params-from: '{docker-use-params-from}'
- docker-name: '{docker-name}'
docker-root: '{docker-root}'
- lf-docker-build:
docker-build-args: '{docker-build-args}'
docker-root: '{docker-root}'
- lf-docker-build:
docker-build-args: '{docker-build-args}'
+ docker-name: '{docker-name}'
docker-root: '{docker-root}'
container-public-registry: '{container-public-registry}'
docker-root: '{docker-root}'
container-public-registry: '{container-public-registry}'
+ container-push-registry: '{container-push-registry}'
- shell: '{post_docker_build_script}'
- lf-provide-maven-settings-cleanup
- shell: '{post_docker_build_script}'
- lf-provide-maven-settings-cleanup
@@
-165,6
+175,14
@@
- comment-added-contains-event:
comment-contains-value: remerge$
- comment-added-contains-event:
comment-contains-value: remerge$
+ gerrit_trigger_file_paths:
+ - compare-type: REG_EXP
+ pattern: '.*'
+
+ # github_included_regions MUST match gerrit_trigger_file_paths
+ github_included_regions:
+ - '.*'
+
builders:
- lf-infra-pre-build
- lf-infra-docker-login:
builders:
- lf-infra-pre-build
- lf-infra-docker-login:
@@
-173,12
+191,13
@@
- shell: '{pre_docker_build_script}'
- lf-docker-get-container-tag:
docker-use-params-from: '{docker-use-params-from}'
- shell: '{pre_docker_build_script}'
- lf-docker-get-container-tag:
docker-use-params-from: '{docker-use-params-from}'
- docker-name: '{docker-name}'
docker-root: '{docker-root}'
- lf-docker-build:
docker-build-args: '{docker-build-args}'
docker-root: '{docker-root}'
- lf-docker-build:
docker-build-args: '{docker-build-args}'
+ docker-name: '{docker-name}'
docker-root: '{docker-root}'
container-public-registry: '{container-public-registry}'
docker-root: '{docker-root}'
container-public-registry: '{container-public-registry}'
+ container-push-registry: '{container-push-registry}'
- shell: '{post_docker_build_script}'
# Provided all steps have already passed, push the docker image
- lf-docker-push:
- shell: '{post_docker_build_script}'
# Provided all steps have already passed, push the docker image
- lf-docker-push:
@@
-211,6
+230,7
@@
branches:
- branch-compare-type: ANT
branch-pattern: '**/{branch}'
branches:
- branch-compare-type: ANT
branch-pattern: '**/{branch}'
+ file-paths: '{obj:gerrit_trigger_file_paths}'
- job-template:
name: '{project-name}-docker-verify-{stream}'
- job-template:
name: '{project-name}-docker-verify-{stream}'
@@
-278,6
+298,7
@@
branches:
- branch-compare-type: ANT
branch-pattern: '**/{branch}'
branches:
- branch-compare-type: ANT
branch-pattern: '**/{branch}'
+ file-paths: '{obj:gerrit_trigger_file_paths}'
- job-template:
name: '{project-name}-docker-merge-{stream}'
- job-template:
name: '{project-name}-docker-merge-{stream}'