Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #22567
Closed
Open
Issue created Sep 25, 2016 by Perry Naseck@DaAwesomeP

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

Assignee
Assign to
Time tracking