我正在使用GitLab的CI组件,我收到此错误:
The system cannot find the path specified.
当我尝试访问脚本中的映射网络驱动器时 . 当我尝试从我的PC(运行该服务的同一台)正常访问驱动器时,我可以看到所有映射的驱动器 .
这是.gitlab-yml中的脚本:
variables:
PROJECT_NAME: "TestApp"
STAGING_PATH: X:\some\network\location\%PROJECT_NAME%
stages:
- build
- deploy
build:
stage: build
script:
- echo "starting build for %PROJECT_NAME% at %TIME%"
...
artifacts:
name: "%PROJECT_NAME%"
paths:
- '%PROJECT_NAME%/bin/Release'
expire_in: 1 week
deploy:
stage: deploy
script:
- echo "Deploy to staging server"
- dir "X:" << ERROR HAPPENS HERE
- net use
dependencies:
- build
environment:
name: staging
only:
- master
我已经使用 net use 命令列出了它可以看到的网络位置,但该列表也是空的 . 有没有办法让gitlab-runner看到这些网络位置?
我使用的跑步者是一个可获得的Windows二进制文件here . 配置toml文件是:
concurrent = 1
check_interval = 0
[[runners]]
name = "Haroon-PC"
url = "http://ae-ubuntu/"
token = "fd84211a6d37d88d4903317c85ce7a"
executor = "shell"
[runners.cache]