首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >GitLab CI -生成未运行配置的作业

GitLab CI -生成未运行配置的作业
EN

Stack Overflow用户
提问于 2015-02-11 18:35:31
回答 2查看 2.9K关注 0票数 0

我使用的是GitLab CI,集成了GitLab以及推荐的运行器辅助服务器。一切看起来都是正确配置的。它检测我的提交并运行构建步骤,我可以看到输出。

至少对于以下默认工作:

代码语言:javascript
运行
复制
git submodule update --init
ls -la

我试着用两个步骤添加第二个任务:

代码语言:javascript
运行
复制
npm install
gulp ci

我使用的是git clone,所以我想每次运行安装。

我运行了构建,但是,它只是重复了第一个工作。然后我删除了我的第二份工作,把所有的步骤放在一起:

代码语言:javascript
运行
复制
npm install
gulp ci
git submodule update --init
ls -la

但是,来自构建的输出仍然与它只是默认任务时的输出完全相同。就像这样:

代码语言:javascript
运行
复制
cd /home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds && git clone https://gitlab-ci-token:<my-git-project-in-gitlab> project-3 && cd project-3 && git checkout aded9a5a66d754ef41504669e09fbd7393490a24
Cloning into 'project-3'...
Note: checking out 'aded9a5a66d754ef41504669e09fbd7393490a24'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at aded9a5... Merge branch 'master' of <my-repo>
cd /home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds/project-3 && git reset --hard && git checkout aded9a5a66d754ef41504669e09fbd7393490a24
HEAD is now at aded9a5 Merge branch 'master' of <my-repo>
HEAD is now at aded9a5... Merge branch 'master' of <my-repo>
git submodule update --init
ls -la
<ls file list>

有什么想法吗?当我更改构建脚本以使其生效时,是否需要清除一些缓存,或者单击哪些按钮(除了对设置进行保存更改之外)?

谢谢。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2015-02-11 18:49:39

这似乎是一个有点用户错误,有点差的UI。

我试图通过进入一个构建并按“重试”来测试我的新构建设置。显然,这个重新运行与使用的构建步骤相同。它不使用当前的项目构建步骤。

当我对项目本身进行新的提交时,它会被新的构建步骤使用。

据我所见,没有一个按钮可以使用当前的构建步骤运行一个新的构建。似乎唯一的方法是将新的提交推到代码库本身。=S

它看起来唯一的方法是通过GitLab点击来自服务>GitLab CI的测试设置。但是,现在运行该程序显然存在一个bug:https://gitlab.com/gitlab-org/gitlab-ci/issues/65

票数 0
EN

Stack Overflow用户

发布于 2015-05-06 11:53:28

目前,从7.8.1开始,唯一的方法就是提交

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28461851

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档