【问题标题】:What's the easiest way to enable gitlab auto devops for an android project为android项目启用gitlab auto devops的最简单方法是什么
【发布时间】:2021-11-23 15:18:49
【问题描述】:

为 Android 项目正确启用 gitlab 的“auto devops”功能的最少步骤是什么?启用该功能后,我得到了一个管道,但没有得到我期望的工作,例如 assembleDebug 等。

启用 Auto Devops 的步骤(点击 gitlab UI):

gitlab -> project(git repo) ->
settings -> CI/CD -> 
Auto Devops -> Expand -> 
"Default to Auto DevOps pipeline" & "Automatic deployment to staging, manual deployment to production

【问题讨论】:

    标签: android gitlab gitlab-autodevops


    【解决方案1】:

    维护了一个“自动 devops 模板”here。使用该文件就像创建一个 .gitlab-ci.yml 文件(在您的 android 项目的根目录)然后将 include 该文件作为您要使用的模板一样简单:

    include:
      # https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Android.gitlab-ci.yml
      - template: Android.gitlab-ci.yml
    

    就是这样。

    (更进一步,保持在 java/android 版本的“前沿”,请参阅this answer

    【讨论】:

      猜你喜欢
      • 2017-08-23
      • 1970-01-01
      • 1970-01-01
      • 2016-09-29
      • 1970-01-01
      • 1970-01-01
      • 2015-09-20
      • 2010-12-01
      • 2015-09-04
      相关资源
      最近更新 更多