ssh username and private key auth to download sources from Git, build the artifact and deploy it to my nginx server. Now I need to download an artifact as a zip file to Jenkins agent, prepare it and deploy to my nginx server. I can only access Nexus using username/password pair.
Is there a way to run
scp mynexus.com/my_artifact.zip ~/my_artifact.zip and pass username with password from Jenkins credentials?