gitblit

Git operations occasionally hang in Jenkins on Windows

点点圈 提交于 2019-12-03 05:20:33
We are running continuous Jenkins builds of a Git project hosted at Assembla. Jenkins is running on Tomcat 6 under its own user and generally works fine. However every once in a while (say once in every 10 builds), the checkout operation at the beginning of the build job simply hangs. At other times the Git tag operation at the end of the build also hangs. I believe this did not ever happen in command-line operation (on the same host with the same user). When hung, the Windows process tree shows taskhost.exe ? tomcat6.exe ? git.exe ? ssh.exe When externally killing the Git and ssh processes of

Perfectly working curl command fails when executed in a groovy script

这一生的挚爱 提交于 2019-12-03 01:42:52
I have a post commit hook (a groovy script) in gitblit to invoke a REST endpoint. In this script I am executing a curl command. But it seems to fail. The curl command works fine when executed from the commandline. Following is my groovy script. #!/usr/bin/env groovy def repoUrl= "https://gitblit.myhost.com/git/" + repository + ".git" json='{"repository":{"url":"'+repoUrl+'"}}' def response = "curl -v -k -X POST -H \"Content-Type: application/json\" -d '${json}' https://username:password@anotherhost.com:9443/restendpoint".execute().text println response repository is passed by gitblit to this

Gitblit在CentOS搭建Git服务器

匿名 (未验证) 提交于 2019-12-03 00:37:01
Gitblit官网: http://www.gitblit.com/ Gitblit下载地址: http://dl.bintray.com/gitblit/releases/ JDK1.8、gitblit-1.8.0 、CentOS 7.2 64位 上传 gitblit-1.8.0.tar.gz 安装包,进行解压 [root @VM_0_16_centos bin] # tar -zxvf gitblit-1.8.0.tar.gz 配置 Gitblit 服务 设置httpPort和httpsPort 进入Gilblit解压目录下的data目录下 [root @VM_0_16_centos gitblit] # cd gitblit-1.8.0/data/ 编辑 gitblit.properties 文件 web.enableRpcManagement = true # 配置http访问端口 server.httpPort = 7070 #配置https访问端口 server.httpsPort = 7071 如图示: 在 Gitblit 解压目录下,编辑 service-centos.sh 中的参数路径,改为自己 gitblit所在路径 # change theses values (default values) # Gitblit解压路径 GITBLIT_PATH = /usr

局域网代码托管服务端――gitblit在windows系统中的安装(GIT的服务端)

匿名 (未验证) 提交于 2019-12-02 23:32:01
一、环境要求。 一台配置了Java JDK1.8的计算机。 具体配置可以参考 https://jingyan.baidu.com/article/6dad5075d1dc40a123e36ea3.html 二、下载Gitblit.   下载地址: http://www.gitblit.com/ 三、解压缩下载的压缩包即可,无需安装。 四、创建用于存储资料的文件夹。 五、配置gitblit.properties 文件。 找到Git目录下的data文件下的defaults.properties文件,“记事本”打开。 找到 Git .repositoriesFolder(资料库路径),赋值为第七步创建好的文件目录。 3.找到server.httpPort,设定http协议的端口号 4.找到server.httpBindInterface,设定服务器的IP地址。这里就设定你的服务器IP。 5.找到server.httpsBindInterface,设定为localhost 6.保存,关闭文件 六、运行gitblit.cmd 批处理文件,双击 运行成功。 七、在浏览器中打开,现在就可以使用GitBlit了。默认用户名密码都是 admin 八、在windows中注册gitblit service 1、用notepad++打开installService.cmd 并设置gitblit的跟目录

GitBlit中出现 error: remote unpack failed: error Missing tree

我的梦境 提交于 2019-12-02 22:06:59
出现原因: 推送到远程的文件被本地git优化后,发送数据不一致。 解决方案: 本地gitblit客户端暂时不启用包检查。 git.checkReferencedObjectsAreReachable = false 参考文档: https://github.com/gitblit/gitblit/issues/704 https://github.com/gitblit/gitblit/issues/989 http://gitblit.com/faq.html 来源: oschina 链接: https://my.oschina.net/u/2319418/blog/3035176

把Gitblit变成Windows服务

独自空忆成欢 提交于 2019-12-02 22:06:45
第一步:试错 下载完Gitblit GO 1.8.0 for Windows 解压后运行installService.cmd 华丽的看到一串信息 然后,再看看服务列表:木有小gg~~ 第二步:解剖 打开installService.cmd文件,无视那些 @REM 可以看到 SET ARCH=amd64 "%CD%\%ARCH%\gitblit.exe" //IS//gitblit --DisplayName="gitblit" --Description="a pure Java Git solution" --Startup=auto --LogPath="%CD%\logs" --LogLevel=INFO --LogPrefix=gitblit --StdOutput=auto --StdError=auto --StartPath="%CD%" --StartClass=org.moxie.MxLauncher --StartMethod=main --StartParams="--storePassword;gitblit;--baseFolder;%CD%\data" --StartMode=jvm --StopPath="%CD%" --StopClass=org.moxie.MxLauncher --StopMethod=main --StopParams="-

Gitblit从一个服务器,迁移到另外一个服务器

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 22:06:34
http://gitblit.com/federation.html A Gitblit federation is a mechanism to clone repositories and keep them in sync from one Gitblit instance to another. Federation can be used to maintain a mirror of your Gitblit instance, to aggregate使聚集 repositories from developer workstations, or to initially clone groups of repositories to developer workstations. If you are/were a Subversion user you might think of this as svn-sync , but better. If your Gitblit instance allows federation and it is properly registered with another Gitblit instance, each of the non-excluded repositories of your Gitblit

Windows 7 下使用gitblit + git 搭建小组内文件版本控制环境

那年仲夏 提交于 2019-12-02 22:06:20
一、GitBlit下载及配置 使用前先看下GitBlit的百科介绍,很简洁:需要java运行环境;是一个纯 Java 库用来管理、查看和处理Git 资料库。即一个基于Java的分布式版本控制系统。 1、GitBlit的下载 (1)可以去 http://www.gitblit.com/ 下载最新版本,这里提供一个1.8版本的网盘链接 https://pan.baidu.com/s/1zTSvdYG8PW1o49Z-cuGoWw 密码:iv3c (2)下载之后直接解压即可,可以看到其目录结构如下 2、GitBlit配置 (1)进入data目录,可以看到defaults.properties、gitblit.properties两个属性文件 (2)打开gitblit.properties可以看到其引入了defaults.properties文件,也就是说我们在defaults.properties中配置信息即可 (3)修改配置信息前,先复制一份作为备份;然后开始修改,用文本编辑器打开defaults.properties文件,可以看到参数都有其注释。 这里改下服务器端口:server.httpPort就好,任意改个未占用的端口号,https的不需要改 注:还有两个参数,服务器绑定地址不用设置,否则局域网内其他的地址访问不了 (4)回到软件根目录,打开gitblit.cmd,启动服务(PS

Git版本服务器搭建(CentOS)--gitblit

坚强是说给别人听的谎言 提交于 2019-12-02 22:06:02
一、CentOS下安装 gitblit-1.7.1.jar 1.下载gitblit-1.7.1.jar 2.目录结构 3.进入data目录 4.复制defaules.properties配置文件为my.peoperties 5.修改my.peoperties 6.改gitblit.properties 7.启动gitblit nohup java -jar gitblit.jar > gitblit.log & 8.启动日志输出的信息 (开启端口号8080权限) 二、配置gitblit 浏览器打开 http://47.88.29.228:8080 登录 admin 用户,进行成员、团队,项目配置,默认用户名密码为 admin 1.用户管理 2.新建团队 3.分配用户和权限 4.登录个人用户、查看用户仓库的信息 4.复制git版本库的链接 三、idea配置git(上传项目) 1.本机安装windows版本的git,idea配置git.exe 2.新建项目myGit (上传新项目) 3.Push 4. 查看操作记录 来源: oschina 链接: https://my.oschina.net/u/2439183/blog/599163

在Windows上搭建Git Server

为君一笑 提交于 2019-12-02 03:01:25
作为版本控制工具大多公司会选用Git,但svn也具有一定的优势,在对开源项目管理方面,Git具有一定的优势,我们可以将自己的项目放到GitHub上面,供大家交流学习,但一些企业项目和需要保密的闭源项目如果选择使用GitHub托管的话就会收取昂贵的费用。 所以对于一些公司项目就需要搭建自己的本地Git服务器,浏览大量网页后发现基本绝大部分Git服务都是在Linux上搭建的,所以很少有windows上搭建的教程,但 Git工具版本: Git-2.17.0-64-bit.exe 和 Gitblit1.8.0.zip ,这两个事先下载好。 需要支持的依赖: jdk-8u171-windows-x64.exe ,去Java官网下就好了。 1. 因为Git需要Java环境的支持,所以 首先要安装好Java环境 。Java环境安装这里不在叙述,如有问题去网上查找一下安装教程即可。Java环境安装好之后,配置环境变量。配置好环境变量如图1所示: 图1 这里的路径是根据我本机Java的安装路径,请根据你自己本机的安装路径进行修改。 环境变量配置完成之后运行cmd,在cmd命令行窗口中输入 javac ,如果输出信息如下图所示就表示你的Java环境安装好了。接下来就可以开始进行Git相关的环境配置和安装。 2. Java环境安装好之后。首先解压下载好的gitblit-1.8.0