builders:
- inject:
properties-content: |
- DOCKER_NAME={docker-name}
DOCKER_ROOT={docker-root}
- conditional-step:
condition-kind: regex-match
- inject:
properties-content: |
DOCKER_ARGS={docker-build-args}
+ DOCKER_NAME={docker-name}
DOCKER_ROOT={docker-root}
CONTAINER_PULL_REGISTRY={container-public-registry}
+ CONTAINER_PUSH_REGISTRY={container-push-registry}
- shell: !include-raw-escape:
- ../shell/docker-build.sh
- 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:
- 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-name: '{docker-name}'
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
- 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:
- 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-name: '{docker-name}'
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:
branches:
- branch-compare-type: ANT
branch-pattern: '**/{branch}'
+ file-paths: '{obj:gerrit_trigger_file_paths}'
- job-template:
name: '{project-name}-docker-verify-{stream}'
branches:
- branch-compare-type: ANT
branch-pattern: '**/{branch}'
+ file-paths: '{obj:gerrit_trigger_file_paths}'
- job-template:
name: '{project-name}-docker-merge-{stream}'