git scm module in jenkins should work better with gerrit

Bug #925236 reported by James E. Blair
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Core Infrastructure
Fix Released
Medium
Monty Taylor

Bug Description

The git scm module should be made to work better with testing random gerrit branches that may not get merged or may conflict, etc. It should do the equivalent of this job:

https://jenkins.openstack.org/job/template-gerrit-git-prep/configure

Which at the time of writing is:

#!/bin/bash -x
if [[ ! -e .git ]]; then
    git clone https://review.openstack.org/p/$GERRIT_PROJECT .
fi
git remote update
git reset --hard
git clean -x -f -d -q
git checkout $GERRIT_BRANCH
git reset --hard remotes/origin/$GERRIT_BRANCH
git clean -x -f -d -q
git fetch https://review.openstack.org/p/$GERRIT_PROJECT $GERRIT_REFSPEC
git merge FETCH_HEAD

Monty Taylor (mordred)
Changed in openstack-ci:
milestone: none → folsom
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Monty Taylor (mordred) wrote :

https://github.com/jenkinsci/git-plugin/pull/79 has been merged and released upstream. Still need to verify that the git scm module can be used directly.

Changed in openstack-ci:
assignee: nobody → Monty Taylor (mordred)
status: Triaged → Fix Committed
Monty Taylor (mordred)
Changed in openstack-ci:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.