Use gerrit patch for coe csit
[integration/test.git] / csit / variables / coe / coe_play.yaml
index 53cccd449010e543bcd27ea5b029781131718cac..90e02d019b4319653fd816cd0fdb73d191a567cf 100644 (file)
       shell: curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
       args:
         creates: "{{ gopath }}/bin/dep"
+    - name: Show gerrit details
+      debug:
+        msg:
+          - "Fetch COE git repository https://git.opendaylight.org/gerrit/p/coe.git"
+          - "gerrit_branch {{ gerrit_branch }}"
+          - "gerrit_refspec {{ gerrit_refspec }}"
     - name: Fetch COE git repository
       git:
-        repo: 'https://git.opendaylight.org/gerrit/p/coe.git'
+        repo: "https://git.opendaylight.org/gerrit/p/coe.git"
+        version: "{{ gerrit_branch }}"
+        refspec: "{{ gerrit_refspec }}"
         dest: "{{ coe_path }}"
+    - name: List COE git repository recent patches
+      shell: "git --no-pager log --pretty=format:'%h %<(30)%ad %<(30)%cd %<(20,trunc)%an%d %s' -n10"
+      args:
+        chdir: "{{ coe_path }}"
     - name: Fetch odl-cni dependencies with dep
       shell: dep ensure -vendor-only
       args: