Skip to content

Commit 242d52d

Browse files
authored
Fix archiveArtifacts in sample Android Jenkinsfile
I was banging my head against my screen. Eventually, it turns out it was caused by a case mismatch! In Android by default the app folder is `app`, not `App`. Another improvement here is to use `archiveArtifacts` directly instead of the class.
1 parent fcb1eb4 commit 242d52d

File tree

1 file changed

+1
-1
lines changed
  • jenkinsfile-examples/android-build-flavor-from-branch

1 file changed

+1
-1
lines changed

jenkinsfile-examples/android-build-flavor-from-branch/JenkinsFile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ node {
1919

2020
stage 'Stage Archive'
2121
//tell Jenkins to archive the apks
22-
step([$class: 'ArtifactArchiver', artifacts: 'App/build/outputs/apk/*.apk', fingerprint: true])
22+
archiveArtifacts artifacts: 'app/build/outputs/apk/*.apk', fingerprint: true
2323

2424
stage 'Stage Upload To Fabric'
2525
sh "./gradlew crashlyticsUploadDistribution${flavor}Debug -PBUILD_NUMBER=${env.BUILD_NUMBER}"

0 commit comments

Comments
 (0)