[ros-users] [Discourse.ros.org] [Buildfarm] Clone depth for PR devel jobs

Dirk Thomas ros.discourse at gmail.com
Mon Feb 27 21:15:50 UTC 2017




For example [this job](http://build.ros.org/view/Lpr/job/Lpr__catkin__ubuntu_xenial_amd64/1/consoleFull) has the following output:

```
Cloning the remote Git repository
Cloning repository https://github.com/ros/catkin.git
 > git init /home/jenkins-slave/workspace/Lpr__catkin__ubuntu_xenial_amd64/catkin_workspace/src/catkin # timeout=10
Fetching upstream changes from https://github.com/ros/catkin.git
 > git --version # timeout=10
 > git fetch --tags --progress https://github.com/ros/catkin.git +refs/heads/*:refs/remotes/origin/*
 > git config remote.origin.url https://github.com/ros/catkin.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://github.com/ros/catkin.git # timeout=10
Fetching upstream changes from https://github.com/ros/catkin.git
 > git fetch --tags --progress https://github.com/ros/catkin.git +refs/pull/*:refs/remotes/origin/pr/*
 > git rev-parse refs/remotes/origin/pr/857/merge^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/pr/857/merge^{commit} # timeout=10
Merging Revision 3eb35f296a2a6b37464f9a125525c2255e9545ca (refs/remotes/origin/pr/857/merge) to origin/kinetic-devel, UserMergeOptions{mergeRemote='origin', mergeTarget='kinetic-devel', mergeStrategy='default', fastForwardMode='--ff'}
 > git rev-parse origin/kinetic-devel^{commit} # timeout=10
 > git config core.sparsecheckout # timeout=10
 > git checkout -f origin/kinetic-devel
 > git merge --ff 3eb35f296a2a6b37464f9a125525c2255e9545ca # timeout=10
 > git rev-parse HEAD^{commit} # timeout=10
Seen branch in repository origin/alt_tmp_setup_location
  <many more>
Seen branch in repository origin/wjwwood-patch-1
Seen 629 remote branches
Checking out Revision 3eb35f296a2a6b37464f9a125525c2255e9545ca (origin/pr/857/merge, origin/kinetic-devel)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 3eb35f296a2a6b37464f9a125525c2255e9545ca
```

You can find the template for the job configuration here: https://github.com/ros-infrastructure/ros_buildfarm/blob/master/ros_buildfarm/templates/snippet/scm_git.xml.em Maybe that helps you finding the difference.






---
[Visit Topic](https://discourse.ros.org/t/clone-depth-for-pr-devel-jobs/419/14) or reply to this email to respond.




More information about the ros-users mailing list