]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commit
tcmu-runner: set $RELEASE before it's used
authorIlya Dryomov <idryomov@gmail.com>
Sat, 24 Jun 2023 11:32:37 +0000 (13:32 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sat, 24 Jun 2023 11:47:37 +0000 (13:47 +0200)
commite35332122ff078091ae5263e37572b8a368d1d98
treef54d639ddaf3d8746fd77005561cdccc42f67666
parent13128a56df294d4f1e899f8a8b85ac47ffe2f51d
tcmu-runner: set $RELEASE before it's used

get_rpm_dist() call is misplaced.  The Ceph repo URL ends up missing
the distro version which causes the job to fail after some timeouts:

  REPO_URL=https://shaman.ceph.com/api/repos/ceph/main/latest/centos//flavors/default/repo
  ...
  curl --fail -L https://shaman.ceph.com/api/repos/ceph/main/latest/centos//flavors/default/repo
  ...
  curl: (22) The requested URL returned error: 504 Gateway Timeout

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
tcmu-runner/build/build_rpm