Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrum 13 123123 #18

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# AndroidStudy
# AndroidStudy 111 222

# 扫描二维码下载APK示例:
![image](http://upload-images.jianshu.io/upload_images/587163-f258a65074ff6b36.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

# 更新日志:
# 更新日志:333 444

**2017/06/19**
Android仿QQ小红点 ( http://www.jianshu.com/p/9f0736c24029 )
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apply plugin: 'com.android.application'

//获取时间戳
//获取时间戳 交付pipeline
def getDate() {
def date = new Date()
def formattedDate = date.format('yyyyMMddHHmm')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 流水线 00
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("org.ninetripods.mq.circleview", appContext.getPackageName());
Expand Down
44 changes: 44 additions & 0 deletions jenkinsfile
Original file line number Diff line number Diff line change
@@ -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()
}
}
}