-
Add a checkout step before the build step
-
ok,thank u very much! it works fine after adding checkout
-
close
-
Previous Value Current Value Open
Closed
| Type |
Question
|
| Priority |
Normal
|
| Assignee | |
| Labels |
No labels
|
Issue Votes (0)
onedev版本是12.0.2,麻烦看看是不是哪里配置缺少了? 1、通过server.sh console启动onedev 2、创建一个简单的shell脚本如hello.sh 3、创建一个server shell excecutor 4、构建的时候,会报错,感觉像是job excutor无法git到hello.sh脚本 21:53:07 Pending resource allocation... 21:53:07 Executing job (executor: test, server: 127.0.0.1:5710)... 21:53:07 Executing job with executor 'test'... 21:53:07 Copying job dependencies... 21:53:07 Running step "test"... 21:53:07 chmod: cannot access 'hello.sh': No such file or directory 21:53:07 /home/jack/share/onedev-main/server-product/target/onedev-12.0.2/temp/server/onedev-build-1-17-4/command/step-0.sh: 2: ./hello.sh: not found 21:53:07 Command exited with code 127 21:53:07 Step "test" is failed (0 seconds) 21:53:09 Job finished