X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb%2Flf-docker-jobs.yaml;h=6fbf09bf210d914332854b78710227f053fc0689;hb=a70124ef46b23063d25ec178e627ac226b8cef8f;hp=d4d265a488f7da0ea432dbaed3b32cde2c4426c5;hpb=b64ed081a0e57c3b4f74947d48a1c226a1a6b54f;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-docker-jobs.yaml b/jjb/lf-docker-jobs.yaml index d4d265a4..6fbf09bf 100644 --- a/jjb/lf-docker-jobs.yaml +++ b/jjb/lf-docker-jobs.yaml @@ -10,26 +10,15 @@ builders: - inject: properties-content: | + CONTAINER_TAG_METHOD={container-tag-method} + CONTAINER_TAG_YAML_DIR={container-tag-yaml-dir} DOCKER_ROOT={docker-root} - - conditional-step: - condition-kind: regex-match - regex: git-describe-params - label: '{docker-use-params-from}' - steps: - - shell: !include-raw-escape: - - ../shell/docker-get-git-describe.sh - - conditional-step: - condition-kind: regex-match - regex: yaml-file-params - label: '{docker-use-params-from}' - steps: - - shell: !include-raw-escape: - - ../shell/docker-get-yaml-tag.sh + - shell: !include-raw-escape: + - ../shell/docker-get-container-tag.sh - inject: - # Import the docker image information from the previous build step + # Import the container tag set by this build step properties-file: 'env_docker_inject.txt' - - builder: name: lf-docker-build builders: @@ -74,11 +63,13 @@ submodule-timeout: 10 pre_docker_build_script: '# pre docker build script goes here' post_docker_build_script: '# post docker build script goes here' - docker-use-params-from: '' disable-job: 'false' docker-root: '$WORKSPACE' docker-build-args: '' git-url: '$GIT_URL/$PROJECT' + container-tag-method: 'latest' + # TODO: how to interpolate value of {docker-root} parameter? + container-tag-yaml-dir: '' ##################### # Job Configuration # @@ -145,7 +136,8 @@ settings-file: '{mvn-settings}' - shell: '{pre_docker_build_script}' - lf-docker-get-container-tag: - docker-use-params-from: '{docker-use-params-from}' + container-tag-method: '{container-tag-method}' + container-tag-yaml-dir: '{container-tag-yaml-dir}' docker-root: '{docker-root}' - lf-docker-build: docker-build-args: '{docker-build-args}' @@ -191,7 +183,8 @@ settings-file: '{mvn-settings}' - shell: '{pre_docker_build_script}' - lf-docker-get-container-tag: - docker-use-params-from: '{docker-use-params-from}' + container-tag-method: '{container-tag-method}' + container-tag-yaml-dir: '{container-tag-yaml-dir}' docker-root: '{docker-root}' - lf-docker-build: docker-build-args: '{docker-build-args}'