0%

jenkins 使用 repo 管理代码出现错误

Jenkinsrepo环境变量设置

Error

[EnvInject] - Loading node environment variables.
Building remotely on mini-slave in workspace /Users/build/jenkins/workspace/job-64
[Destination_Directory] $ repo init -u ssh://source.company.local/git/product-manifest -b feature_branch
java.io.IOException: Cannot run program "repo" (in directory "/Users/build/jenkins/workspace/job-64/Destination_Directory"): error=2, No such file or directory
at java.lang.ProcessBuilder.processException(ProcessBuilder.java:478)

Settings

jenkins -> manage -> configure -> Repo

Ref

  1. Repo(Gerrit) is behaving differently than from the command line.