为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
发布于 2021-11-23 15:18:50
有一个"auto devops template“维护着here。利用该文件非常简单,只需创建一个.gitlab-ci.yml
文件(在安卓项目的根目录下),然后将该文件include
为您想要使用的模板:
include:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Android.gitlab-ci.yml
- template: Android.gitlab-ci.yml
就这样。
(要更进一步并保持在java/安卓版本的“前沿”,请参阅this answer)
https://stackoverflow.com/questions/70083395
复制相似问题