Skip to content

Commit

Permalink
Make artifact URL an env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
fauust committed Oct 9, 2023
1 parent 90c61d4 commit ab8d7f2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions docker-compose/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ TITLE_URL=https://github.com/MariaDB/server
BUILDMASTER_URL=https://buildbot.mariadb.org/
MQ_ROUTER_URL=ws://localhost:8085/ws
MASTER_PACKAGES_DIR="/mnt/autofs/master_packages"
ARTIFACTS_URL="https://ci.mariadb.org"
1 change: 1 addition & 0 deletions docker-compose/.env.dev
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ BUILDMASTER_URL=https://buildbot.dev.mariadb.org/
BUILDMASTER_WG_IP=100.64.101.1
MQ_ROUTER_URL=ws://crossbar:8080/ws
MASTER_PACKAGES_DIR="/mnt/autofs/master_dev_packages"
ARTIFACTS_URL="https://ci.dev.mariadb.org"
6 changes: 2 additions & 4 deletions master-protected-branches/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ c['workers'].append(worker.DockerLatentWorker("hz-bbw1-docker-tarball-debian-10"
alwaysPull=True,
masterFQDN=FQDN,
hostconfig={ 'shm_size':'1G' },
volumes=MASTER_PACKAGES+'/:/packages',
volumes=[MASTER_PACKAGES+'/:/packages'],
max_builds=1,
build_wait_timeout=0,
properties={ 'jobs':4, 'save_packages':True }))
Expand All @@ -121,7 +121,7 @@ c['workers'].append(worker.DockerLatentWorker("hz-bbw4-docker-tarball-debian-10"
alwaysPull=True,
masterFQDN=FQDN,
hostconfig={ 'shm_size':'1G' },
volumes=MASTER_PACKAGES+'/:/packages',
volumes=[MASTER_PACKAGES+'/:/packages'],
max_builds=1,
build_wait_timeout=0,
properties={ 'jobs':4, 'save_packages':True }))
Expand Down Expand Up @@ -187,8 +187,6 @@ f_tarball.addStep(steps.SetPropertyFromCommand(
f_tarball.addStep(steps.ShellCommand(command=util.Interpolate("mkdir -p %(prop:buildnumber)s/logs"), workdir="build/mkdist"))
f_tarball.addStep(steps.ShellCommand(command=util.Interpolate("sha256sum %(prop:mariadb_version)s" + ".tar.gz >> " + " %(prop:buildnumber)s" + "/sha256sums.txt" + " && mv %(prop:mariadb_version)s" +".tar.gz" + " %(prop:buildnumber)s"), workdir="build/mkdist"))
f_tarball.addStep(steps.SetPropertyFromCommand(command="ls -1 *.tar.gz", extract_fn=ls2list, workdir=util.Interpolate("build/mkdist/" + "%(prop:buildnumber)s")))
#f_tarball.addStep(steps.DirectoryUpload(workersrc=util.Interpolate('%(prop:builddir)s' + '/build/mkdist/' + '%(prop:buildnumber)s'),
# masterdest=util.Interpolate('/srv/buildbot/packages/' + '%(prop:buildnumber)s'), url=util.Interpolate('https://ci.mariadb.org/' + "%(prop:buildnumber)s"), urlText="Download", doStepIf=hasFiles))
f_tarball.addStep(steps.ShellCommand(name='save_packages', haltOnFailure=True, command=util.Interpolate('cp -r ' + '%(prop:builddir)s' + '/build/mkdist/' + '%(prop:buildnumber)s' + ' /packages && sync /packages/' + '%(prop:buildnumber)s')))
f_tarball.addStep(steps.Trigger(
schedulerNames=['s_protected_branches'],
Expand Down
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def downloadSourceTarball():
if [[ $os != "AIX" ]]; then
use_flock="flock \"$d$f\" "
fi
cmd="$use_flock wget -cO \"$d$f\" \"https://ci.mariadb.org/%(prop:tarbuildnum)s/%(prop:mariadb_version)s.tar.gz\""
cmd="$use_flock wget -cO \"$d$f\" \"""" + os.getenv('ARTIFACTS_URL', default='https://ci.mariadb.org') + """/%(prop:tarbuildnum)s/%(prop:mariadb_version)s.tar.gz\""
res=1
for i in {1..10}; do
Expand Down

0 comments on commit ab8d7f2

Please sign in to comment.