-
Notifications
You must be signed in to change notification settings - Fork 2
/
Jenkinsfile
43 lines (38 loc) · 3.09 KB
/
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
#!groovy
@Library('github.com/wooga/atlas-jenkins-pipeline@1.x') _
withCredentials([string(credentialsId: 'atlas_appcenter_integration_token', variable: 'appcenterToken'),
string(credentialsId: 'atlas_appcenter_integration_application_identifier_ios_1', variable: 'appcenterAppIdIosOSX'),
string(credentialsId: 'atlas_appcenter_integration_application_identifier_ios_2', variable: 'appcenterAppIdIosWin'),
string(credentialsId: 'atlas_appcenter_integration_application_identifier_ios_3', variable: 'appcenterAppIdIosLinux'),
string(credentialsId: 'atlas_appcenter_integration_application_identifier_android_1', variable: 'appcenterAppIdAndroidOSX'),
string(credentialsId: 'atlas_appcenter_integration_application_identifier_android_2', variable: 'appcenterAppIdAndroidWin'),
string(credentialsId: 'atlas_appcenter_integration_application_identifier_android_3', variable: 'appcenterAppIdAndroidLinux'),
string(credentialsId: 'atlas_appcenter_integration_application_owner', variable: 'appcenterOwner'),
string(credentialsId: 'atlas_plugins_sonar_token', variable: 'sonar_token'),
string(credentialsId: 'snyk-wooga-frontend-integration-token', variable: 'SNYK_TOKEN')
]) {
def testEnvironment = [
'macos':
[
"ATLAS_APP_CENTER_INTEGRATION_API_TOKEN=${appcenterToken}",
"ATLAS_APP_CENTER_OWNER=${appcenterOwner}",
"ATLAS_APP_CENTER_INTEGRATION_APPLICATION_IDENTIFIER_IOS=${appcenterAppIdIosOSX}",
"ATLAS_APP_CENTER_INTEGRATION_APPLICATION_IDENTIFIER_ANDROID=${appcenterAppIdAndroidOSX}"
],
'windows':
[
"ATLAS_APP_CENTER_INTEGRATION_API_TOKEN=${appcenterToken}",
"ATLAS_APP_CENTER_OWNER=${appcenterOwner}",
"ATLAS_APP_CENTER_INTEGRATION_APPLICATION_IDENTIFIER_IOS=${appcenterAppIdIosWin}",
"ATLAS_APP_CENTER_INTEGRATION_APPLICATION_IDENTIFIER_ANDROID=${appcenterAppIdAndroidWin}"
],
'linux':
[
"ATLAS_APP_CENTER_INTEGRATION_API_TOKEN=${appcenterToken}",
"ATLAS_APP_CENTER_OWNER=${appcenterOwner}",
"ATLAS_APP_CENTER_INTEGRATION_APPLICATION_IDENTIFIER_IOS=${appcenterAppIdIosLinux}",
"ATLAS_APP_CENTER_INTEGRATION_APPLICATION_IDENTIFIER_ANDROID=${appcenterAppIdAndroidLinux}"
],
]
buildGradlePlugin platforms: ['macos', 'windows', 'linux'], sonarToken: sonar_token, testEnvironment: testEnvironment
}