jenkins-redwood-current-config.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <project>
  3. <actions/>
  4. <description></description>
  5. <keepDependencies>false</keepDependencies>
  6. <properties>
  7. <hudson.model.ParametersDefinitionProperty>
  8. <parameterDefinitions>
  9. <hudson.model.StringParameterDefinition>
  10. <name>RELEASE_NUMBER</name>
  11. <description>This is the BUILD release number</description>
  12. <defaultValue>1</defaultValue>
  13. </hudson.model.StringParameterDefinition>
  14. <hudson.model.StringParameterDefinition>
  15. <name>SOURCES_VERSION</name>
  16. <description>This is the software version to be downloaded from the sources site.</description>
  17. <defaultValue>current</defaultValue>
  18. </hudson.model.StringParameterDefinition>
  19. <hudson.model.BooleanParameterDefinition>
  20. <name>DEPLOY_TARS</name>
  21. <description>Instructs the build scripts to deploy the TAR.XZ on the repository service.</description>
  22. <defaultValue>false</defaultValue>
  23. </hudson.model.BooleanParameterDefinition>
  24. <hudson.model.StringParameterDefinition>
  25. <name>SMP_FLAG</name>
  26. <description></description>
  27. <defaultValue>5</defaultValue>
  28. </hudson.model.StringParameterDefinition>
  29. <hudson.model.BooleanParameterDefinition>
  30. <name>OVERRIDE_VERSION_TO_LATEST</name>
  31. <description>The buildrpms target will use an automated macro to choose the latest sources release based on the JSON API in the branch.</description>
  32. <defaultValue>true</defaultValue>
  33. </hudson.model.BooleanParameterDefinition>
  34. <hudson.model.StringParameterDefinition>
  35. <name>VERSION_BRANCH</name>
  36. <description>Sources branch</description>
  37. <defaultValue>current</defaultValue>
  38. </hudson.model.StringParameterDefinition>
  39. <hudson.model.BooleanParameterDefinition>
  40. <name>ENABLE_CCACHE</name>
  41. <description>Use ccache in this build (sets USE_CCACHE=1 or 0)</description>
  42. <defaultValue>true</defaultValue>
  43. </hudson.model.BooleanParameterDefinition>
  44. <hudson.model.StringParameterDefinition>
  45. <name>ALTERNATE_PATH</name>
  46. <description>A full alternative PATH to the environemtn</description>
  47. <defaultValue>/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin</defaultValue>
  48. </hudson.model.StringParameterDefinition>
  49. <hudson.model.BooleanParameterDefinition>
  50. <name>OVERRIDE_PATH</name>
  51. <description>Turn on and off ALTERNATE_PATH usage.</description>
  52. <defaultValue>false</defaultValue>
  53. </hudson.model.BooleanParameterDefinition>
  54. <hudson.model.StringParameterDefinition>
  55. <name>CCACHE_LINKS_PATH</name>
  56. <description>g++\gcc\cc\c++ ccache links location</description>
  57. <defaultValue>/usr/lib/ccache</defaultValue>
  58. </hudson.model.StringParameterDefinition>
  59. </parameterDefinitions>
  60. </hudson.model.ParametersDefinitionProperty>
  61. </properties>
  62. <scm class="hudson.scm.NullSCM"/>
  63. <canRoam>true</canRoam>
  64. <disabled>false</disabled>
  65. <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
  66. <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
  67. <triggers/>
  68. <concurrentBuild>false</concurrentBuild>
  69. <builders>
  70. <hudson.tasks.Shell>
  71. <command>
  72. rm -rf clone
  73. rm -rf build
  74. /usr/bin/git clone http://gogs.ngtech.co.il/elicro/redwood-debian-deb-build.git clone
  75. mv clone build
  76. cd build
  77. export BUILDZONE=`pwd`
  78. export PATH=/usr/lib/ccache:$PATH
  79. export DESTDIR=$BUILDZONE/fakeroot/
  80. export PROXY_USER=proxy
  81. if [ $VERSION_BRANCH = &quot;&quot; ]; then
  82. declare -x VERSION_BRANCH=&quot;current&quot;
  83. declare -x OVERRIDE_VERSION_TO_LATEST=&quot;true&quot;
  84. fi
  85. alias rm=&quot;rm -v&quot;
  86. bash run.sh
  87. ls -lah
  88. echo &quot;../&quot;
  89. ls -lah ../
  90. </command>
  91. </hudson.tasks.Shell>
  92. </builders>
  93. <publishers/>
  94. <buildWrappers/>
  95. </project>