[英]how can i trigger another job using build parameter in jenkins and using variable parameters
build (job: 'software_installation_pipeline', parameters: [
file(name: 'hostname', file: 'hostabcnew'),
string(name: 'software_name', value: 'software'),
string(name: 'server_domain', value: String.valueOf(server_domain)),
string(name: 'administrator_server_address', value:String.valueOf(administrator_server_address))
])
I am having an issue with Fileparameters is there any way to replace this and take file as an input in jenkins pipeline (i do notice there is an open issue 27413, looking for AN alternative solution)我遇到了 Fileparameters 的问题,是否有任何方法可以替换它并将文件作为 jenkins 管道中的输入(我确实注意到有一个未解决的问题 27413,正在寻找替代解决方案)
Couple of options that are a bit of a hack.几个选项有点黑客。
Store the file somewhere else such as S3 and pass a reference to the file instead.将文件存储在其他地方,例如 S3,并改为传递对文件的引用。 Use archiveArtifact to archive the file in the first Jenkins build and have the triggered build retrieve the artifact.使用 archiveArtifact 在第一个 Jenkins 构建中存档文件,并让触发构建检索工件。 Use Artifactory as a file conduit.使用 Artifactory 作为文件管道。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.