5
을 해제 :uploadArchives 모두 디버그를 구축하고 내 Gradle을 스크립트에 업로드 작업이
uploadArchives {
repositories {
mavenDeployer {
repository(url: "${nexusUrl}/content/repositories/apps-releases") {
authentication(userName: nexusUsername, password: nexusPassword)
}
snapshotRepository(url: "${nexusUrl}/content/repositories/apps-snapshots") {
authentication(userName: nexusUsername, password: nexusPassword)
}
pom.groupId = "$defaultApplicationId"
pom.artifactId = 'MyApp'
pom.version = applicationVersionName()
}
}
}
과 함께 인 TeamCity에서 이것을 실행 : 그것은 uploadArchives 것 같아 디버그 버전을 구축 한 후
clean assembleDebug testDebugUnitTest crashlyticsUploadDistributionDebug uploadArchives
도 출시 버전을 구축 중입니다. 그래서 빌드가 완료되면 디버그와 릴리스 apk가 생성 된 아티팩트로 생성됩니다. 하지만 내가 uploadArchives 만 제거하면 디버그 apk 만 생성됩니다.
어쨌든 이것을 방지 할 수 있습니까? 큰 문제는 아니지만 내가 지정한 버전을 빌드하는 것이 좋을 것입니다. 즉이 좋은 것 uploadDebugArchives 및 uploadReleaseArchives ...
감사합니다. 그러나 그것을 이해함에 따라, 당신이 지정한 것을 하나만 출판 할 것입니다. 우리는 두 가지를 모두 공개하려고하지만 릴리스 빌드 또는 디버그 빌드를 지정하는 경우 같은 시간에 (즉, 우리는 스냅 샷 "디버그") 우리가 훨씬 더 자주 출시보다 게시합니다. – peuhse
*> 동시에는 아님 * 하나의 빌드 형식 만 게시한다는 것을 의미하지는 않습니까? – RaGe
예, 한 번에 예. 출시보다 훨씬 더 자주 스냅 샷을 찍습니다. – peuhse