Jenkins git的位置 [英] Jenkins git location

查看:97
本文介绍了Jenkins git的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到jenkins存储git存储库的目录,我需要能够设置AWS开发工具,以便我可以运行shell命令aws.push到beantalk.出于某种原因,包含工作文件的目录似乎具有与之关联的错误分支信息.

I'm trying to find the directory where jenkins stores the git repository, I need to be able to setup the AWS dev tools so I can run the shell command to aws.push up to beanstalk. For some reason the directory with the working files appears to have incorrect branch info associated with it.

jenkins@192.168.1.1:~/jobs/myPHPapp/workspace$ git status
# Not currently on any branch.
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   default/

从github导入的jenkins分支是我的'dev'分支,很奇怪,它仅显示master. Jenkins是否将存储库的另一个副本保存在其他位置?

The branch jenkins imports from github is my 'dev' branch, weird that it only shows master. Does Jenkins save another copy of the repository elsewhere?

推荐答案

您没错,Jenkins将git存储库克隆到${JENKINS_HOME}/jobs/<JOB_NAME>/workspace

You've got that right, Jenkins clones git repository to the job workspace in ${JENKINS_HOME}/jobs/<JOB_NAME>/workspace

您应该尝试清除工作空间,然后开始另一个构建.如果有帮助,您可以将Jenkins设置为在完成构建后自动清除工作区.如果这样做没有帮助,则必须仔细检查此作业生成的控制台输出,如果需要进一步的帮助,则可以将其发布.

You should try clearing the workspace and then starting another build. If that helps you can set up Jenkins to automatically clear the workspace after the build is done. If that doesn't help, you have to carefully inspect the console output that this job generates and maybe post it if you need further assistance.

这篇关于Jenkins git的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆