是否可以从Jenkins中的TFVARS文件中读取值?
我有一些Terraform代码,该代码使用TFVAR的地图将多个Lambdas部署到AWS。一切都很好,除了我想在Jenkins管道中运行脚本,该脚本需要首先从Nexus下载每个LAMDA的Jars。有没有办法在Jenkins管道中阅读TFVARS文件以获取从Nexus下载的罐子的名称,将它们复制到Jenkins上的工作DIR中,然后使用Terraform上传?
I have some terraform code that uses a map of tfvars to deploy multiple lambdas to Aws. it all works fine except I want to run the script in a Jenkins pipeline which would need to download the jars from Nexus first for each lamda. is there a way I can read the tfvars file in the Jenkins pipeline to get the names of the jars to download from Nexus, copy them into the working dir on Jenkins and then upload them using terraform?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论