X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb%2Flf-docker-jobs.yaml;h=ec870b6d3ff3e8d744c34604e09ee5aa2cbd7186;hb=refs%2Fchanges%2F99%2F15799%2F4;hp=220c22526bc3c0ff7348735cb6e2caf3f2ef2ec6;hpb=5113d3c9d84c3e4237e3c2fa0f616bdfcb2a6d15;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-docker-jobs.yaml b/jjb/lf-docker-jobs.yaml index 220c2252..ec870b6d 100644 --- a/jjb/lf-docker-jobs.yaml +++ b/jjb/lf-docker-jobs.yaml @@ -10,7 +10,6 @@ builders: - inject: properties-content: | - DOCKER_NAME={docker-name} DOCKER_ROOT={docker-root} - conditional-step: condition-kind: regex-match @@ -37,8 +36,10 @@ - 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 @@ -129,6 +130,14 @@ - 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: @@ -137,12 +146,13 @@ - 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 @@ -165,6 +175,14 @@ - 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: @@ -173,12 +191,13 @@ - 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: @@ -211,6 +230,7 @@ branches: - branch-compare-type: ANT branch-pattern: '**/{branch}' + file-paths: '{obj:gerrit_trigger_file_paths}' - job-template: name: '{project-name}-docker-verify-{stream}' @@ -278,6 +298,7 @@ branches: - branch-compare-type: ANT branch-pattern: '**/{branch}' + file-paths: '{obj:gerrit_trigger_file_paths}' - job-template: name: '{project-name}-docker-merge-{stream}'