also copy plugin git folders to linters
refs DE-1492 Change-Id: Ia67bf8e4686db20febd56c9a398fde029a98118a Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/310142 Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com> Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> QA-Review: Aaron Ogata <aogata@instructure.com> Product-Review: Aaron Ogata <aogata@instructure.com> Build-Review: Aaron Ogata <aogata@instructure.com>
This commit is contained in:
parent
0c3c07ff7b
commit
a8e3d41ee5
|
@ -11,6 +11,7 @@ docker tag $WEBPACK_BUILDER_IMAGE local/webpack-builder
|
|||
# The steps taken by this image require git support
|
||||
cp .dockerignore Dockerfile.jenkins.linters.dockerignore
|
||||
echo "!.git" >> Dockerfile.jenkins.linters.dockerignore
|
||||
echo "!gems/plugins/*/.git" >> Dockerfile.jenkins.linters.dockerignore
|
||||
|
||||
DOCKER_BUILDKIT=1 docker build \
|
||||
--file Dockerfile.jenkins.linters \
|
||||
|
|
|
@ -23,7 +23,10 @@ for f in Gemfile.rails*.lock.partial; do
|
|||
fi
|
||||
done
|
||||
|
||||
if [[ "$SKIP_OSS_CHECK" != "1" ]]; then
|
||||
# If this is a plugin build and the change would require Gemfile.lock, the above
|
||||
# check would catch the issue and the corresponding canvas-lms build would catch
|
||||
# OSS issues.
|
||||
if [[ "$SKIP_OSS_CHECK" != "1" || "$GERRIT_PROJECT" == "canvas-lms" ]]; then
|
||||
read -r -a PLUGINS_LIST_ARR <<< "$PLUGINS_LIST"
|
||||
rm -rf $(printf 'gems/plugins/%s ' "${PLUGINS_LIST_ARR[@]}")
|
||||
|
||||
|
|
Loading…
Reference in New Issue