config.xml 3.23 KB
Newer Older
1 2 3 4 5 6 7 8
<?xml version='1.1' encoding='UTF-8'?>
<project>
  <actions/>
  <description>1. Download the source code from SCM&#xd;
2. Copy the configuration file to workspace&#xd;
3. Run SonarQube with sonar-scanner.bat from workspace</description>
  <keepDependencies>false</keepDependencies>
  <properties>
9 10 11 12 13 14 15 16
    <jenkins.model.BuildDiscarderProperty>
      <strategy class="hudson.tasks.LogRotator">
        <daysToKeep>-1</daysToKeep>
        <numToKeep>5</numToKeep>
        <artifactDaysToKeep>-1</artifactDaysToKeep>
        <artifactNumToKeep>-1</artifactNumToKeep>
      </strategy>
    </jenkins.model.BuildDiscarderProperty>
17
    <com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.5.11">
18 19 20 21 22 23 24 25 26 27 28 29 30
      <gitLabConnection>ylhealth</gitLabConnection>
    </com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
    <hudson.model.ParametersDefinitionProperty>
      <parameterDefinitions>
        <hudson.model.StringParameterDefinition>
          <name>Branch_Variable</name>
          <description></description>
          <defaultValue>develop</defaultValue>
          <trim>false</trim>
        </hudson.model.StringParameterDefinition>
      </parameterDefinitions>
    </hudson.model.ParametersDefinitionProperty>
  </properties>
31
  <scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.2">
32 33 34
    <configVersion>2</configVersion>
    <userRemoteConfigs>
      <hudson.plugins.git.UserRemoteConfig>
35
        <url>https://cm.ylhealth.org/gitlab/ym/HRB_Mobile.git</url>
36 37 38 39 40 41 42 43 44 45 46 47
        <credentialsId>3485e854-8389-40e8-8c86-b94e94e91904</credentialsId>
      </hudson.plugins.git.UserRemoteConfig>
    </userRemoteConfigs>
    <branches>
      <hudson.plugins.git.BranchSpec>
        <name>$Branch_Variable</name>
      </hudson.plugins.git.BranchSpec>
    </branches>
    <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
    <submoduleCfg class="list"/>
    <extensions/>
  </scm>
48
  <assignedNode>MAC_BUILD_Machine</assignedNode>
49 50 51 52
  <canRoam>false</canRoam>
  <disabled>false</disabled>
  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
53 54
  <triggers>
    <hudson.triggers.TimerTrigger>
55
      <spec>H 5 * * *</spec>
56 57
    </hudson.triggers.TimerTrigger>
  </triggers>
58 59
  <concurrentBuild>false</concurrentBuild>
  <builders>
60
    <hudson.tasks.Shell>
61 62 63
      <command>PATH=&quot;$PATH:/usr/local/bin:/Users/scott/.fastlane/bin/&quot;
export ANDROID_HOME=~/Library/Android/sdk

64
FL_SONAR_LOGIN=eb396b211331459d36bcc651164b4695d97fb05b
65
npm install
66
bundle exec fastlane android sonarqube</command>
67
    </hudson.tasks.Shell>
68
  </builders>
69
  <publishers/>
70
  <buildWrappers>
71
    <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.37">
72 73 74 75 76
      <deleteDirs>false</deleteDirs>
      <cleanupParameter></cleanupParameter>
      <externalDelete></externalDelete>
      <disableDeferredWipeout>false</disableDeferredWipeout>
    </hudson.plugins.ws__cleanup.PreBuildCleanup>
77
    <hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.8.10"/>
78 79 80
    <hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@0.6.1">
      <colorMapName>xterm</colorMapName>
    </hudson.plugins.ansicolor.AnsiColorBuildWrapper>
81
  </buildWrappers>
82
</project>