Advertisement
FroztGal

Jenkins_job_config

Sep 23rd, 2021
2,393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.61 KB | None | 0 0
  1. <?xml version='1.1' encoding='UTF-8'?>
  2. <project>
  3.   <actions/>
  4.   <description></description>
  5.   <keepDependencies>false</keepDependencies>
  6.   <properties>
  7.     <jenkins.model.BuildDiscarderProperty>
  8.       <strategy class="hudson.tasks.LogRotator">
  9.         <daysToKeep>-1</daysToKeep>
  10.         <numToKeep>10</numToKeep>
  11.         <artifactDaysToKeep>-1</artifactDaysToKeep>
  12.         <artifactNumToKeep>-1</artifactNumToKeep>
  13.       </strategy>
  14.     </jenkins.model.BuildDiscarderProperty>
  15.   </properties>
  16.   <scm class="hudson.plugins.git.GitSCM" plugin="git@4.7.2">
  17.     <configVersion>2</configVersion>
  18.     <userRemoteConfigs>
  19.       <hudson.plugins.git.UserRemoteConfig>
  20.         <url>git@github.com:Froztgal/2021-1-MAILRU-SDET-Python-I-Malakhov.git</url>
  21.         <credentialsId>0b6518f6-b9cf-4524-9c49-9aa17643fcd5</credentialsId>
  22.       </hudson.plugins.git.UserRemoteConfig>
  23.     </userRemoteConfigs>
  24.     <branches>
  25.       <hudson.plugins.git.BranchSpec>
  26.         <name>*/FP</name>
  27.       </hudson.plugins.git.BranchSpec>
  28.     </branches>
  29.     <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
  30.     <submoduleCfg class="empty-list"/>
  31.     <extensions/>
  32.   </scm>
  33.   <canRoam>true</canRoam>
  34.   <disabled>false</disabled>
  35.   <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
  36.   <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
  37.   <triggers/>
  38.   <concurrentBuild>false</concurrentBuild>
  39.   <builders>
  40.     <hudson.tasks.BatchFile>
  41.       <command>chcp 1251&#xd;
  42. set PATH=%PATH%;C:\Users\Ilya\AppData\Local\Programs\Python\Python38-32\;C:\Users\Ilya\AppData\Local\Programs\Python\Python38-32\Scripts\&#xd;
  43. echo Starting Docker Containers ...&#xd;
  44. docker run -d --rm --name test_sql -e MYSQL_ROOT_PASSWORD=pass -p 3306:3306 percona:latest&#xd;
  45. docker run -d --rm --name my_mock_vk -p 8083:8083  my_mock_vk:latest&#xd;
  46. docker run -d --rm --name selenoid -p 4444:4444 -v //var/run/docker.sock:/var/run/docker.sock -v /c/users/ilya/.aerokube/selenoid:/etc/selenoid:ro aerokube/selenoid:latest-release&#xd;
  47. docker run -d --rm --name selenoid-ui --link selenoid -p 8081:8080 aerokube/selenoid-ui:latest --selenoid-uri http://selenoid:4444</command>
  48.       <configuredLocalRules/>
  49.     </hudson.tasks.BatchFile>
  50.     <hudson.tasks.BatchFile>
  51.       <command>chcp 1251&#xd;
  52. set PATH=%PATH%;C:\Users\Ilya\AppData\Local\Programs\Python\Python38-32\;C:\Users\Ilya\AppData\Local\Programs\Python\Python38-32\Scripts\&#xd;
  53. echo import time &gt; ~01.py&#xd;
  54. echo time.sleep(10) &gt;&gt; ~01.py&#xd;
  55. python ~01.py&#xd;
  56. del ~01.py&#xd;
  57. </command>
  58.       <configuredLocalRules/>
  59.     </hudson.tasks.BatchFile>
  60.     <hudson.tasks.BatchFile>
  61.       <command>chcp 1251&#xd;
  62. set PATH=%PATH%;C:\Users\Ilya\AppData\Local\Programs\Python\Python38-32\;C:\Users\Ilya\AppData\Local\Programs\Python\Python38-32\Scripts\&#xd;
  63. cd FP&#xd;
  64. docker exec -i test_sql mysql -h127.0.0.1 -P3306 -uroot -ppass &lt; db_init.sql&#xd;
  65. docker run -d --rm --name mapp -v &quot;/D/tmp/config.txt&quot;:&quot;/D/tmp/config.txt&quot; -p 8080:8080 --link test_sql:test_sql --link my_mock_vk:my_mock_vk myapp /app/myapp --config=&quot;/D/tmp/config.txt&quot;&#xd;
  66. pip install -r requirements.txt&#xd;
  67. pytest -s -l -v tests\ --selenoid --alluredir=%cd%\target\allure-results&#xd;
  68. echo Stopping Docker Containers ...&#xd;
  69. docker stop -t0 mapp&#xd;
  70. docker stop -t0 my_mock_vk&#xd;
  71. docker stop -t0 selenoid&#xd;
  72. docker stop -t0 selenoid-ui&#xd;
  73. docker stop -t0 test_sql</command>
  74.       <configuredLocalRules/>
  75.     </hudson.tasks.BatchFile>
  76.   </builders>
  77.   <publishers>
  78.     <ru.yandex.qatools.allure.jenkins.AllureReportPublisher plugin="allure-jenkins-plugin@2.29.0">
  79.       <configPath></configPath>
  80.       <jdk></jdk>
  81.       <properties/>
  82.       <results>
  83.         <ru.yandex.qatools.allure.jenkins.config.ResultsConfig>
  84.           <path>FP\target\allure-results</path>
  85.         </ru.yandex.qatools.allure.jenkins.config.ResultsConfig>
  86.       </results>
  87.       <reportBuildPolicy>ALWAYS</reportBuildPolicy>
  88.       <includeProperties>false</includeProperties>
  89.       <disabled>false</disabled>
  90.       <report>FP\allure-report</report>
  91.     </ru.yandex.qatools.allure.jenkins.AllureReportPublisher>
  92.   </publishers>
  93.   <buildWrappers>
  94.     <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.39">
  95.       <deleteDirs>false</deleteDirs>
  96.       <cleanupParameter></cleanupParameter>
  97.       <externalDelete></externalDelete>
  98.       <disableDeferredWipeout>false</disableDeferredWipeout>
  99.     </hudson.plugins.ws__cleanup.PreBuildCleanup>
  100.     <hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.13"/>
  101.   </buildWrappers>
  102. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement