【问题标题】:Passing a parameter to gcloud app via Jenkins通过 Jenkins 将参数传递给 gcloud 应用程序
【发布时间】:2018-08-05 01:17:18
【问题描述】:

我正在使用 Jenkins 在 gcloud 上触发一些东西,我需要能够将参数从 Build with parameters 菜单传递给正在触发的 gcloud 命令。 所以假设我的 gcloud 命令是:

gcloud firebase test android run .... --device model=shamu 我希望传递的设备模型是一个变量。 所以我尝试了类似的东西 DEVICE_MODEL 作为参数化字符串和类似这样的东西:

gcloud firebase test android run .... --device model=${DEVICE_MODEL}
gcloud firebase test android run .... --device model=$"DEVICE_MODEL"
gcloud firebase test android run .... --device model=${"DEVICE_MODEL"}

但没有任何效果.. 任何想法我做错了什么?

【问题讨论】:

    标签: android firebase jenkins google-cloud-platform gcloud


    【解决方案1】:

    通过在 Execute Shell 中使用 gcloud firebase test android run .... --device model=${DEVICE_MODEL} 作为构建步骤而不是专门的 gcloud 构建步骤解决了这个问题

    【讨论】:

      猜你喜欢
      • 2013-09-08
      • 1970-01-01
      • 1970-01-01
      • 2012-12-24
      • 1970-01-01
      • 2015-01-09
      • 1970-01-01
      • 2015-12-28
      • 2021-01-10
      相关资源
      最近更新 更多