the yq command, which requires that the repository has a YAML file named
'container-tag.yaml'. The script checks the docker-root directory by
default or the directory specified by parameter container-tag-yaml-dir.
-An example file appears below.
+An example file appears below. Optionally, teams can call their own script to
+handle the docker tagging differently.
lf-docker-build
(default: latest)
:container-tag-yaml-dir: Directory with container-tag.yaml. (default: $DOCKER_ROOT)
:docker-build-args: Additional arguments for the docker build command.
+ :docker-get-container-tag-script: Pointer to script to handle docker tags.
+ (default: ../shell/docker-get-container-tag.sh)
:docker-root: Build directory within the repo. (default: $WORKSPACE, the repo root)
:git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
:pre_docker_build_script: Build script to execute before the main verify
one may want to provide more than 1 cron timer. No default. Use
'@daily' to run daily or 'H H * * 0' to run weekly.
:docker-build-args: Additional arguments for the docker build command.
+ :docker-get-container-tag-script: Pointer to script to handle docker tags.
+ (default: ../shell/docker-get-container-tag.sh)
:docker-root: Build directory within the repo. (default: $WORKSPACE, the repo root)
:git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
:pre_docker_build_script: Build script to execute before the main merge
CONTAINER_TAG_METHOD={container-tag-method}
CONTAINER_TAG_YAML_DIR={container-tag-yaml-dir}
DOCKER_ROOT={docker-root}
- - shell: !include-raw-escape:
- - ../shell/docker-get-container-tag.sh
+ - shell: !include-raw-escape: "{docker-get-container-tag-script}"
- inject:
# Import the container tag set by this build step
properties-file: "env_docker_inject.txt"
pre_docker_build_script: "# pre docker build script goes here"
post_docker_build_script: "# post docker build script goes here"
disable-job: "false"
+ docker-get-container-tag-script: "../shell/docker-get-container-tag.sh"
docker-root: "$WORKSPACE"
docker-build-args: ""
git-url: "$GIT_URL/$PROJECT"
container-tag-method: "{container-tag-method}"
container-tag-yaml-dir: "{container-tag-yaml-dir}"
docker-root: "{docker-root}"
+ docker-get-container-tag-script: "{docker-get-container-tag-script}"
- lf-docker-build:
docker-build-args: "{docker-build-args}"
docker-name: "{docker-name}"
container-tag-method: "{container-tag-method}"
container-tag-yaml-dir: "{container-tag-yaml-dir}"
docker-root: "{docker-root}"
+ docker-get-container-tag-script: "{docker-get-container-tag-script}"
- lf-docker-build:
docker-build-args: "{docker-build-args}"
docker-name: "{docker-name}"
--- /dev/null
+---
+fixes:
+ - |
+ Make shell script builder step customizable in lf-docker-get-container-tag.
+ This will allow ONAP to call their own script. Set to default to
+ "../shell/docker-get-container-tag.sh" which is what teams were already using.