简体   繁体   English

我如何使用 jenkins 中的构建参数和使用可变参数触发另一个作业

[英]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.

相关问题 Jenkins-使用在作业触发期间传递的构建参数 - Jenkins - Using build parameters passed during Trigger of a Job 如何在 Jenkins 中使用选择参数触发构建 - How to trigger build using choice parameters in Jenkins 根据在第一份工作中选择的选项,如何使用动态参数插件在Jenkins中触发另一份工作 - based on options selected in first job, how to trigger another job in Jenkins using Dynamic parameter plugin 在Jenkins中,如何基于传递给当前构建作业的构建参数来触发另一个构建作业? - In Jenkins how to trigger another build job based on the build parameter passed to current build job? 如何在URL中使用curl和传递参数来触发jenkins作业 - How to trigger jenkins job using curl and passing parameters in url 如何使用特定内部版本号触发 Jenkins 作业 - How to trigger Jenkins job using particular build number 如何将Jenkins 1中的作业的构建参数远程添加到Jenkins 2中的另一作业? - How do i add build parameters of a job in Jenkins 1 remotely to another job in Jenkins 2? 我正在使用带有参数的构建管道作业来调用 Jenkins 中的下游作业; 如何在帖子块中打印主要作业名称? - I'm using a build pipeline job with parameters to call a downstream job in Jenkins; how do I print the main job name in the post block? 如何使用Java以编程方式更新jenkins作业配置并触发构建? - How do i update jenkins job configuration and trigger build programatically using java? 我可以使用Maven依赖项触发Jenkins作业吗? - Can I trigger a Jenkins job using a Maven dependency?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM