Last active
September 25, 2021 07:35
-
-
Save HeathLoganCampbell/5fd03254d94480e2a0e752aa215a3f4e to your computer and use it in GitHub Desktop.
Download gitlab artifacts via curl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -L --header "PRIVATE-TOKEN: <Personal token>" "https://gitlab.com/api/v4/projects/Team%2FSubTeam%2FRepo/jobs/artifacts/<Branch>/download?job=<job>" -o artifacts.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Personal token, is from proile > edit proile > Access token | |
%2F just means / | |
Branch is the git branch | |
job, CI/CD > Jobs > look at name column | |
This will download the latest artifacts from the ci pipeline |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment