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