CI_BUILD_TOKEN
vs CI_JOB_TOKEN
CI_BUILD_TOKEN variable was renamed to CI_JOB_TOKEN a while ago so make sure to use this when authenticating against repos.
Job Artifacts
see reference here
Artifact Dependencies
If you declare dependencies between a job and a previous step, you can have it download the artifacts generated by upstream jobs:
job_two:
stage: after_build
dependencies:
- jobname
script: cat output_of_script.file
Installing python packages
If you are getting errors like this:
Check your API key. You may not have permission. Running this command with -vv
can force pip to display issues such as a 403
response which indicates that your key is valid but doesn’t have the right permissions.