Retried builds don't get new build token for submodules
Every few times I build, apt
decides that it couldn't download something. I click retry and apt
magically works that time (this is unrelated issue but provides context). However, the retired build appear to try to use the same build token as the initial build. It then fails to download submodules. My submodule is on the same GitLab server and is set to "internal" permissions.
$ git submodule update --init --recursive
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab-ci-token:<build-token>@git.example.com/group/repo.git/'
Unable to fetch in submodule path 'group/repo'
ERROR: Build failed: exit code 1
GitLab 8.12.0
GitLab CI Multi Runner 1.6.0 (01b3ea1)
Debian Jessie x64