我使用的是GitLab CI,集成了GitLab以及推荐的运行器辅助服务器。一切看起来都是正确配置的。它检测我的提交并运行构建步骤,我可以看到输出。
至少对于以下默认工作:
git submodule update --init
ls -la
我试着用两个步骤添加第二个任务:
npm install
gulp ci
我使用的是git clone
,所以我想每次运行安装。
我运行了构建,但是,它只是重复了第一个工作。然后我删除了我的第二份工作,把所有的步骤放在一起:
npm install
gulp ci
git submodule update --init
ls -la
但是,来自构建的输出仍然与它只是默认任务时的输出完全相同。就像这样:
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>
有什么想法吗?当我更改构建脚本以使其生效时,是否需要清除一些缓存,或者单击哪些按钮(除了对设置进行保存更改之外)?
谢谢。
发布于 2015-02-11 18:49:39
这似乎是一个有点用户错误,有点差的UI。
我试图通过进入一个构建并按“重试”来测试我的新构建设置。显然,这个重新运行与使用的构建步骤相同。它不使用当前的项目构建步骤。
当我对项目本身进行新的提交时,它会被新的构建步骤使用。
据我所见,没有一个按钮可以使用当前的构建步骤运行一个新的构建。似乎唯一的方法是将新的提交推到代码库本身。=S
它看起来唯一的方法是通过GitLab点击来自服务>GitLab CI的测试设置。但是,现在运行该程序显然存在一个bug:https://gitlab.com/gitlab-org/gitlab-ci/issues/65
发布于 2015-05-06 11:53:28
目前,从7.8.1开始,唯一的方法就是提交
https://stackoverflow.com/questions/28461851
复制相似问题