小编Raa*_*l L的帖子

GITLAB CI 管道未触发

我已经为 GitLab CI/CD 编写了这个 yml 文件。有一个已配置并正在运行的共享运行器。我是第一次这样做,不确定我哪里出错了。我在 repo 上的 Angular js 项目有一个 gulp 构建文件,并且在本地计算机上完美运行。此代码只需在我的运行程序所在的虚拟机上触发该代码即可。提交时管道不显示任何作业。让我知道哪些地方需要改正!

image: docker:latest

cache:
  paths:
    - node_modules/

deploy_stage:
  stage: build
  only:
    - master
  environment: stage
  script:
  - rmdir -rf "build"
  - mkdir "build"
  - cd "build"
  - git init
  - git clone "my url"
  - cd "path of cloned repository"
  - gulp build
Run Code Online (Sandbox Code Playgroud)

continuous-integration gitlab

12
推荐指数
2
解决办法
2万
查看次数

标签 统计

continuous-integration ×1

gitlab ×1