-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
45 lines (36 loc) · 985 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!groovy
@Library('jenkins-mobile-pipeline-shared-libraries') _
pipelineOptions{
maxNumberBuildsToKeep = 10
}
checkoutScm {
nodeLabel = 'centos_7'
}
reactNativeInstallDependencies {
nodeLabel = 'centos_7'
dependencyInstallationCommand = 'wget https://github.com/yarnpkg/yarn/releases/download/v1.1.0/yarn-1.1.0.js && export yarn="node ./yarn-1.1.0.js" && $yarn install'
}
reactNativeStaticAnalysis {
nodeLabel = 'centos_7'
staticAnalysisCommand = 'npm run lint'
}
reactNativeUnitTests {
nodeLabel = 'centos_7'
unitTestsCommand = 'npm test'
}
reactNativeBundleAndroidResources {
nodeLabel = 'centos_7'
bundleAndroidResourcesCommand = 'npm run bundle_android'
}
androidBetaUpload {
nodeLabel = 'centos_7'
stageSuffix = 'Android'
isReactNative = 'true'
gradleTasksDebug = 'clean assembleDebug'
}
iosBuild {
nodeLabel = 'mac_mini'
stageSuffix = 'iOS'
isReactNative = 'true'
fastlaneLane = 'build'
}