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 01/10] 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 02/10] 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 03/10] 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 04/10] 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 05/10] 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 06/10] 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 a05a696172b56ba58162f71c33299fb5c117cab8 Mon Sep 17 00:00:00 2001 From: ChrisYu <344190767@qq.com> Date: Wed, 6 Aug 2025 17:37:11 +0800 Subject: [PATCH 07/10] Create workflows --- workflows | 1 + 1 file changed, 1 insertion(+) create mode 100644 workflows diff --git a/workflows b/workflows new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/workflows @@ -0,0 +1 @@ + From 895516cb1296ef9495fa9a37de5658c7ec3dfcce Mon Sep 17 00:00:00 2001 From: ChrisYu <344190767@qq.com> Date: Wed, 6 Aug 2025 09:45:29 +0000 Subject: [PATCH 08/10] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- workflows | 1 - workflows/ci.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) delete mode 100644 workflows create mode 100644 workflows/ci.yml diff --git a/workflows b/workflows deleted file mode 100644 index 8b137891..00000000 --- a/workflows +++ /dev/null @@ -1 +0,0 @@ - diff --git a/workflows/ci.yml b/workflows/ci.yml new file mode 100644 index 00000000..f33b7c77 --- /dev/null +++ b/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI Build and Test # Action 的名称 + +on: + push: + branches: [ main ] # 触发条件:推送代码到 main 分支时运行 + pull_request: + branches: [ main ] # 触发条件:向 main 分支提 PR 时运行 + +jobs: + build: # 任务名称(自定义) + runs-on: ubuntu-latest # 运行环境(可选:ubuntu-latest, windows-latest, macos-latest) + + steps: + - name: Checkout code # 步骤1:拉取代码 + uses: actions/checkout@v4 + + - name: Setup Node.js # 步骤2:安装 Node.js(示例) + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Install dependencies # 步骤3:安装依赖 + run: npm install + + - name: Run tests # 步骤4:运行测试 + run: npm test \ No newline at end of file From 8b7655e6261067f5bc6085a3b9c4977e3bd2c903 Mon Sep 17 00:00:00 2001 From: ChrisYu <344190767@qq.com> Date: Wed, 6 Aug 2025 11:37:13 +0000 Subject: [PATCH 09/10] =?UTF-8?q?=E6=8F=90=E4=BA=A4=20-=20CHRIS-1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- {workflows => .github/workflows}/ci.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {workflows => .github/workflows}/ci.yml (100%) diff --git a/workflows/ci.yml b/.github/workflows/ci.yml similarity index 100% rename from workflows/ci.yml rename to .github/workflows/ci.yml From c029e6422f80770ab19c0272eecde0698bd76678 Mon Sep 17 00:00:00 2001 From: ChrisYu <344190767@qq.com> Date: Thu, 7 Aug 2025 10:19:44 +0800 Subject: [PATCH 10/10] Update README.md CHRIS-2 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2d8e8f15..58d3c8be 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# AndroidStudy 111 222 +# AndroidStudy 111 222 333 # 扫描二维码下载APK示例: ![image](http://upload-images.jianshu.io/upload_images/587163-f258a65074ff6b36.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)