docker: Fix scheduled builds disabling

Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Mathieu Dubois-Briand 2025-07-07 16:05:24 +02:00 committed by Richard Purdie
parent ed36f4b145
commit 4c198253e4

View File

@ -122,7 +122,8 @@ RUN sed -i \
/home/pokybuild/yocto-controller/master.cfg && \ /home/pokybuild/yocto-controller/master.cfg && \
# Comment any sched.Nightly schedulers \ # Comment any sched.Nightly schedulers \
# We try to support multilines code blocks by counting parenthesis \ # We try to support multilines code blocks by counting parenthesis \
awk '/^schedulers.append\(sched.Nightly\(/{comment=1} /\(/{count+=gsub("\\(", "(")} /\)/{count-=gsub("\\)", ")")} {if (comment) {print "#" $0} else {print} if (count==0) comment=0}' \ awk -i inplace \
'/^schedulers.append\(sched.Nightly\(/{comment=1} /\(/{count+=gsub("\\(", "(")} /\)/{count-=gsub("\\)", ")")} {if (comment) {print "#" $0} else {print} if (count==0) comment=0}' \
/home/pokybuild/yocto-controller/yoctoabb/schedulers.py /home/pokybuild/yocto-controller/yoctoabb/schedulers.py
COPY docker/entry.sh / COPY docker/entry.sh /