【问题标题】:include local.properties file in android jenkins build在 android jenkins build 中包含 local.properties 文件
【发布时间】:2022-08-24 18:37:42
【问题描述】:

我正在尝试为 android 应用程序设置 jenkins 管道。出于安全原因,我们没有在 git 服务器上提交 local.properties 文件。现在的问题是这个 local.properties 文件包含我从 build.gradle 访问的几个变量,并且由于它没有提交,jenkin build 无法找到这个文件并且构建失败。 如何在我的詹金斯工作中添加此配置?

    标签: android jenkins cicd


    【解决方案1】:

    我已经通过使用实现了这一点
    echo "dev_flavor=\"dev\"" >> local.properties
    jenkins作业中的gradle build命令之前的命令
    构建步骤 > 调用 Gradle 脚本

    【讨论】:

      猜你喜欢
      • 2016-03-28
      • 2022-08-09
      • 1970-01-01
      • 2019-07-13
      • 1970-01-01
      • 2015-12-25
      • 2021-02-26
      • 1970-01-01
      • 2015-02-24
      相关资源
      最近更新 更多