config.xml 4.63 KB
Newer Older
1 2 3
<?xml version='1.1' encoding='UTF-8'?>
<project>
  <actions/>
4 5 6 7 8
  <description>1. 接收到Request從GitLab&#xd;
2. Build Code&#xd;
3. Source Code Analysis&#xd;
4. Print Coverage Report&#xd;
5. Print Unit Test Report&#xd;
9 10 11 12
&#xd;
假如過成有問題會通知RD群組</description>
  <keepDependencies>false</keepDependencies>
  <properties>
13
    <com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.5.13">
14 15
      <gitLabConnection>ylhealth</gitLabConnection>
    </com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
16 17
    <jenkins.model.BuildDiscarderProperty>
      <strategy class="hudson.tasks.LogRotator">
18
        <daysToKeep>-1</daysToKeep>
19
        <numToKeep>10</numToKeep>
20 21 22 23 24
        <artifactDaysToKeep>-1</artifactDaysToKeep>
        <artifactNumToKeep>-1</artifactNumToKeep>
      </strategy>
    </jenkins.model.BuildDiscarderProperty>
  </properties>
25
  <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.0">
26 27 28 29 30 31 32 33 34
    <configVersion>2</configVersion>
    <userRemoteConfigs>
      <hudson.plugins.git.UserRemoteConfig>
        <url>https://cm.ylhealth.org/gitlab/ym/CRM_BOOKING.git</url>
        <credentialsId>3485e854-8389-40e8-8c86-b94e94e91904</credentialsId>
      </hudson.plugins.git.UserRemoteConfig>
    </userRemoteConfigs>
    <branches>
      <hudson.plugins.git.BranchSpec>
35
        <name>origin/${gitlabSourceBranch}</name>
36 37 38 39 40 41
      </hudson.plugins.git.BranchSpec>
    </branches>
    <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
    <submoduleCfg class="list"/>
    <extensions/>
  </scm>
42
  <assignedNode>BUILD_NODE || BUILD_NODE_WIN</assignedNode>
43 44 45 46 47
  <canRoam>false</canRoam>
  <disabled>false</disabled>
  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
  <triggers>
48
    <com.dabsquared.gitlabjenkins.GitLabPushTrigger plugin="gitlab-plugin@1.5.13">
49 50 51 52 53 54 55 56 57 58 59 60 61
      <spec></spec>
      <triggerOnPush>true</triggerOnPush>
      <triggerOnMergeRequest>true</triggerOnMergeRequest>
      <triggerOnPipelineEvent>false</triggerOnPipelineEvent>
      <triggerOnAcceptedMergeRequest>false</triggerOnAcceptedMergeRequest>
      <triggerOnClosedMergeRequest>false</triggerOnClosedMergeRequest>
      <triggerOnApprovedMergeRequest>false</triggerOnApprovedMergeRequest>
      <triggerOpenMergeRequestOnPush>both</triggerOpenMergeRequestOnPush>
      <triggerOnNoteRequest>true</triggerOnNoteRequest>
      <noteRegex>Jenkins please retry a build</noteRegex>
      <ciSkip>true</ciSkip>
      <skipWorkInProgressMergeRequest>true</skipWorkInProgressMergeRequest>
      <setBuildDescription>true</setBuildDescription>
62
      <branchFilterType>RegexBasedFilter</branchFilterType>
63 64
      <includeBranchesSpec></includeBranchesSpec>
      <excludeBranchesSpec></excludeBranchesSpec>
65
      <sourceBranchRegex>(release/.*|hotfix/.*|develop|master)</sourceBranchRegex>
66
      <targetBranchRegex></targetBranchRegex>
67
      <secretToken>{AQAAABAAAAAQjitMemHvKf/HQA6U2gy9l4ZlMlckh+bZJCEtkFKytrQ=}</secretToken>
68 69 70 71 72 73 74
      <pendingBuildName></pendingBuildName>
      <cancelPendingBuildsOnUpdate>false</cancelPendingBuildsOnUpdate>
    </com.dabsquared.gitlabjenkins.GitLabPushTrigger>
  </triggers>
  <concurrentBuild>false</concurrentBuild>
  <builders>
    <hudson.tasks.Maven>
75
      <targets>clean package</targets>
76
      <mavenName>Maven_3.6.3</mavenName>
77 78 79 80 81 82 83
      <usePrivateRepository>false</usePrivateRepository>
      <settings class="jenkins.mvn.DefaultSettingsProvider"/>
      <globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
      <injectBuildVariables>true</injectBuildVariables>
    </hudson.tasks.Maven>
  </builders>
  <publishers>
84
    <hudson.tasks.junit.JUnitResultArchiver plugin="junit@1.28">
85 86 87 88 89
      <testResults>**/target/surefire-reports/*.xml</testResults>
      <keepLongStdio>false</keepLongStdio>
      <healthScaleFactor>1.0</healthScaleFactor>
      <allowEmptyResults>false</allowEmptyResults>
    </hudson.tasks.junit.JUnitResultArchiver>
90
    <hudson.tasks.Mailer plugin="mailer@1.30">
91
      <recipients>$RD_Group</recipients>
92 93 94 95 96
      <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
      <sendToIndividuals>false</sendToIndividuals>
    </hudson.tasks.Mailer>
  </publishers>
  <buildWrappers>
97
    <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.38">
98 99 100 101 102
      <deleteDirs>false</deleteDirs>
      <cleanupParameter></cleanupParameter>
      <externalDelete></externalDelete>
      <disableDeferredWipeout>false</disableDeferredWipeout>
    </hudson.plugins.ws__cleanup.PreBuildCleanup>
103
    <hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.11.1"/>
104 105
  </buildWrappers>
</project>