如何通过终端从Jfrog Artifactory下载文物?
我正在研究Jenkinsfile,对于该项目,我需要获得一些文物,有人可以帮助我使用正确的命令吗?
我当时正在考虑卷发,但后来询问我输入用户名和密码,请遵循404错误。
I am working on Jenkinsfile and for the project I need to get some Artifactory, can anyone help me with the correct command?
I was thinking about curl but then it is asking me for username and password, follow by a 404 error.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在JenkinsFile的舞台中,使用
withCredentials
指令中的下载命令。如果您使用
wget
来下载软件包,请在sh
块中使用以下内容。请在右边的
prectentialsid
上与管理员一起检查以在詹金斯管道内使用。有关处理凭据的更多信息,请参阅 jenkinsfile文档。
In the stage in your Jenkinsfile, use your download command within a
withCredentials
directive.If you're using
wget
to download your packages, use the below withinsh
block.Please check with the Admin on the right
credentialsId
to use within your Jenkins pipeline.For more info on handling credentials refer Jenkinsfile documentation.