Skip to content

Commit

Permalink
create repo file for deb + link at fixed url
Browse files Browse the repository at this point in the history
  • Loading branch information
grooverdan committed Oct 4, 2023
1 parent 286ec63 commit 163c155
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,20 @@ f_deb_autobake.addStep(steps.SetPropertyFromCommand(command="find .. -maxdepth 1
f_deb_autobake.addStep(dpkgDeb())
#f_deb_autobake.addStep(steps.MultipleFileUpload(workersrcs=['debs/Packages.gz', 'debs/Sources.gz'],
# masterdest=util.Interpolate('/srv/buildbot/packages/' + '%(prop:tarbuildnum)s' + '/' + '%(prop:buildername)s'), mode=0o755, url=util.Interpolate('https://ci.mariadb.org/' + "%(prop:tarbuildnum)s" + "/" + '%(prop:buildername)s' + "/"), doStepIf=lambda step: hasFiles(step) and savePackage(step)))
f_deb_autobake.addStep(steps.ShellCommand(name='save_packages', timeout=7200, haltOnFailure=True, command=util.Interpolate('mkdir -p ' + '/packages/' + '%(prop:tarbuildnum)s' + '/' + '%(prop:buildername)s'+ ' && cp -r debs/ sha256sums.txt /packages/' + '%(prop:tarbuildnum)s' + '/' + '%(prop:buildername)s' + '/' + ' && sync /packages/' + '%(prop:tarbuildnum)s'), doStepIf=lambda step: hasFiles(step) and savePackage(step)))
f_deb_autobake.addStep(steps.ShellCommand(name='save_packages', timeout=7200, haltOnFailure=True,
command=util.Interpolate("""
mkdir -p /packages/%(prop:tarbuildnum)s/%(prop:buildername)s
&& cp -r debs/ sha256sums.txt /packages/%(prop:tarbuildnum)s/%(prop:buildername)s/
&& cat << EOF > /packages/%(prop:tarbuildnum)s/%(prop:buildername)s/mariadb.sources
X-Repolib-Name: MariaDB
Types: deb
URIs: https://ci.mariadb.org/%(prop:tarbuildnum)s/%(prop:buildername)s/
Suites: $(lsb_release -sc)
Components: main main/debug
EOF
&& ln -sf %(prop:tarbuildnum)s/%(prop:buildername)s/mariadb.sources %(prob:branch)s-latest-%(prop:buildername)s.sources
&& sync /packages/%(prop:tarbuildnum)s
"""), doStepIf=lambda step: hasFiles(step) and savePackage(step)))
f_deb_autobake.addStep(steps.Trigger(name='dockerlibrary', schedulerNames=['s_dockerlibrary'], waitForFinish=False, updateSourceStamp=False,
set_properties={"tarbuildnum" : Property("tarbuildnum"), "mariadb_version" : Property("mariadb_version"), "master_branch" : Property("master_branch"), "parentbuildername": Property("buildername")}, doStepIf=lambda step: hasDockerLibrary(step)))
f_deb_autobake.addStep(steps.Trigger(name='install', schedulerNames=['s_install'], waitForFinish=False, updateSourceStamp=False,
Expand Down

0 comments on commit 163c155

Please sign in to comment.