繁体   English   中英

GitLab CI - 构建未运行已配置的作业

[英]GitLab CI - Build not running configured Job(s)

我正在使用与GitLab集成的GitLab CI,以及为跑步者推荐的辅助服务器。 一切似乎都已正确配置。 它检测到我的提交并运行构建步骤,然后可以看到输出。

至少对于以下默认作业:

git submodule update --init
ls -la

我尝试只用两个步骤添加第二个作业:

npm install
gulp ci

我正在使用git clone ,所以我想每次都运行install。

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

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>

有任何想法吗? 更改构建脚本以使其生效时,是否需要清除某些缓存或需要单击的按钮(除了“保存设置更改”)?

谢谢。

看来这有点用户错误,UI有点差。

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

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

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

看起来唯一的方法是通过GitLab点击服务> GitLab CI中的测试设置...但是,现在显然有一个错误: https//gitlab.com/gitlab-org/gitlab-ci/问题/ 65

当前从7.8.1开始,唯一的方法是进行提交

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM