config.xml 4.54 KB
Newer Older
1
<?xml version="1.1" encoding="UTF-8" standalone="no"?><project>
2
  <actions/>
3 4 5 6 7 8
  <description>1. 接收到Request從GitLab&#13;
2. Build Code&#13;
3. Source Code Analysis&#13;
4. Print Coverage Report&#13;
5. Print Unit Test Report&#13;
&#13;
9 10 11
假如過成有問題會通知RD群組</description>
  <keepDependencies>false</keepDependencies>
  <properties>
12
    <com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.5.13">
13 14
      <gitLabConnection>ylhealth</gitLabConnection>
    </com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
15
    
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.2">
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_LINUX || "Build Node 134 "</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
      <spec/>
50 51 52 53 54 55 56 57 58 59 60 61
      <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/>
      <excludeBranchesSpec/>
65
      <sourceBranchRegex>(release/.*|hotfix/.*|develop|master)</sourceBranchRegex>
66 67 68
      <targetBranchRegex/>
      <secretToken>{AQAAABAAAAAQRZgDcawiK1zusZIMu4rWAZGRs1cOY1geOuHWr5QzPVE=}</secretToken>
      <pendingBuildName/>
69 70 71 72 73 74
      <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
      <deleteDirs>false</deleteDirs>
99 100
      <cleanupParameter/>
      <externalDelete/>
101 102
      <disableDeferredWipeout>false</disableDeferredWipeout>
    </hudson.plugins.ws__cleanup.PreBuildCleanup>
103
    <hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.11.2"/>
104 105
  </buildWrappers>
</project>