diff --git a/build/tasks/build.yaml b/build/tasks/build.yaml index d914fcc..e4227c8 100644 --- a/build/tasks/build.yaml +++ b/build/tasks/build.yaml @@ -21,6 +21,13 @@ spec: You must set this to `"false"` if the build can be affected by files outside `working-dir`. See ADR caching-build-tasks for more details and workarounds. type: string default: "true" + - name: build-extra-inputs + description: >- + List of build source directories (as colon separated string) which in addition working-dir influence the build. + These directories are relative to the repository root. + If the contents in these directories change the cache is invalidated so that the build task will rebuild from scratch. + type: string + default: "" - name: build-script description: >- Build script to execute. The diff --git a/docs/build.adoc b/docs/build.adoc index b5939b2..2af97b9 100644 --- a/docs/build.adoc +++ b/docs/build.adoc @@ -43,6 +43,11 @@ without leading `./` and trailing `/`. | If enabled tasks uses or populates cache with the output dir contents (and artifacts) so that a build can be skipped if the `working-dir` contents did not change. You must set this to `"false"` if the build can be affected by files outside `working-dir`. See ADR caching-build-tasks for more details and workarounds. +| build-extra-inputs +| +| List of build source directories (as colon separated string) which in addition working-dir influence the build. These directories are relative to the repository root. If the contents in these directories change the cache is invalidated so that the build task will rebuild from scratch. + + | build-script | /usr/local/bin/build-python | Build script to execute. The link:https://github.com/opendevstack/ods-pipeline-python/blob/main/build/images/scripts/build.sh[default script] is located in the container image. If you specify a relative path instead, it will be resolved from the workspace. See the task definition for details how the build script is invoked. diff --git a/tasks/build.yaml b/tasks/build.yaml index e2b3576..984aeb6 100644 --- a/tasks/build.yaml +++ b/tasks/build.yaml @@ -23,6 +23,13 @@ spec: You must set this to `"false"` if the build can be affected by files outside `working-dir`. See ADR caching-build-tasks for more details and workarounds. type: string default: "true" + - name: build-extra-inputs + description: >- + List of build source directories (as colon separated string) which in addition working-dir influence the build. + These directories are relative to the repository root. + If the contents in these directories change the cache is invalidated so that the build task will rebuild from scratch. + type: string + default: "" - name: build-script description: >- Build script to execute. The