Merge "Re-enable temprevert/cherry-pick/pin functionality"
This commit is contained in:
commit
0c52118233
|
@ -16,6 +16,7 @@ function temprevert(){
|
|||
# Abort on fail so we're not left in a conflict state
|
||||
git revert --no-edit $2 || git revert --abort || true
|
||||
popd
|
||||
DELOREAN_BUILD_REFS="${DELOREAN_BUILD_REFS:-} $1"
|
||||
}
|
||||
|
||||
# Pin to a commit for tripleo ci
|
||||
|
@ -33,6 +34,7 @@ function pin(){
|
|||
pushd $TRIPLEO_ROOT/$1
|
||||
git reset --hard $2
|
||||
popd
|
||||
DELOREAN_BUILD_REFS="${DELOREAN_BUILD_REFS:-} $1"
|
||||
}
|
||||
|
||||
# Cherry-pick a commit for tripleo ci
|
||||
|
@ -55,6 +57,7 @@ function cherrypick(){
|
|||
# Abort on fail so we're not left in a conflict state
|
||||
git cherry-pick FETCH_HEAD || git cherry-pick --abort
|
||||
popd
|
||||
DELOREAN_BUILD_REFS="${DELOREAN_BUILD_REFS:-} $1"
|
||||
|
||||
# Export a DIB_REPOREF variable as well
|
||||
export DIB_REPOREF_${PROJ_NAME//-/_}=$REFSPEC
|
||||
|
@ -245,7 +248,7 @@ function postci(){
|
|||
}
|
||||
|
||||
function delorean_build_and_serve {
|
||||
DELOREAN_BUILD_REFS=
|
||||
DELOREAN_BUILD_REFS=${DELOREAN_BUILD_REFS:-}
|
||||
for PROJFULLREF in $ZUUL_CHANGES ; do
|
||||
PROJ=$(filterref $PROJFULLREF)
|
||||
# If ci is being run for a change to ci its ok not to have a ci produced repository
|
||||
|
|
|
@ -51,6 +51,9 @@ sudo iptables -I INPUT -p tcp --dport 8766 -j ACCEPT
|
|||
|
||||
trap "exit_val=\$?; [ \$exit_val != 0 ] && echo ERROR DURING PREVIOUS COMMAND ^^^ && echo 'See postci.txt in the logs directory for debugging details'; postci \$exit_val 2>&1 | ts '%Y-%m-%d %H:%M:%S.000 |' > $WORKSPACE/logs/postci.log 2>&1" EXIT
|
||||
|
||||
# Tempreverts/cherry-picks/pins go here. For example:
|
||||
# temprevert tripleo-common af27127508eabf2b6873713e5e1507fa92b5f5b3 1623606
|
||||
|
||||
delorean_build_and_serve
|
||||
|
||||
# Since we've moved a few commands from this spot before the wget, we need to
|
||||
|
|
|
@ -49,6 +49,9 @@ sudo yum -y install wget python-simplejson yum-plugin-priorities
|
|||
|
||||
trap "exit_val=\$?; [ \$exit_val != 0 ] && echo ERROR DURING PREVIOUS COMMAND ^^^ && echo 'See postci.txt in the logs directory for debugging details'; postci \$exit_val 2>&1 | ts '%Y-%m-%d %H:%M:%S.000 |' > $WORKSPACE/logs/postci.log 2>&1" EXIT
|
||||
|
||||
# Tempreverts/cherry-picks/pins go here. For example:
|
||||
# temprevert tripleo-common af27127508eabf2b6873713e5e1507fa92b5f5b3 1623606
|
||||
|
||||
delorean_build_and_serve
|
||||
|
||||
# Since we've moved a few commands from this spot before the wget, we need to
|
||||
|
|
Loading…
Reference in New Issue