1

具有此任务配置:

config:
  platform: linux
  inputs:
    - name: resource_to_run_in
    - name: resource_with_scripts
  run:
    path: resource_with_scripts/script.sh
    dir: resource_to_run_in

我收到以下错误:

Backend error: Exit status: 500, message: {"Type":"ExecutableNotFoundError","Message":"exec failed: container_linux.go:344: starting container process caused \"exec: \\\"resource_with_scripts/script.sh\\\": stat resource_with_scripts/script.sh: no such file or directory\"\n","Handle":"","ProcessID":"","Binary":""}

我期待 Concourse 运行script.sh资源目录中的绝对路径resource_to_run_in

我怎样才能做到这一点?

4

1 回答 1

1

我发现的唯一方法是使用点导航:

config:
  platform: linux
  inputs:
    - name: resource_to_run_in
    - name: resource_with_scripts
  run:
    path: ../resource_with_scripts/script.sh
    dir: resource_to_run_in

这样它就可以工作,我仍然希望 Concourse 在运行时将这些资源名称解析为绝对路径(而不向用户显示它们)

于 2019-09-09T07:45:37.087 回答