当前位置:网站首页>Jenkins continuous integration error stderr: fatal: unsafe repository ('/home/water/water' is owned by someone else)
Jenkins continuous integration error stderr: fatal: unsafe repository ('/home/water/water' is owned by someone else)
2022-07-23 13:19:00 【Honyelchak】
Project scenario :
In order to facilitate the later modification of the project , use Jenkins Continuous integration tools automatically build function Maven project .
Problem description
Error in first build :
Started by user water
Running as SYSTEM
Building in workspace /home/water/water
The recommended git tool is: NONE
using credential Honyelchak
Cloning the remote Git repository
Cloning repository https://xxxxxxxxx.git
> git init /home/water/water # timeout=10
Fetching upstream changes from https://xxxxxxxxx.git
> git --version # timeout=10
> git --version # 'git version 2.25.1'
using GIT_ASKPASS to set credentials gitee
> git fetch --tags --force --progress -- https://xxxxxxxxx.git +refs/heads/*:refs/remotes/origin/* # timeout=10
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git fetch --tags --force --progress -- https://xxxxxxxxx.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: fatal: unsafe repository ('/home/water/water' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory /home/water/water
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2671)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2096)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:618)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:847)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1216)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1294)
at hudson.scm.SCM.checkout(SCM.java:540)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1217)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:647)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:85)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:519)
at hudson.model.Run.execute(Run.java:1897)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:442)
ERROR: Error cloning remote repo 'origin'
Finished: FAILURE
Cause analysis :
as a result of jenkins:jenkins On the folder /home/water/water No authority !
Solution :
to jenkins The user to which it belongs grants permission
chown -R jenkins:jenkins /home/water/water
- If the user does not modify it, it is
jenkins:jenkins /home/water/waterIs the folder
边栏推荐
- How does redis implement persistence? Explain in detail the three triggering mechanisms of RDB and their advantages and disadvantages, and take you to quickly master RDB
- [daily training] 814. Binary tree pruning
- [offline voice topic ④] Anxin VC offline voice development board secondary development voice control LED light
- 【JZOF】07 重建二叉树
- 高压MOS管KNX42150 1500V/3A 应用于变频器电源-逆变器等
- Intercept the specified range data set from list < map >
- 力扣 剑指 Offer II 094. 最少回文分割
- Opencv video operation
- EasyGBS平臺出現錄像無法播放並存在RTMP重複推流現象,是什麼原因?
- Convert the specified seconds to minutes and seconds
猜你喜欢

【日常训练】814. 二叉树剪枝

北汇信息12岁啦|Happy Birthday

Beifu PLC and C transmit string type through ads communication

Outlook 教程,如何在 Outlook 中切换日历视图、创建会议?

Why build a local Yum warehouse?

【JZOF】07 重建二叉树

【JZOF】11旋转数组的最小数字

OpenCV图像处理(下) 边缘检测+模板匹配+霍夫变换

倍福PLC和C#通过ADS通信传输Bool数组变量

Quelle est la raison pour laquelle la plate - forme easygbs ne peut pas lire l'enregistrement vidéo et a un phénomène de streaming répété rtmp?
随机推荐
Shooting games lesson 1-2: using sprites
信号完整性(SI)电源完整性(PI)学习笔记(三十一)电源分配网路(三)
太空射击 Part 2-3: 子弹与敌人碰撞处理
Convert the specified seconds to minutes and seconds
com.mysql.cj.jdbc.exceptions. MysqlDataTruncation: Data truncation: Truncated incorrect DOUBLE value:
GOM引擎版本为什么玩家会自动掉线或闪退?
倍福PLC和C#通过ADS通信传输int数组类型变量
Feynman learning method (redis summary)
Record a reptile question bank
信号完整性(SI)电源完整性(PI)学习笔记(三十二)电源分配网路(四)
北汇信息12岁啦|Happy Birthday
Redis如何实现持久化?详细讲解RDB的三种触发机制及其优缺点,带你快速掌握RDB
费曼学习法(Redis总结)
Beifu PLC and C transmit bool array variables through ads communication
Ronge answer script production (latest in 2020)
常见的定时任务Scheduled cron 表达式
Intercept the specified range data set from list < map >
Paging collections using streams
编译与预处理
C language - big end storage and small end storage