pretty print git log output 75/78875/3
authorSam Hague <shague@redhat.com>
Wed, 19 Dec 2018 15:43:27 +0000 (10:43 -0500)
committerSam Hague <shague@redhat.com>
Thu, 20 Dec 2018 14:02:39 +0000 (14:02 +0000)
Change-Id: I01fd907056bea4a57211f94d6e808f115fde361f
Signed-off-by: Sam Hague <shague@redhat.com>
csit/variables/coe/coe_play.yaml

index 90e02d019b4319653fd816cd0fdb73d191a567cf..37cbfe748daceae4fba6d317e40e749fdb857c93 100644 (file)
@@ -28,6 +28,7 @@
       args:
         creates: "{{ gopath }}/bin/dep"
     - name: Show gerrit details
+      run_once: true
       debug:
         msg:
           - "Fetch COE git repository https://git.opendaylight.org/gerrit/p/coe.git"
         refspec: "{{ gerrit_refspec }}"
         dest: "{{ coe_path }}"
     - name: List COE git repository recent patches
+      run_once: true
       shell: "git --no-pager log --pretty=format:'%h %<(30)%ad %<(30)%cd %<(20,trunc)%an%d %s' -n10"
       args:
         chdir: "{{ coe_path }}"
+        register: git_log_output
+    - name: git log header
+      run_once: true
+      debug:
+        msg="Hash    Author Date                    Commit Date                    Author               Subject"
+    - name: git log output
+      run_once: true
+      debug:
+        var=git_log_output.stdout_lines
     - name: Fetch odl-cni dependencies with dep
       shell: dep ensure -vendor-only
       args: