How can I download an artifact from Jenkins using the Google Login Plugin?

HOW TO -️ October 18, 2021

I recently spun up a new Jenkins instance and installed the Google Login Plugin for authentication via Google. I would like to download build artifacts to servers using a shell script, basically curl or wget, but cannot authenticate properly from command line.

I tried the following wget command without success.

ERROR Rendering Code Block

I also tried the same without http-:

ERROR Rendering Code Block

The response is always

ERROR Rendering Code Block

I attempted to follow this post but ran into an issue.

I have seen this workaround, but it seems like I'd be adding a security hole.

Does anyone have experience with this plugin or in general just downloading from an OAuth-protected endpoint?


Please try the described method in this post: