Comment 2 for bug 1536538

Revision history for this message
Sergey Kulanov (skulanov) wrote :

@Folks, you need to use snapshot approach since MOS mirrors updating each ~15 minutes,

This this how it's implemented in our job [1], in short:

1. extract info from http://mirror.fuel-infra.org/mos-repos/centos/mos8.0-centos7-fuel/os.target.txt
       snapshots/os-2016-01-21-093001
2. Construct new path:
   http://mirror.fuel-infra.org/mos-repos/centos/mos8.0-centos7-fuel/snapshots/os-2016-01-21-093001/
 instead of
   http://mirror.fuel-infra.org/mos-repos/centos/mos8.0-centos7-fuel/os/

the same is true for ubuntu:
1. http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0.target.txt
     snapshots/8.0-2016-01-21-093001
2. new path:
     http://mirror.fuel-infra.org/mos-repos/ubuntu/snapshots/8.0-2016-01-21-093001/
 instead of
    http://mirror.fuel-infra.org/mos-repos/ubuntu/8.0/

[1]. https://github.com/fuel-infra/jenkins-jobs/blob/master/servers/jenkins-product-ci/8.0/builders/custom.sh#L46-L95

ps. setting to incomplete, please feel free to update bug if you have further questions