Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GradlePlugin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gradle
GradlePlugin
Commits
3c84a50d
Commit
3c84a50d
authored
May 31, 2023
by
tongzifang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 换行
parent
7e7e5587
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
build.gradle
build.gradle
+1
-1
OssUploadTask.groovy
src/main/groovy/com/qmai/android/plugin/OssUploadTask.groovy
+1
-1
PygerUploadTask.groovy
...ain/groovy/com/qmai/android/plugin/PygerUploadTask.groovy
+1
-1
No files found.
build.gradle
View file @
3c84a50d
...
...
@@ -250,7 +250,7 @@ task hot{
}
group
'com.qmai.android.plugin'
version
'1.99.
3
'
version
'1.99.
4
'
gradlePublish
{
...
...
src/main/groovy/com/qmai/android/plugin/OssUploadTask.groovy
View file @
3c84a50d
...
...
@@ -83,7 +83,7 @@ class OssUploadTask extends DefaultTask {
//钉钉通知
MediaType
JSON
=
MediaType
.
parse
(
"application/json; charset=utf-8"
);
def
gson
=
new
Gson
()
def
content
=
"${appName.isEmpty() ? file.name : appName}: 下载地址为: https://files.qmai.cn/$ossPath$fileName\n当前
分支: ${getBranch()}当前环境: $buildType\n目标cpu: $flavor
"
def
content
=
"${appName.isEmpty() ? file.name : appName}: 下载地址为: https://files.qmai.cn/$ossPath$fileName\n当前
环境: $buildType\n目标cpu: $flavor\n当前分支: ${getBranch()}
"
def
dingDingdetail
=
new
FsDetailInfoModel
(
content
)
def
dingdingInfo
=
new
FsInfoModel
(
dingDingdetail
)
RequestBody
requestBody
=
RequestBody
.
create
(
JSON
,
gson
.
toJson
(
dingdingInfo
))
...
...
src/main/groovy/com/qmai/android/plugin/PygerUploadTask.groovy
View file @
3c84a50d
...
...
@@ -79,7 +79,7 @@ class PygerUploadTask extends DefaultTask {
println
(
"getBranch error = "
+
e
.
message
)
}
String
content
=
"${appName.isEmpty() ? file.name : appName}: 下载地址为: https://www.pgyer.com/$payInfoBean.data.buildShortcutUrl\n二维码地址: $payInfoBean.data.buildQRCodeURL\n当前
分支: ${branch}\n当前环境: $buildType\n目标cpu: $flavor
"
String
content
=
"${appName.isEmpty() ? file.name : appName}: 下载地址为: https://www.pgyer.com/$payInfoBean.data.buildShortcutUrl\n二维码地址: $payInfoBean.data.buildQRCodeURL\n当前
环境: $buildType\n目标cpu: $flavor\n当前分支: ${branch}
"
println
(
"fs content = ${content}"
)
MediaType
JSON
=
MediaType
.
parse
(
"application/json; charset=utf-8"
);
try
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment