0

我在 gilab-ci.yml 文件中使用以下代码

stages:
    - test

newman_tests:
    stage: test
    image:
        name: postman/newman
        entrypoint: [""]
    script:
        - newman --version
        - newman run ./Postman_Collections/APIAutomation.json

另外,这是我下面的 config.toml 文件。

concurrent = 1
check_interval = 0

[session_server]
  session_timeout = 1800

[[runners]]
  name = "Landlord Sales"
  url = "https://gitlab.shared.pub.tds.*****.com/"
  token = "<token>"
  executor = "shell"
  shell = "powershell"
  [runners.custom_build_dir]
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]
    [runners.cache.azure]

[[runners]]
  name = "AimoPractice"
  url = "https://gitlab.com/"
  token = "<token>"
  executor = "shell"
  shell = "powershell"
  [runners.custom_build_dir]
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]
    [runners.cache.azure]

这正在为https://gitlab.com/ url 执行。我正在使用如下特定的运行器: 在此处输入图像描述 执行管道后出现以下错误。

在此处输入图像描述

另外,我在常规工作的“if”statemets 中提到了以下解决方案 - $CI_COMMIT_TAG 通过它我知道我应该使用一些标签(如果我错了,请纠正我)

另外,如果我需要对代码进行任何更改,请告诉我。

4

0 回答 0