JDunphy wrote: ↑Fri Mar 21, 2025 7:52 pm
Trying to wrap my head around all this. I did this:
Code: Select all
#!/bin/sh
git clone --depth 1 --branch "9.0.0.p44" "git@github.com:Zimbra/zm-build.git"
cd zm-build
ENV_CACHE_CLEAR_FLAG=true ./build.pl \
--ant-options -DskipTests=true \
--git-default-tag="9.0.0.p43,9.0.0.p42,9.0.0.p41,9.0.0.p40,9.0.0.p39,9.0.0.p38,9.0.0.p37,9.0.0.p36,9.0.0.p34,9.0.0.p33,9.0.0.P33,9.0.0.p32.1,9.0.0.p32,9.0.0.p30,9.0.0.p29,9.0.0.p28,9.0.0.p27,9.0.0.p26,9.0.0.p25,9.0.0.p24.1,9.0.0.p24,9.0.0.p23,9.0.0.p22,9.0.0.p21,9.0.0.p20,9.0.0.p19,9.0.0.p18,9.0.0.p17,9.0.0.p16,9.0.0.p15,9.0.0.p14,9.0.0.p13,9.0.0.p12,9.0.0.p11,9.0.0.p10,9.0.0.p9,9.0.0.p8,9.0.0.p7,9.0.0.p6,9.0.0.p5,9.0.0.p4,9.0.0.p3,9.0.0.p2,9.0.0.p1,9.0.0" \
--build-release-no="9.0.0" \
--build-type=FOSS \
--build-release="KEPLER_T090000p43C090000p44FOSS" \
--build-thirdparty-server=files.zimbra.com \
--no-interactive \
--build-release-candidate=GA \
--git-overrides maldua-pimbra.url-prefix="git@github.com:maldua-pimbra" \
--git-overrides zm-web-client.remote="maldua-pimbra" \
--git-overrides zm-web-client.tag="9.0.0.p44-maldua"
which built perfectly.
I initially thought of using
--git-overrides in the command line but later on I discarded it.
The problem regarding using
--git-overrides is that you have to maintain it each time there is a new release.
If only there was a way of adding additional build customization to the command line customization... wait... that's what
config.build is meant for.
If
config.build config choices are different than the command line config choices the command line config choices are not ignored or overwritten.
More on that later.
JDunphy wrote: ↑Fri Mar 21, 2025 8:53 pm
Thinking out loud here as it's still not clear to me what is going on. Currently we have this:
Assume building the latest version so that would be tags: 10.1.6, 10.0.13, and 9.0.0.13.p43
This seems like a typo and you actually meant
10.1.6, 10.0.13, and 9.0.0.p43. I'll quote you again next with that part fixed.
JDunphy wrote: ↑Fri Mar 21, 2025 8:53 pm
Thinking out loud here as it's still not clear to me what is going on. Currently we have this:
Assume building the latest version so that would be tags: 10.1.6, 10.0.13, and 9.0.0.p43
That's not actually right, the latest version for 9.0.0 would be 9.0.0.p44. As we have discussed in another thread you just have to make sure to include the
zm-build repo so that you get that tag as the latest one.
JDunphy wrote: ↑Fri Mar 21, 2025 8:53 pm
If I understand what you are presenting, we will be able to build older versions also from this day forward.
Maldua scripts have a
new switch pimbra-enabled.
You are supposed to be using
pimbra-enabled from versions 10.1.5, 10.0.13, 9.0.0.p44 or newer.
For older versions than 10.1.5, 10.0.13, 9.0.0.p44 you are supposed to turn it off with
pimbra-disabled so that you fallback to whatever we were doing before pimbra appeared.
JDunphy wrote: ↑Fri Mar 21, 2025 8:53 pm
If they choose to build 10.1 then the tag on pimbra's zm-web-client.git is 10.1.5-maldua (so look behind one for correct maldua tag)
if they choose to build 10.0 then the tag on pimbra's zm-web-client.git is 10.0.13-maldua (perfect)
if they choose to build 9.0 then the tag on pimbra's zm-web-client.git is 9.0.0.p44-maldua (look ahead one for tag for correct maldua tag)
I see that you have 10.1.6 config but there is no tag for the repository for 10.1.6-maldua. Can you give some guidance as I am attempting to come up with an algorithm given a version which represents the tag to build for the correct pimbra tag.
The way it's designed right now once you choose the actual tag/version you need to check for it in the
maldua-pimbra-config repo.
I guess I should rewrite the maldua-pimbra READMEs so that I make more clear that you need to go ahead to the
maldua-pimbra-config repo and read/use the examples there.
Here there are some working examples that should clarify it:
The newest 10.1.6 does not have any specific 10.1.6 zm-web-client change so it should enforce the old 10.1.5. Here: