Commit 36e5663d authored by 王雷's avatar 王雷

显示分支,显示环境

parent a855bc43
...@@ -150,19 +150,19 @@ gradlePlugin { ...@@ -150,19 +150,19 @@ gradlePlugin {
uploadArchives { uploadArchives {
repositories.mavenDeployer { repositories.mavenDeployer {
/*repository(url: uri('https://hub.zmcms.cn/repository/maven-releases/')) { repository(url: uri('https://hub.zmcms.cn/repository/maven-releases/')) {
authentication(userName: 'wanglei1', password: 'woshiwanglei123') authentication(userName: 'wanglei1', password: 'woshiwanglei123')
} */ // 本地仓库路径 }
pom.groupId = "com.qmai.android.plugin"// 唯一标识(通常为模块包名,也可以任意) pom.groupId = "com.qmai.android.plugin"// 唯一标识(通常为模块包名,也可以任意)
pom.artifactId = "AndroidPlugins" // 项目名称(通常为类库模块名称,也可以任意) pom.artifactId = "AndroidPlugins" // 项目名称(通常为类库模块名称,也可以任意)
//pom.version = "1.36" // 版本号 pom.version = "1.38" // 版本号
pom.version = "1.48-SNAPSHOT" // pom.version = "1.48-SNAPSHOT"
snapshotRepository(url: 'https://hub.zmcms.cn/repository/maven-snapshots/') { /* snapshotRepository(url: 'https://hub.zmcms.cn/repository/maven-snapshots/') {
authentication(userName: 'wanglei1', password: 'woshiwanglei123') authentication(userName: 'wanglei1', password: 'woshiwanglei123')
} }*/
} }
} }
// Add a source set for the functional test suite // Add a source set for the functional test suite
......
...@@ -66,7 +66,7 @@ class PygerUploadTask extends DefaultTask { ...@@ -66,7 +66,7 @@ class PygerUploadTask extends DefaultTask {
println("下载地址为: downloadUrl:" + " https://www.pgyer.com/" + payInfoBean.data.buildShortcutUrl) println("下载地址为: downloadUrl:" + " https://www.pgyer.com/" + payInfoBean.data.buildShortcutUrl)
println("二维码地址为:" + payInfoBean.data.buildQRCodeURL) println("二维码地址为:" + payInfoBean.data.buildQRCodeURL)
System.out.println("upload result: " + result) System.out.println("upload result: " + result)
String content = file.name + ": 下载地址: " + " https://www.pgyer.com/" + payInfoBean.data.buildShortcutUrl + " \n二维码地址: " + payInfoBean.data.buildQRCodeURL + " 当前环境" + buildType + " 当前分支" + getBranch() String content = file.name + ": 下载地址: " + " https://www.pgyer.com/" + payInfoBean.data.buildShortcutUrl + " \n二维码地址: " + payInfoBean.data.buildQRCodeURL + " 当前环境: " + buildType + " 当前分支: " + getBranch()
MediaType JSON = MediaType.parse("application/json; charset=utf-8"); MediaType JSON = MediaType.parse("application/json; charset=utf-8");
JSONObject json = new JSONObject() JSONObject json = new JSONObject()
try { try {
......
...@@ -76,7 +76,7 @@ class OssUploadTask extends DefaultTask { ...@@ -76,7 +76,7 @@ class OssUploadTask extends DefaultTask {
MediaType JSON = MediaType.parse("application/json; charset=utf-8"); MediaType JSON = MediaType.parse("application/json; charset=utf-8");
JSONObject json = new JSONObject() JSONObject json = new JSONObject()
def gson = new Gson() def gson = new Gson()
def content = "qmshopassitant: 下载地址为: " + "https://files.qmai.cn/" + ossPath + fileName+" 当前环境"+buildType +" 当前分支"+getBranch() def content = "qmshopassitant: 下载地址为: " + "https://files.qmai.cn/" + ossPath + fileName+" 当前环境: "+buildType +" 当前分支: "+getBranch()
def dingDingdetail = new DingDingDetailInfoModel(content) def dingDingdetail = new DingDingDetailInfoModel(content)
def dingdingInfo = new DingDingInfoModel(dingDingdetail) def dingdingInfo = new DingDingInfoModel(dingDingdetail)
RequestBody requestBody = RequestBody.create(JSON, gson.toJson(dingdingInfo)) RequestBody requestBody = RequestBody.create(JSON, gson.toJson(dingdingInfo))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment