We don't push automatically to xenadmin-ref.hg any longer, hence remove the relevant bits.

Also remove config.xml as completely out of sync with the confiuration on the build machine.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2016-11-01 21:49:26 +00:00
parent 1975675f53
commit 864386daa1
3 changed files with 0 additions and 143 deletions

View File

@ -30,36 +30,12 @@
set -eu set -eu
DISABLE_PUSH=1
source "$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/declarations.sh" source "$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/declarations.sh"
source ${XENADMIN_DIR}/mk/copy-build-output.sh source ${XENADMIN_DIR}/mk/copy-build-output.sh
if [ ${XS_BRANCH} = "trunk" ]
then
TRUNK_COLOUR=$(sh ${REPO}/mk/colour.sh)
TRUNK_COLOUR_L=$(echo ${TRUNK_COLOUR} | tr [:upper:] [:lower:])
if [ ${TRUNK_COLOUR_L} != "green" ]
then
echo "trunk is not green, disabling push"
DISABLE_PUSH=1
fi
fi
#update local xenadmin-ref.hg repository #update local xenadmin-ref.hg repository
cp ${OUTPUT_DIR}/{manifest,latest-*-build,xcversion} ${ROOT}/xenadmin-ref.hg cp ${OUTPUT_DIR}/{manifest,latest-*-build,xcversion} ${ROOT}/xenadmin-ref.hg
cd ${ROOT}/xenadmin-ref.hg && hg commit -u Jenkins -m "Latest successful build ${get_BUILD_ID}" cd ${ROOT}/xenadmin-ref.hg && hg commit -u Jenkins -m "Latest successful build ${get_BUILD_ID}"
if [ ${XS_BRANCH} = "trunk" ]
then
echo "Pushes are disabled on trunk."
else
if [ -z "${DISABLE_PUSH+xxx}" ]
then
cd ${ROOT}/xenadmin-ref.hg && hg push
else
echo "pushing to ssh://hg has been disabled"
fi
fi
set +u set +u

View File

@ -1,54 +0,0 @@
#!/bin/sh
# Copyright (c) Citrix Systems Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms,
# with or without modification, are permitted provided
# that the following conditions are met:
#
# * Redistributions of source code must retain the above
# copyright notice, this list of conditions and the
# following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the
# following disclaimer in the documentation and/or other
# materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
# CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#####################################
# Determine the colour of the trunk #
#####################################
#Setup:
ROOTURL=https://xenbuilder.uk.xensource.com
DEFAULT_OUTPUT=Red
#Get the cookie
curl -n -s -k $ROOTURL/plainlogin -o /dev/null -c /tmp/cookie$$
#If this fails then declare the trunk red as there is a problem with the server
#otherwise try to work out the actual color of the trunk
if [ $? -ne 0 ]; then
echo $DEFAULT_OUTPUT
exit 1
else
curl -n -s -k $ROOTURL/ -o - -b /tmp/cookie$$ | sed -ne 's/.*Trunk is.*\(Green\|Red\|Orange\).*/\1/Ip'
rm /tmp/cookie$$
fi
exit 0

View File

@ -1,65 +0,0 @@
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description></description>
<logRotator>
<daysToKeep>-1</daysToKeep>
<numToKeep>30</numToKeep>
<artifactDaysToKeep>-1</artifactDaysToKeep>
<artifactNumToKeep>-1</artifactNumToKeep>
</logRotator>
<keepDependencies>false</keepDependencies>
<properties/>
<scm class="hudson.plugins.mercurial.MercurialSCM">
<source>http://hg.uk.xensource.com/carbon/trunk/xenadmin.hg/</source>
<modules></modules>
<subdir>xenadmin.hg</subdir>
<clean>true</clean>
<forest>false</forest>
<browser class="hudson.plugins.mercurial.browser.HgWeb">
<url>http://hg.uk.xensource.com/carbon/trunk/xenadmin.hg/</url>
</browser>
</scm>
<quietPeriod>300</quietPeriod>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>true</blockBuildWhenUpstreamBuilding>
<triggers class="vector">
<hudson.triggers.SCMTrigger>
<spec>0-59/2 * * * *</spec>
</hudson.triggers.SCMTrigger>
</triggers>
<concurrentBuild>false</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>xenadmin.hg/mk/bumpBuildNumber.sh</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>xenadmin.hg/devtools/check-roaming.sh &amp;&amp; xenadmin.hg/devtools/i18ncheck/i18ncheck.sh &amp;&amp; xenadmin.hg/devtools/deadcheck/deadcheck.sh &amp;&amp; xenadmin.hg/devtools/spellcheck/spellcheck.sh</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>xenadmin.hg/mk/xenadmin-build.sh</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>xenadmin.hg/mk/tests-checks.sh</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>xenadmin.hg/mk/archive-push.sh</command>
</hudson.tasks.Shell>
</builders>
<publishers>
<hudson.plugins.nunit.NUnitPublisher>
<testResultsPattern>output/XenAdminTests.xml</testResultsPattern>
<debug>false</debug>
<keepJUnitReports>false</keepJUnitReports>
<skipJUnitArchiver>false</skipJUnitArchiver>
</hudson.plugins.nunit.NUnitPublisher>
<hudson.tasks.Mailer>
<recipients>#xencenter@citrite.net</recipients>
<dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
<sendToIndividuals>true</sendToIndividuals>
</hudson.tasks.Mailer>
</publishers>
<buildWrappers/>
</project>