1<?xml version='1.0' encoding='UTF-8'?>
  2<project>
  3  <actions/>
  4  <description>Test the installed CHART-EPS OPE website and command line tools</description>
  5  <keepDependencies>false</keepDependencies>
  6  <properties>
  7    <hudson.model.ParametersDefinitionProperty>
  8      <parameterDefinitions>
  9        <hudson.model.BooleanParameterDefinition>
 10          <name>BUILD</name>
 11          <description>Initial configuration step</description>
 12          <defaultValue>true</defaultValue>
 13        </hudson.model.BooleanParameterDefinition>
 14        <hudson.model.BooleanParameterDefinition>
 15          <name>WEB</name>
 16          <description>Test the internal OPE website works</description>
 17          <defaultValue>true</defaultValue>
 18        </hudson.model.BooleanParameterDefinition>
 19        <hudson.model.BooleanParameterDefinition>
 20          <name>CMD</name>
 21          <description>Test command line access</description>
 22          <defaultValue>false</defaultValue>
 23        </hudson.model.BooleanParameterDefinition>
 24        <hudson.model.BooleanParameterDefinition>
 25          <name>EXT_WEB</name>
 26          <description>Test the external access website works</description>
 27          <defaultValue>true</defaultValue>
 28        </hudson.model.BooleanParameterDefinition>
 29      </parameterDefinitions>
 30    </hudson.model.ParametersDefinitionProperty>
 31  </properties>
 32  <scm class="org.jenkinsci.plugins.multiplescms.MultiSCM" plugin="multiple-scms@0.3">
 33    <scms>
 34      <hudson.plugins.mercurial.MercurialSCM plugin="mercurial@1.50.1">
 35        <source>/tcc1/home/elson/chart</source>
 36        <modules></modules>
 37        <revisionType>BRANCH</revisionType>
 38        <revision>default</revision>
 39        <subdir>chart</subdir>
 40        <clean>false</clean>
 41        <credentialsId></credentialsId>
 42        <disableChangeLog>false</disableChangeLog>
 43      </hudson.plugins.mercurial.MercurialSCM>
 44      <hudson.plugins.mercurial.MercurialSCM plugin="mercurial@1.50.1">
 45        <source>/tcc1/home/elson/charteps</source>
 46        <modules></modules>
 47        <revisionType>BRANCH</revisionType>
 48        <revision>default</revision>
 49        <subdir>charteps</subdir>
 50        <clean>false</clean>
 51        <credentialsId></credentialsId>
 52        <disableChangeLog>false</disableChangeLog>
 53      </hudson.plugins.mercurial.MercurialSCM>
 54    </scms>
 55  </scm>
 56  <canRoam>true</canRoam>
 57  <disabled>false</disabled>
 58  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
 59  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
 60  <triggers>
 61    <hudson.triggers.TimerTrigger>
 62      <spec>0 4 * * *</spec>
 63    </hudson.triggers.TimerTrigger>
 64  </triggers>
 65  <concurrentBuild>false</concurrentBuild>
 66  <builders>
 67    <hudson.tasks.Shell>
 68      <command>if [ &quot;$BUILD&quot; = &quot;true&quot; ]; then
 69  echo top
 70fi</command>
 71    </hudson.tasks.Shell>
 72    <hudson.tasks.Shell>
 73      <command>rm -f pytest-web.xml
 74touch pytest-web.xml
 75if [ &quot;$WEB&quot; = &quot;true&quot; ]; then
 76  CHART_WEB=&quot;http://chart/eps&quot; PYTHONPATH=$PWD/chart:$PWD/charteps py.test -v --junitxml=pytest-web.xml charteps/charteps/tests/install/test_server.py || :
 77fi
 78</command>
 79    </hudson.tasks.Shell>
 80    <hudson.tasks.Shell>
 81      <command>rm -f pytest-cmd.xml
 82touch pytest-cmd.xml
 83if [ &quot;$CMD&quot; = &quot;true&quot; ]; then
 84  PATH=~chart/charteps/bin:$PATH PYTHONPATH=$PWD/chart:$PWD/charteps py.test -v --junitxml=pytest-cmd.xml charteps/charteps/tests/install/test_cmd.py || :
 85fi
 86</command>
 87    </hudson.tasks.Shell>
 88    <hudson.tasks.Shell>
 89      <command>rm -f pytest-extweb.xml
 90touch pytest-extweb.xml
 91if [ &quot;$EXT_WEB&quot; = &quot;true&quot; ]; then
 92<<<hidden due to potential security issue>>>
 93  CHART_WEB=http://chart.eumetsat.int PATH=~chart/charteps/bin:$PATH CHART_SETTINGS_MODULE=charteps.settings PYTHONPATH=$PWD/chart py.test -v --junitxml=pytest-extweb.xml charteps/charteps/tests/install/test_ext_server.py || :
 94fi
 95</command>
 96    </hudson.tasks.Shell>
 97  </builders>
 98  <publishers>
 99    <hudson.tasks.junit.JUnitResultArchiver plugin="junit@1.2-beta-4">
100      <testResults>pytest-web.xml,pytest-extweb.xml</testResults>
101      <keepLongStdio>false</keepLongStdio>
102      <testDataPublishers/>
103      <healthScaleFactor>1.0</healthScaleFactor>
104    </hudson.tasks.junit.JUnitResultArchiver>
105  </publishers>
106  <buildWrappers>
107    <hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@0.4.1">
108      <colorMapName>xterm</colorMapName>
109    </hudson.plugins.ansicolor.AnsiColorBuildWrapper>
110  </buildWrappers>
111</project>