config.xml 5.28 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?xml version='1.1' encoding='UTF-8'?>
<project>
  <actions/>
  <description></description>
  <keepDependencies>false</keepDependencies>
  <properties>
    <jenkins.model.BuildDiscarderProperty>
      <strategy class="hudson.tasks.LogRotator">
        <daysToKeep>1</daysToKeep>
        <numToKeep>3</numToKeep>
        <artifactDaysToKeep>-1</artifactDaysToKeep>
        <artifactNumToKeep>-1</artifactNumToKeep>
      </strategy>
    </jenkins.model.BuildDiscarderProperty>
15
    <com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.5.13">
16 17 18 19
      <gitLabConnection>ylhealth</gitLabConnection>
    </com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
    <hudson.model.ParametersDefinitionProperty>
      <parameterDefinitions>
20 21 22 23 24 25 26 27 28 29 30 31
        <hudson.model.ChoiceParameterDefinition>
          <name>Branch_Variable</name>
          <description>There are two branches, descript as below
1. master  
2. develop</description>
          <choices class="java.util.Arrays$ArrayList">
            <a class="string-array">
              <string>master</string>
              <string>develop</string>
            </a>
          </choices>
        </hudson.model.ChoiceParameterDefinition>
32 33
      </parameterDefinitions>
    </hudson.model.ParametersDefinitionProperty>
34
  </properties>
35
  <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.1">
36 37 38 39 40 41 42 43 44
    <configVersion>2</configVersion>
    <userRemoteConfigs>
      <hudson.plugins.git.UserRemoteConfig>
        <url>https://cm.ylhealth.org/gitlab/ym/Automation.git</url>
        <credentialsId>3485e854-8389-40e8-8c86-b94e94e91904</credentialsId>
      </hudson.plugins.git.UserRemoteConfig>
    </userRemoteConfigs>
    <branches>
      <hudson.plugins.git.BranchSpec>
45
        <name>$Branch_Variable</name>
46 47 48 49 50 51
      </hudson.plugins.git.BranchSpec>
    </branches>
    <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
    <submoduleCfg class="list"/>
    <extensions/>
  </scm>
52
  <assignedNode>&quot;Run Automation Server&quot;</assignedNode>
53 54 55 56 57 58 59 60
  <canRoam>false</canRoam>
  <disabled>false</disabled>
  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
  <triggers/>
  <concurrentBuild>false</concurrentBuild>
  <builders>
    <hudson.tasks.BatchFile>
61
      <command>robot -e DEV -v OpenFileDialogTitle:開啟 -v SetEnvironment:SIT -v CHMIPAddress:172.16.40.163 %WORKSPACE%\PreSale\</command>
62 63 64
    </hudson.tasks.BatchFile>
  </builders>
  <publishers>
65
    <hudson.plugins.robot.RobotPublisher plugin="robot@2.0.0">
66 67 68 69 70 71 72 73 74 75 76 77 78
      <outputPath>${WORKSPACE}</outputPath>
      <reportFileName>report.html</reportFileName>
      <logFileName>log.html</logFileName>
      <outputFileName>output.xml</outputFileName>
      <disableArchiveOutput>false</disableArchiveOutput>
      <passThreshold>1.0</passThreshold>
      <unstableThreshold>1.0</unstableThreshold>
      <otherFiles>
        <string></string>
      </otherFiles>
      <enableCache>true</enableCache>
      <onlyCritical>true</onlyCritical>
    </hudson.plugins.robot.RobotPublisher>
79
    <hudson.tasks.Mailer plugin="mailer@1.27">
80 81 82 83 84
      <recipients>$SonarQube_Administrator</recipients>
      <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
      <sendToIndividuals>false</sendToIndividuals>
    </hudson.tasks.Mailer>
    <hudson.plugins.emailext.ExtendedEmailPublisher plugin="email-ext@2.66">
85
      <recipientList>$PreSale_Group</recipientList>
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
      <configuredTriggers>
        <hudson.plugins.emailext.plugins.trigger.AlwaysTrigger>
          <email>
            <subject>$PROJECT_DEFAULT_SUBJECT</subject>
            <body>$PROJECT_DEFAULT_CONTENT</body>
            <recipientProviders>
              <hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/>
              <hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
            </recipientProviders>
            <attachmentsPattern></attachmentsPattern>
            <attachBuildLog>false</attachBuildLog>
            <compressBuildLog>false</compressBuildLog>
            <replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
            <contentType>project</contentType>
          </email>
        </hudson.plugins.emailext.plugins.trigger.AlwaysTrigger>
      </configuredTriggers>
      <contentType>text/html</contentType>
104
      <defaultSubject>PreSale 測試環境自動化報告</defaultSubject>
105
      <defaultContent>&lt;p&gt;目前自動化部份如下,詳細請看附檔&lt;/p&gt;</defaultContent>
106 107 108 109 110
      <attachmentsPattern>log.html</attachmentsPattern>
      <presendScript>$DEFAULT_PRESEND_SCRIPT</presendScript>
      <postsendScript>$DEFAULT_POSTSEND_SCRIPT</postsendScript>
      <attachBuildLog>false</attachBuildLog>
      <compressBuildLog>false</compressBuildLog>
111
      <replyTo>$PreSale_Group</replyTo>
112 113 114 115 116 117 118 119 120 121 122 123 124 125
      <from></from>
      <saveOutput>false</saveOutput>
      <disabled>false</disabled>
    </hudson.plugins.emailext.ExtendedEmailPublisher>
  </publishers>
  <buildWrappers>
    <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.37">
      <deleteDirs>false</deleteDirs>
      <cleanupParameter></cleanupParameter>
      <externalDelete></externalDelete>
      <disableDeferredWipeout>false</disableDeferredWipeout>
    </hudson.plugins.ws__cleanup.PreBuildCleanup>
  </buildWrappers>
</project>