-
Notifications
You must be signed in to change notification settings - Fork 985
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into issue-13560-2
- Loading branch information
Showing
37 changed files
with
470 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
library '[email protected].0' | ||
library '[email protected].1' | ||
|
||
/* Options section can't access functions in objects. */ | ||
def isPRBuild = utils.isPRBuild() | ||
|
@@ -56,43 +56,14 @@ pipeline { | |
} | ||
} | ||
} | ||
stage('Parallel Assemble') { | ||
parallel { | ||
stage('Checks') { stages { | ||
stage('Lint') { | ||
steps { | ||
script { | ||
/* We want the build result to be uploaded */ | ||
catchError( | ||
message: 'Linting check failed!', | ||
buildResult: 'FAILURE', | ||
stageResult: 'FAILURE' | ||
) { | ||
sh 'make lint' | ||
} | ||
} | ||
} | ||
} | ||
stage('Tests') { | ||
steps { | ||
script { | ||
sh 'make test' | ||
} | ||
} | ||
} | ||
} } | ||
stage('Build') { stages { | ||
stage('Bundle') { | ||
steps { | ||
script { apks = android.bundle() } | ||
} | ||
} | ||
stage('Sign') { | ||
steps { | ||
script { apks = android.sign(apks) } | ||
} | ||
} | ||
} } | ||
stage('Bundle') { | ||
steps { | ||
script { apks = android.bundle() } | ||
} | ||
} | ||
stage('Sign') { | ||
steps { | ||
script { apks = android.sign(apks) } | ||
} | ||
} | ||
stage('Parallel Upload') { | ||
|
@@ -103,37 +74,30 @@ pipeline { | |
} } | ||
} | ||
stage('Upload') { | ||
steps { | ||
script { | ||
def urls = apks.collect { s3.uploadArtifact(it) } | ||
/* return only the universal APK */ | ||
if (urls.size() > 1) { | ||
env.PKG_URL = urls.find { it.contains('universal') } | ||
} else { /* if no universal is available pick first */ | ||
env.PKG_URL = urls.first() | ||
} | ||
jenkins.setBuildDesc(APK: env.PKG_URL) | ||
/* e2e builds get tested in SauceLabs */ | ||
if (utils.isE2EBuild()) { | ||
env.SAUCE_URL = android.uploadToSauceLabs() | ||
} | ||
if (utils.isNightlyBuild()) { | ||
env.DIAWI_URL = android.uploadToDiawi() | ||
} | ||
steps { script { | ||
def urls = apks.collect { s3.uploadArtifact(it) } | ||
/* return only the universal APK */ | ||
if (urls.size() > 1) { | ||
env.PKG_URL = urls.find { it.contains('universal') } | ||
} else { /* if no universal is available pick first */ | ||
env.PKG_URL = urls.first() | ||
} | ||
jenkins.setBuildDesc(APK: env.PKG_URL) | ||
/* e2e builds get tested in SauceLabs */ | ||
if (utils.isE2EBuild()) { | ||
env.SAUCE_URL = android.uploadToSauceLabs() | ||
} | ||
if (utils.isNightlyBuild()) { | ||
env.DIAWI_URL = android.uploadToDiawi() | ||
} | ||
} | ||
} } | ||
} | ||
} | ||
} | ||
stage('Cleanup') { | ||
steps { | ||
sh 'make purge' | ||
} | ||
} | ||
} | ||
post { | ||
success { script { github.notifyPR(true) } } | ||
failure { script { github.notifyPR(false) } } | ||
always { sh 'make _fix-node-perms' } | ||
always { sh 'make purge' } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
library '[email protected].0' | ||
library '[email protected].1' | ||
|
||
pipeline { | ||
agent { label 'linux' } | ||
|
@@ -49,6 +49,9 @@ pipeline { | |
stage('Android e2e') { steps { script { | ||
apke2e = jenkins.Build('status-mobile/platforms/android-e2e') | ||
} } } | ||
stage('Tests') { steps { script { | ||
ios = jenkins.Build('status-mobile/platforms/tests') | ||
} } } | ||
} | ||
} | ||
stage('Archive') { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
library '[email protected].0' | ||
library '[email protected].1' | ||
|
||
/* Options section can't access functions in objects. */ | ||
def isPRBuild = utils.isPRBuild() | ||
|
@@ -55,43 +55,14 @@ pipeline { | |
} | ||
} | ||
} | ||
stage('Parallel Assemble') { | ||
parallel { | ||
stage('Checks') { stages { | ||
stage('Lint') { | ||
steps { | ||
script { | ||
/* We want the build result to be uploaded */ | ||
catchError( | ||
message: 'Linting check failed!', | ||
buildResult: 'FAILURE', | ||
stageResult: 'FAILURE' | ||
) { | ||
sh 'make lint' | ||
} | ||
} | ||
} | ||
} | ||
stage('Tests') { | ||
steps { | ||
script { | ||
sh 'make test' | ||
} | ||
} | ||
} | ||
} } | ||
stage('Build') { stages { | ||
stage('JSBundle') { | ||
steps { | ||
script { ios.jsbundle() } | ||
} | ||
} | ||
stage('Bundle') { | ||
steps { | ||
script { api = ios.bundle() } | ||
} | ||
} | ||
} } | ||
stage('JSBundle') { | ||
steps { | ||
script { ios.jsbundle() } | ||
} | ||
} | ||
stage('Bundle') { | ||
steps { | ||
script { api = ios.bundle() } | ||
} | ||
} | ||
stage('Parallel Upload') { | ||
|
@@ -102,31 +73,23 @@ pipeline { | |
} | ||
} | ||
stage('Upload') { | ||
steps { | ||
script { | ||
env.PKG_URL = s3.uploadArtifact(api) | ||
jenkins.setBuildDesc(IPA: env.PKG_URL) | ||
/* e2e builds get tested in SauceLabs */ | ||
if (utils.isE2EBuild()) { | ||
env.SAUCE_URL = ios.uploadToSauceLabs() | ||
} else { | ||
env.DIAWI_URL = ios.uploadToDiawi() | ||
} | ||
steps { script { | ||
env.PKG_URL = s3.uploadArtifact(api) | ||
jenkins.setBuildDesc(IPA: env.PKG_URL) | ||
/* e2e builds get tested in SauceLabs */ | ||
if (utils.isE2EBuild()) { | ||
env.SAUCE_URL = ios.uploadToSauceLabs() | ||
} else { | ||
env.DIAWI_URL = ios.uploadToDiawi() | ||
} | ||
} | ||
} } | ||
} | ||
} | ||
} | ||
stage('Cleanup') { | ||
steps { | ||
sh 'make watchman-clean' | ||
sh 'make purge' | ||
} | ||
} | ||
} | ||
post { | ||
success { script { github.notifyPR(true) } } | ||
failure { script { github.notifyPR(false) } } | ||
always { sh 'make _fix-node-perms' } | ||
always { sh 'make purge' } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
library '[email protected].0' | ||
library '[email protected].1' | ||
|
||
pipeline { | ||
agent { label params.AGENT_LABEL } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
library '[email protected]' | ||
|
||
/* Options section can't access functions in objects. */ | ||
def isPRBuild = utils.isPRBuild() | ||
|
||
pipeline { | ||
agent { label 'linux && x86_64 && nix-2.8' } | ||
|
||
options { | ||
timestamps() | ||
/* Prevent Jenkins jobs from running forever */ | ||
timeout(time: 10, unit: 'MINUTES') | ||
/* Limit builds retained */ | ||
buildDiscarder(logRotator( | ||
numToKeepStr: '10', | ||
daysToKeepStr: '20', | ||
artifactNumToKeepStr: '10', | ||
)) | ||
/* Abort old PR builds. */ | ||
disableConcurrentBuilds( | ||
abortPrevious: isPRBuild | ||
) | ||
} | ||
|
||
parameters { | ||
string( | ||
name: 'BUILD_TYPE', | ||
description: 'Specify build type. Values: pr / e2e / nightly / release', | ||
defaultValue: 'pr', | ||
) | ||
} | ||
|
||
environment { | ||
LANG = "en_US.UTF-8" | ||
LC_ALL = "en_US.UTF-8" | ||
LANGUAGE = "en_US.UTF-8" | ||
TARGET = 'tests' | ||
BUILD_ENV = 'prod' | ||
NIX_CONF_DIR = "${env.WORKSPACE}/nix" | ||
LOG_FILE = utils.pkgFilename(ext: 'log', arch: 'tests') | ||
} | ||
|
||
stages { | ||
stage('Prep') { | ||
steps { | ||
script { | ||
btype = utils.getBuildType() | ||
print "Running ${btype} build!" | ||
/* Cleanup and Prep */ | ||
commonPrep(btype) | ||
} | ||
} | ||
} | ||
stage('Checks') { | ||
parallel { | ||
stage('Lint') { | ||
steps { sh "make lint > ${LOG_FILE}" } | ||
} | ||
stage('Tests') { | ||
steps { sh "make test >> ${LOG_FILE}" } | ||
} | ||
} | ||
} | ||
stage('Upload') { | ||
steps { | ||
script { | ||
env.PKG_URL = s3.uploadArtifact(LOG_FILE) | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
success { script { github.notifyPR(true) } } | ||
failure { script { github.notifyPR(false) } } | ||
always { sh 'make purge' } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
library '[email protected].0' | ||
library '[email protected].1' | ||
|
||
pipeline { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
library '[email protected].0' | ||
library '[email protected].1' | ||
|
||
pipeline { | ||
agent { label 'macos' } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
library '[email protected].0' | ||
library '[email protected].1' | ||
|
||
pipeline { | ||
agent { label 'linux' } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.