我对 Gitlab CI 管道workflow:rules和job:rules
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "push"'
- if: '$CI_PIPELINE_SOURCE != "schedule"'
Run Code Online (Sandbox Code Playgroud)
和
test:
stage: test
image: image
script:
- echo "Hello world!"
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
Run Code Online (Sandbox Code Playgroud)
如果它们都在同一个 GitLab-ci YAML 文件中使用,会发生什么。
我正在使用 Molecule 来测试我的 ansible 角色。在重新启动我的服务器之前工作正常。然而,之后,当我跑molecule create
它正在跳过创建过程:跳过,实例已经创建。但是,什么都没有运行:
(myenv)[root]# docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
Run Code Online (Sandbox Code Playgroud)
运行时molecule converge。我收到此错误:
TASK [Gathering Facts] *********************************************************
fatal: [test_instance]: UNREACHABLE! => {"changed": false, "msg": "Authentication or permission failure.
In some cases, you may have been able to authenticate and did not have permissions on the target directory.
Consider changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\". Failed command was:
( umask 77 && mkdir …Run Code Online (Sandbox Code Playgroud)