From 7b2836d6c5b6e7a4c1e115a49c98fb5beb90a9f7 Mon Sep 17 00:00:00 2001 From: ChrisYu <344190767@qq.com> Date: Sat, 6 May 2023 16:15:57 +0800 Subject: [PATCH 1/8] Create jenkinsfile --- jenkinsfile | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 jenkinsfile diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 00000000..14ea4943 --- /dev/null +++ b/jenkinsfile @@ -0,0 +1,44 @@ +pipeline { + agent any + + stages { + stage('Checkout') { + steps { + checkout([$class: 'GitSCM', + branches: [[name: '*/main']], + userRemoteConfigs: [[url: 'https://github.com/username/my-android-app.git']]]) + } + } + + stage('Build') { + steps { + sh './gradlew assembleDebug' + } + } + + stage('Test') { + steps { + sh './gradlew test' + } + } + + stage('Lint') { + steps { + sh './gradlew lint' + } + } + + stage('Publish') { + steps { + sh './gradlew assembleRelease' + archiveArtifacts artifacts: 'app/build/outputs/apk/release/*.apk', fingerprint: true + } + } + } + + post { + always { + cleanWs() + } + } +} From 929a638de8de303c80a71b02832c46487333ba1c Mon Sep 17 00:00:00 2001 From: ChrisYu <344190767@qq.com> Date: Sat, 6 May 2023 16:45:51 +0800 Subject: [PATCH 2/8] commit pipeline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #508 测试开发的任务 https://ones.cn/project/#/team/UmGp3v7L/task/U3rZPjcTjGxRNW6J --- .../java/org/ninetripods/mq/study/ExampleInstrumentedTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/androidTest/java/org/ninetripods/mq/study/ExampleInstrumentedTest.java b/app/src/androidTest/java/org/ninetripods/mq/study/ExampleInstrumentedTest.java index 4c43572e..92fe08f5 100644 --- a/app/src/androidTest/java/org/ninetripods/mq/study/ExampleInstrumentedTest.java +++ b/app/src/androidTest/java/org/ninetripods/mq/study/ExampleInstrumentedTest.java @@ -18,7 +18,7 @@ public class ExampleInstrumentedTest { @Test public void useAppContext() throws Exception { - // Context of the app under test. + // Context of the app under test. test 流水线 Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("org.ninetripods.mq.circleview", appContext.getPackageName()); From e80ee1419bc9f76a054a8cacc090defa7c83b1bf Mon Sep 17 00:00:00 2001 From: ChrisYu <344190767@qq.com> Date: Sat, 6 May 2023 16:59:24 +0800 Subject: [PATCH 3/8] test pipeline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #508 测试开发的任务 https://ones.cn/project/#/team/UmGp3v7L/task/U3rZPjcTjGxRNW6J --- .../java/org/ninetripods/mq/study/ExampleInstrumentedTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/androidTest/java/org/ninetripods/mq/study/ExampleInstrumentedTest.java b/app/src/androidTest/java/org/ninetripods/mq/study/ExampleInstrumentedTest.java index 92fe08f5..66bf7236 100644 --- a/app/src/androidTest/java/org/ninetripods/mq/study/ExampleInstrumentedTest.java +++ b/app/src/androidTest/java/org/ninetripods/mq/study/ExampleInstrumentedTest.java @@ -18,7 +18,7 @@ public class ExampleInstrumentedTest { @Test public void useAppContext() throws Exception { - // Context of the app under test. test 流水线 + // Context of the app under test. test 流水线 00 Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("org.ninetripods.mq.circleview", appContext.getPackageName()); From 1af58d1782c665aafc5673a581ab2aa38c461b84 Mon Sep 17 00:00:00 2001 From: ChrisYu <344190767@qq.com> Date: Sat, 6 May 2023 17:05:17 +0800 Subject: [PATCH 4/8] Update build.gradle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #508 测试开发的任务 https://ones.cn/project/#/team/UmGp3v7L/task/U3rZPjcTjGxRNW6J --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 2b701d0f..4a925817 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,6 +1,6 @@ apply plugin: 'com.android.application' -//获取时间戳 +//获取时间戳 交付pipeline def getDate() { def date = new Date() def formattedDate = date.format('yyyyMMddHHmm') From edb5a086bec8491da87b5fcbc676f95f443e6d51 Mon Sep 17 00:00:00 2001 From: ChrisYu <344190767@qq.com> Date: Wed, 1 Nov 2023 23:10:34 +0800 Subject: [PATCH 5/8] Update README.md https://tapdspace.atlassian.net/browse/SCRUM-14 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 183b6f43..cc7c93d6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# AndroidStudy +# AndroidStudy 111 # 扫描二维码下载APK示例: ![image](http://upload-images.jianshu.io/upload_images/587163-f258a65074ff6b36.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) From 524d4fc31f737fb8c5270a13aa5a0e2256d224b0 Mon Sep 17 00:00:00 2001 From: ChrisYu <344190767@qq.com> Date: Wed, 1 Nov 2023 23:20:27 +0800 Subject: [PATCH 6/8] Update README.md 222 git commit -m "SCRUM-13 " --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cc7c93d6..2d8e8f15 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# AndroidStudy 111 +# AndroidStudy 111 222 # 扫描二维码下载APK示例: ![image](http://upload-images.jianshu.io/upload_images/587163-f258a65074ff6b36.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) From 30663b3dba26ba9777591b28eb8e81bf7992b508 Mon Sep 17 00:00:00 2001 From: ChrisYu <344190767@qq.com> Date: Wed, 1 Nov 2023 23:30:24 +0800 Subject: [PATCH 7/8] Update README.md 333 https://tapdspace.atlassian.net/browse/SCRUM-13 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2d8e8f15..3a4b6324 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ # 扫描二维码下载APK示例: ![image](http://upload-images.jianshu.io/upload_images/587163-f258a65074ff6b36.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) -# 更新日志: +# 更新日志:333 **2017/06/19** Android仿QQ小红点 ( http://www.jianshu.com/p/9f0736c24029 ) From e912578309ba7ad81780c60ffd1755157d409194 Mon Sep 17 00:00:00 2001 From: ChrisYu <344190767@qq.com> Date: Wed, 1 Nov 2023 23:33:29 +0800 Subject: [PATCH 8/8] Update README.md https://tapdspace.atlassian.net/browse/SCRUM-13 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3a4b6324..61026129 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ # 扫描二维码下载APK示例: ![image](http://upload-images.jianshu.io/upload_images/587163-f258a65074ff6b36.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) -# 更新日志:333 +# 更新日志:333 444 **2017/06/19** Android仿QQ小红点 ( http://www.jianshu.com/p/9f0736c24029 )