Downloading Jenkins artifacts via the CLI

Problem I recently needed to download an artifact from a Jenkins build to my remote dev machine. The remote machine has access to the Jenkins controller, so I just ran wget with the link. $ wget https://jenkins.local/job/.../artifact/my_artifact.tar.gz I got this back: HTTP request sent, awaiting response... 403 Forbidden 2023-04-02 17:43:27 ERROR 403: Forbidden. Jenkins required authentication… Solution API token To authenticate ourselves we need to supply username and an API token....

April 2, 2023 · 2 min · David Isaksson