Repository navigation
Jenkins (pitfalls)
Ruslan Baratov edited this page Jul 12, 2014
·
3 revisions
- Error message
hudson.plugins.git.GitException: Failed to fetch from ...
Caused by: hudson.plugins.git.GitException: Command "git.exe clean -fdx" returned status code 1:
- Reason
Possible reason is that some internal paths from build directory is too long for windows
- Solution
Use native windows command rmdir before git checkout, for example python script which remove _builds directory
(plugin used):
import os
if os.name == 'nt':
# Fix windows error: `path too long`
os.system('rmdir _builds /s /q')- Same reason but another solution. Tune git: windows path too long for git
- Reason
Path too long somewhere in a build step.
- Solution (
HUNTER_JUNCTIONS)
Create a directory with a short path (like: C:\jenkins\junctions) and set an environment variable HUNTER_JUNCTIONS to point to this directory. Hunter will detect this variable and use this directory
to create junction point.
You can verify that directory used by adding cmake variable HUNTER_STATUS_DEBUG=ON:
-- [hunter *** DEBUG ***] HUNTER_JUNCTIONS: C:/jenkins/junctions
-- [hunter *** DEBUG ***] Create windows junction:
-- [hunter *** DEBUG ***] from: C:/jenkins/home/workspace/HunterGate/CONFIG/Debug/TOOLCHAIN/nmake-vs2013-x64/label/windows/_builds/nmake-vs2013-x64-Debug/_3rdParty/hunter/external
-- [hunter *** DEBUG ***] to: C:/jenkins/junctions/lL1Pzqi5vb
Junction created for C:\jenkins\junctions\lL1Pzqi5vb <<===>> C:\jenkins\home\workspace\HunterGate\CONFIG\Debug\TOOLCHAIN\nmake-vs2013-x64\label\windows\_builds\nmake-vs2013-x64-Debug\_3rdParty\hunter\external
...
-- [hunter *** DEBUG ***] Generate step successful (dir: C:/jenkins/junctions/lL1Pzqi5vb)
...
-- [hunter *** DEBUG ***] Run build
-- [hunter *** DEBUG ***] Build step successful (dir: C:/jenkins/junctions/lL1Pzqi5vb)
Feel free to open new issue if you want to ask any questions.
- HOME
- Packages
- Android-Apk
- Android-Modules
- Android-SDK
- ArrayFire
- Assimp
- Async++
- Avahi
- BZip2
- Boost
- Boost.compute
- Boost.process
- CLAPACK
- Comet
- CppNetlib.URI
- CsvParserCPlusPlus
- Eigen
- Expat
- GPUImage
- GSL
- GTest
- GMock
- Igloo
- IntSizeof
- Jpeg
- JsonSpirit
- LLVM (Clang)
- Leathers
- Libssh2
- Lua
- MySQL-client
- nlohmann::json
- OpenCV
- OpenSSL
- PNG
- Poco C++
- PostgreSQL
- Protobuf
- Qt
- Qt-Android-CMake
- QtQmlManager
- RapidJSON
- Sugar
- TIFF
- Washer
- WTL
- ZeroMQ
- ZMQPP
- ZLIB
- rabbitmq-c
- sparsehash
- ccv
- cereal
- convertutf
- crashpad
- cvmatio
- dest
- dlib
- eos
- flatbuffers
- fmt
- freetype
- glm
- glog
- half
- hdf5
- ios_sim
- irrXML
- libyuv
- log4cplus
- minizip
- odb-pgsql
- odb-mysql
- ogles_gpgpu
- openddlparser
- poly2tri
- polyclipping
- spdlog
- szip
- thread-pool-cpp
- tinydir
- websocketpp
- msgpack
- wxWidgets
- xgboost
Don't see packages you need? Feel free to leave a package request.