Я установил jenkins на ssh-сервер на моей машине с Ubuntu. Я создал работу, которая создает проект C ++.
Задание выполняет команду оболочки:
cd exact-arithmetic/
qmake exact-arithmetic.pro
make
При сборке задания я получаю следующую ошибку
Building in workspace /var/lib/jenkins/workspace/integerBuild
Cloning the remote Git repository
Cloning repository REPONAME
> git init /var/lib/jenkins/workspace/integerBuild # timeout=10
Fetching upstream changes from REPONAME
> git --version # timeout=10
using GIT_ASKPASS to set credentials
> git fetch --tags --progress REPONAME +refs/heads/*:refs/remotes/origin/*
> git config remote.origin.url REPONAME # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url REPONAME # timeout=10
Fetching upstream changes from REPONAME
using GIT_ASKPASS to set credentials
> git fetch --tags --progress REPONAME +refs/heads/*:refs/remotes/origin/*
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision d1d90929149a6de918bae21bdc6710c1965a81a5 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f d1d90929149a6de918bae21bdc6710c1965a81a5
Commit message: "Peronalisation files for git"
> git rev-list --no-walk d1d90929149a6de918bae21bdc6710c1965a81a5 # timeout=10
[integerBuild] $ /bin/sh -xe /tmp/jenkins5258842808869431608.sh
+ cd exact-arithmetic/
/tmp/jenkins5258842808869431608.sh: 2: cd: can't cd to exact-arithmetic/
Build step 'Execute shell' marked build as failure
[WS-CLEANUP] Deleting project workspace...[WS-CLEANUP] done
Finished: FAILURE
У Дженкинса нет проблем с подключением к репо. Когда я просматриваю репозиторий github, я вижу, что каталог точно арифметический существует.
Однако я выполнил задание, которое выполняет командную строку ls, и ни один из моих каталогов не появился. Я не уверен, что сделал неправильно, и, похоже, нашел много полезной информации.
Любая помощь приветствуется.