ci: drop uploading e2e builds to SauceLabs
Since uploads to SauceLabs were dropped from `Fastfile` in: https://github.com/status-im/status-mobile/pull/14969 Also dropped: - Useless Diawi upload of APK - Useless DO Spaces upload of IPA Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
91d0e106f2
commit
361ddb338e
|
@ -1,4 +1,4 @@
|
||||||
library 'status-jenkins-lib@v1.6.3'
|
library 'status-jenkins-lib@v1.6.5'
|
||||||
|
|
||||||
/* Options section can't access functions in objects. */
|
/* Options section can't access functions in objects. */
|
||||||
def isPRBuild = utils.isPRBuild()
|
def isPRBuild = utils.isPRBuild()
|
||||||
|
@ -75,20 +75,12 @@ pipeline {
|
||||||
stage('Upload') {
|
stage('Upload') {
|
||||||
steps { script {
|
steps { script {
|
||||||
def urls = apks.collect { s3.uploadArtifact(it) }
|
def urls = apks.collect { s3.uploadArtifact(it) }
|
||||||
/* return only the universal APK */
|
if (urls.size() > 1) { /* Return only the universal APK. */
|
||||||
if (urls.size() > 1) {
|
|
||||||
env.PKG_URL = urls.find { it.contains('universal') }
|
env.PKG_URL = urls.find { it.contains('universal') }
|
||||||
} else { /* if no universal is available pick first */
|
} else { /* If no universal is available pick first. */
|
||||||
env.PKG_URL = urls.first()
|
env.PKG_URL = urls.first()
|
||||||
}
|
}
|
||||||
jenkins.setBuildDesc(APK: env.PKG_URL)
|
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()
|
|
||||||
}
|
|
||||||
} }
|
} }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
library 'status-jenkins-lib@v1.6.3'
|
library 'status-jenkins-lib@v1.6.5'
|
||||||
|
|
||||||
/* Options section can't access functions in objects. */
|
/* Options section can't access functions in objects. */
|
||||||
def isPRBuild = utils.isPRBuild()
|
def isPRBuild = utils.isPRBuild()
|
||||||
|
@ -72,15 +72,11 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Upload') {
|
stage('Upload') {
|
||||||
|
when { expression { !utils.isReleaseBuild() } }
|
||||||
steps { script {
|
steps { script {
|
||||||
env.PKG_URL = s3.uploadArtifact(api)
|
env.DIAWI_URL = ios.uploadToDiawi()
|
||||||
|
env.PKG_URL = env.DIAWI_URL
|
||||||
jenkins.setBuildDesc(IPA: env.PKG_URL)
|
jenkins.setBuildDesc(IPA: env.PKG_URL)
|
||||||
/* e2e builds get tested in SauceLabs */
|
|
||||||
if (utils.isE2EBuild()) {
|
|
||||||
env.SAUCE_URL = ios.uploadToSauceLabs()
|
|
||||||
} else if (!utils.isReleaseBuild()) {
|
|
||||||
env.DIAWI_URL = ios.uploadToDiawi()
|
|
||||||
}
|
|
||||||
} }
|
} }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -334,16 +334,4 @@ platform :android do
|
||||||
version_code: '2020042307'
|
version_code: '2020042307'
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
desc '`fastlane android upload_diawi` - upload .apk to diawi'
|
|
||||||
desc 'expects to have an .apk prepared: `result/app.apk`'
|
|
||||||
desc 'expects to have a diawi token as DIAWI_TOKEN env variable'
|
|
||||||
desc 'expects to have a github token as GITHUB_TOKEN env variable'
|
|
||||||
desc "will fails if file isn't there"
|
|
||||||
desc '---'
|
|
||||||
desc 'Output: writes `fastlane/diawi.out` file url of the uploded file'
|
|
||||||
lane :upload_diawi do
|
|
||||||
uniApk = APK_PATHS.detect { |a| a.include? 'universal' }
|
|
||||||
upload_to_diawi(uniApk)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue