config.xml 5.31 KB
Newer Older
1 2 3
<?xml version='1.1' encoding='UTF-8'?>
<project>
  <actions/>
4
  <description>用來建置feature branch或是其他Branch使用&#xd;
5
只打包 ipa, 不做Code Push&#xd;
6 7 8 9 10
xcode-select --install&#xd;
brew install yarn node&#xd;
brew install watchman ruby flow yarn&#xd;
sudo npm install -g react-native-cli&#xd;
sudo gem install bundler&#xd;
11 12
&#xd;
echo &quot;source &apos;https://rubygems.org&apos;&quot; &gt; Gemfile&#xd;
13 14 15 16 17
echo &quot;gem &apos;xcode-install&apos;, &apos;2.2.0&apos;&quot; &gt;&gt; Gemfile&#xd;
echo &quot;gem &apos;cocoapods&apos;, &apos;1.5.0&apos;&quot; &gt;&gt; Gemfile&#xd;
echo &quot;gem &apos;fastlane&apos;, &apos;2.113.0&apos;&quot; &gt;&gt; Gemfile&#xd;
&#xd;
</description>
18 19
  <keepDependencies>false</keepDependencies>
  <properties>
20
    <com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.5.13">
21 22
      <gitLabConnection>ylhealth</gitLabConnection>
    </com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
23 24 25
    <hudson.model.ParametersDefinitionProperty>
      <parameterDefinitions>
        <hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition plugin="global-variable-string-parameter@1.2">
26
          <name>GIT_BRANCH</name>
27
          <description>feature branch使用的版本,如:
28
feature/HA-818
29
其他Branch請自行設定
30
develop
31 32
commitId
4c1966d510b71fdf3ec67807321a385c5378cf86</description>
33
          <defaultValue>feature/HA-1160</defaultValue>
34 35
          <trim>false</trim>
        </hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
36 37 38
        <hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition plugin="global-variable-string-parameter@1.2">
          <name>DownloadName</name>
          <description>下載清單上要顯示的名稱</description>
39
          <defaultValue>sign</defaultValue>
40 41
          <trim>false</trim>
        </hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
42 43 44
        <hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition plugin="global-variable-string-parameter@1.2">
          <name>API_SERVER</name>
          <description>連線位置</description>
45
          <defaultValue>10.32.86.115</defaultValue>
46 47
          <trim>false</trim>
        </hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
48 49 50 51 52 53
        <hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition plugin="global-variable-string-parameter@1.2">
          <name>HTT_PROTOCOL</name>
          <description>http / https</description>
          <defaultValue>http</defaultValue>
          <trim>false</trim>
        </hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
54 55 56 57 58 59
        <hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition plugin="global-variable-string-parameter@1.2">
          <name>CODE_PUSH</name>
          <description>哪一個 Job 執行 code-push</description>
          <defaultValue>other</defaultValue>
          <trim>false</trim>
        </hudson.plugins.global__variable__string__parameter.GlobalVariableStringParameterDefinition>
60 61
      </parameterDefinitions>
    </hudson.model.ParametersDefinitionProperty>
62 63 64 65 66 67 68 69
    <jenkins.model.BuildDiscarderProperty>
      <strategy class="hudson.tasks.LogRotator">
        <daysToKeep>-1</daysToKeep>
        <numToKeep>5</numToKeep>
        <artifactDaysToKeep>-1</artifactDaysToKeep>
        <artifactNumToKeep>-1</artifactNumToKeep>
      </strategy>
    </jenkins.model.BuildDiscarderProperty>
70
  </properties>
71
  <scm class="hudson.plugins.git.GitSCM" plugin="git@3.12.1">
72 73 74 75 76 77 78 79 80
    <configVersion>2</configVersion>
    <userRemoteConfigs>
      <hudson.plugins.git.UserRemoteConfig>
        <url>https://cm.ylhealth.org/gitlab/ym/HRB_Mobile.git</url>
        <credentialsId>3485e854-8389-40e8-8c86-b94e94e91904</credentialsId>
      </hudson.plugins.git.UserRemoteConfig>
    </userRemoteConfigs>
    <branches>
      <hudson.plugins.git.BranchSpec>
81
        <name>${GIT_BRANCH}</name>
82 83 84 85 86 87
      </hudson.plugins.git.BranchSpec>
    </branches>
    <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
    <submoduleCfg class="list"/>
    <extensions/>
  </scm>
88
  <assignedNode>IPA_BUILD_Machine</assignedNode>
89 90 91 92 93 94 95 96
  <canRoam>false</canRoam>
  <disabled>false</disabled>
  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
  <triggers/>
  <concurrentBuild>false</concurrentBuild>
  <builders>
    <hudson.tasks.Shell>
97
      <command>sh jenkins_ios_sit.sh ${CODE_PUSH}</command>
98 99
    </hudson.tasks.Shell>
  </builders>
100
  <publishers/>
101
  <buildWrappers>
102
    <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.37">
103 104 105 106 107
      <deleteDirs>false</deleteDirs>
      <cleanupParameter></cleanupParameter>
      <externalDelete></externalDelete>
      <disableDeferredWipeout>false</disableDeferredWipeout>
    </hudson.plugins.ws__cleanup.PreBuildCleanup>
108
    <hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@0.6.2">
109 110
      <colorMapName>xterm</colorMapName>
    </hudson.plugins.ansicolor.AnsiColorBuildWrapper>
111
    <hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.10"/>
112 113
  </buildWrappers>
</project>