{"id":1867,"date":"2023-03-29T22:29:03","date_gmt":"2023-03-29T14:29:03","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1867"},"modified":"2023-04-22T09:06:02","modified_gmt":"2023-04-22T01:06:02","slug":"tinker-bugly-jenkins-record","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/29\/tinker-bugly-jenkins-record\/","title":{"rendered":"Tinker + Bugly + Jenkins \u722c\u5751\u4e4b\u8def"},"content":{"rendered":"<h2>Tinker + Bugly\u70ed\u4fee\u590d\u5b9e\u73b0<\/h2>\n<p>\u53c2\u8003\u5b98\u65b9\u6587\u6863\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/bugly.qq.com\/docs\/user-guide\/instruction-manual-android-hotfix\/\" title=\"Bugly Android\u70ed\u66f4\u65b0\u4f7f\u7528\u6307\u5357\">Bugly Android\u70ed\u66f4\u65b0\u4f7f\u7528\u6307\u5357<\/a>\u3001<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/bugly.qq.com\/docs\/user-guide\/instruction-manual-android-hotfix-demo\/\" title=\"Bugly Android\u70ed\u66f4\u65b0\u8be6\u89e3\">Bugly Android\u70ed\u66f4\u65b0\u8be6\u89e3<\/a><\/p>\n<p><!-- more --><\/p>\n<p>\u4e3b\u8981\u63a5\u5165\u6d41\u7a0b\uff1a<\/p>\n<ul>\n<li>\u6253\u57fa\u51c6\u5305\u5b89\u88c5\u5e76\u4e0a\u62a5\u8054\u7f51\uff08\u6ce8\uff1a\u586b\u5199\u552f\u4e00\u7684<code>tinkerId<\/code>\uff09<\/li>\n<li>\u5bf9\u57fa\u51c6\u5305\u7684 bug \u4fee\u590d\uff08\u53ef\u4ee5\u662f Java \u4ee3\u7801\u53d8\u66f4\uff0c\u8d44\u6e90\u7684\u53d8\u66f4\uff09<\/li>\n<li>\u4fee\u6539\u57fa\u51c6\u5305\u8def\u5f84\u3001\u4fee\u6539\u8865\u4e01\u5305<code>tinkerId<\/code>\u3001<code>mapping<\/code>\u6587\u4ef6\u8def\u5f84\uff08\u5982\u679c\u5f00\u542f\u4e86\u6df7\u6dc6\u9700\u8981\u914d\u7f6e\uff09\u3001<code>resId<\/code>\u6587\u4ef6\u8def\u5f84<\/li>\n<li>\u6267\u884c<code>buildTinkerPatchRelease<\/code>\u6253 Release \u7248\u672c\u8865\u4e01\u5305<\/li>\n<li>\u9009\u62e9<code>app\/build\/outputs\/patch<\/code>\u76ee\u5f55\u4e0b\u7684\u8865\u4e01\u5305\u5e76\u4e0a\u4f20\uff08<strong>\u6ce8\uff1a\u4e0d\u8981\u9009\u62e9<code>tinkerPatch<\/code>\u76ee\u5f55\u4e0b\u7684\u8865\u4e01\u5305\uff0c\u4e0d\u7136\u4e0a\u4f20\u4f1a\u6709\u95ee\u9898<\/strong>\uff09<\/li>\n<li>\u7f16\u8f91\u4e0b\u53d1\u8865\u4e01\u89c4\u5219\uff0c\u70b9\u51fb\u7acb\u5373\u4e0b\u53d1<\/li>\n<li>\u6740\u6b7b\u8fdb\u7a0b\u5e76\u91cd\u542f\u57fa\u51c6\u5305\uff0c\u8bf7\u6c42\u8865\u4e01\u7b56\u7565\uff08SDK \u4f1a\u81ea\u52a8\u4e0b\u8f7d\u8865\u4e01\u5e76\u5408\u6210\uff09<\/li>\n<li>\u518d\u6b21\u91cd\u542f\u57fa\u51c6\u5305\uff0c\u68c0\u9a8c\u8865\u4e01\u5e94\u7528\u7ed3\u679c<\/li>\n<li>\u67e5\u770b\u9875\u9762\uff0c\u67e5\u770b\u6fc0\u6d3b\u6570\u636e\u7684\u53d8\u5316<\/li>\n<\/ul>\n<h2>\u7ed3\u5408 Jenkins \u6240\u9047\u5230\u7684\u5751<\/h2>\n<h3>\u57fa\u7ebf\u5305\u7ef4\u62a4<\/h3>\n<p>\u7531\u4e8e\u516c\u53f8Jenkins\u7684\u6253\u5305\u7b56\u7565\u662f\uff0c\u5728\u6784\u5efa\u4e4b\u524d\uff0c\u5148\u6267\u884c<code>clean<\/code>\u547d\u4ee4\uff0c\u8fd9\u4e5f\u5c31\u610f\u5473\u7740\uff0c\u50cf\u672c\u5730\u6253\u5305\u4e00\u6837\u5728<code>app\/build\/bakApk\/app-xxxx-xx-xx-xx<\/code>\u76ee\u5f55\u4e0b\u627e\u5230\u57fa\u51c6\u5305\u5df2\u662f\u4e0d\u53ef\u80fd\u3002\u56e0\u6b64\u53ef\u4ee5\u7ea6\u5b9a\u4e00\u4e2a\u76ee\u5f55\uff0c\u6253\u57fa\u51c6\u5305\u65f6\u5c06\u57fa\u51c6\u5305\u76ee\u5f55\u7531\u811a\u672c\u62f7\u8d1d\u8fc7\u53bb\uff0c\u6253\u8865\u4e01\u5305\u65f6\u4ece\u7ea6\u5b9a\u7684\u76ee\u5f55\u8bfb\u53d6\u5373\u53ef\uff0c\u4e5f\u53ef\u4ee5\u4e0a\u4f20Gitlab\u3001OSS\/S3\u7b49\u5e73\u53f0<\/p>\n<p>\u6784\u5efa\u57fa\u51c6\u5305\u7684\u540c\u65f6\u751f\u6210\u7684<code>mapping<\/code>\u6587\u4ef6\uff08\u5982\u679c\u5f00\u542f\u4e86\u6df7\u6dc6\u9700\u8981\u914d\u7f6e\uff09\u3001<code>resId<\/code>\u6587\u4ef6\u5728\u6784\u5efa\u8865\u4e01\u5305\u65f6\u4e5f\u9700\u8981\u7528\u5230<\/p>\n<h3>patch\u76ee\u5f55\u88ab\u6e05\u7a7a<\/h3>\n<p>Jenkins\u6784\u5efa\u671f\u95f4\u662f\u6709\u5728<code>app\/build\/outputs\/patch<\/code>\u76ee\u5f55\u4e0b\u751f\u6210<code>patch_signed_7zip.apk<\/code>\u6587\u4ef6\u7684\uff0c\u4f46\u662f\u6784\u5efa\u5b8c\u6210\u4e4b\u540e\u88ab\u6e05\u7a7a\u4e86\uff0c\u6784\u5efa\u811a\u672c\u5982\u4e0b\uff1a<\/p>\n<pre><code>sh gradlew clean buildTinkerPatchRelease  --stacktrace\nsh gradlew checklist<\/code><\/pre>\n<p>\u6267\u884c<code>buildTinkerPatchRelease<\/code>\u540e\uff0c\u8fd8\u6267\u884c<code>checklist<\/code>\u4efb\u52a1\uff0c\u539f\u56e0\u662f\u6267\u884c<code>checklist<\/code>\u65f6\u628a<code>patch<\/code>\u76ee\u5f55\u7ed9\u6e05\u7a7a\u4e86<\/p>\n<blockquote>\n<p>\u6ce8\u610f\uff1a\u6253\u8865\u4e01\u5305\u540e\uff0c\u518d\u6b21\u6267\u884c<code>gradle task<\/code>\uff0c\u57fa\u672c\u90fd\u4f1a\u6e05\u7a7a<code>patch<\/code>\u76ee\u5f55\uff0c\u8fd9\u662f\u4e2a\u5751<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Tinker + Bugly\u70ed\u4fee\u590d\u5b9e\u73b0 \u53c2\u8003\u5b98\u65b9\u6587\u6863\uff1aBugly Android\u70ed\u66f4\u65b0\u4f7f\u7528\u6307\u5357\u3001Bugly A [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[311],"tags":[200,92,465],"class_list":["post-1867","post","type-post","status-publish","format-standard","hentry","category-android-advance","tag-bugly","tag-jenkins","tag-tinker"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1867"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1867\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}