Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
FreshRSS-Android
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
28
Issues
28
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Christophe Henry
FreshRSS-Android
Commits
85b3fbaf
Commit
85b3fbaf
authored
Mar 01, 2020
by
Christophe Henry
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'enable-assemble' into 'develop'
Enable Jenkins build and archive APK See merge request
!82
parents
9c47a2a1
c5237508
Pipeline
#3721
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
14 deletions
+25
-14
Jenkinsfile
Jenkinsfile
+22
-14
app/build.gradle
app/build.gradle
+3
-0
No files found.
Jenkinsfile
View file @
85b3fbaf
...
...
@@ -4,6 +4,7 @@ pipeline {
image
"bitriseio/docker-android"
args
"-v /etc/passwd:/etc/passwd:ro "
+
"-v /home/android/android-sdk-linux/:/opt/android-sdk-linux/:rw "
+
"-v /home/android/freshrss_signkey.jks:/home/android/freshrss_signkey.jks:ro "
+
"-u root --privileged"
}
}
...
...
@@ -14,6 +15,8 @@ pipeline {
MIN_SDK_IMAGE
=
"system-images;android-$MIN_SDK_VERSION;default;x86_64"
.
toString
()
MAX_SDK_IMAGE
=
"system-images;android-$MAX_SDK_VERSION;default;x86_64"
.
toString
()
ANDROID_HOME
=
"/opt/android-sdk-linux"
SIGN_KEY_PATH
=
"/home/android/freshrss_signkey.jks"
SIGN_KEY_CREDENTIALS
=
credentials
"freshrss-signkey"
}
options
{
...
...
@@ -21,11 +24,12 @@ pipeline {
skipStagesAfterUnstable
()
gitLabConnection
(
'GitlabFeneas'
)
gitlabBuilds
(
builds:
[
'Compile'
,
'Lint'
,
'Unit tests'
,
'Instrumented tests on min SDK image'
,
'Instrumented tests on max SDK image'
"Compile"
,
"Lint"
,
"Unit tests"
,
"Instrumented tests on min SDK image"
,
"Instrumented tests on max SDK image"
,
"Build APK"
])
disableConcurrentBuilds
()
newContainerPerStage
()
...
...
@@ -121,15 +125,19 @@ pipeline {
}
}
// stage("Build APK") {
// steps {
// withAvd(hardwareProfile: "Nexus 5X", systemImage: env.MIN_SDK_IMAGE, headless: true) {
// sh "./gradlew assembleDebug"
// archiveArtifacts "**/*.apk"
// }
// }
// }
stage
(
"Build APK"
)
{
steps
{
gitlabCommitStatus
(
"Build APK"
)
{
sh
(
"""./gradlew clean assembleRelease \
-Pandroid.injected.signing.store.file=${env.SIGN_KEY_PATH} \
-Pandroid.injected.signing.store.password=${env.SIGN_KEY_CREDENTIALS_PSW} \
-Pandroid.injected.signing.key.alias=${env.SIGN_KEY_CREDENTIALS_USR} \
-Pandroid.injected.signing.key.password=${env.SIGN_KEY_CREDENTIALS_PSW}
"""
)
archiveArtifacts
artifacts:
"**/*.apk"
,
fingerprint:
true
}
}
}
}
post
{
...
...
app/build.gradle
View file @
85b3fbaf
...
...
@@ -73,6 +73,9 @@ android {
delete
new
FileNameFinder
().
getFileNames
(
buildDir
.
absolutePath
,
"**/config.properties"
)
}
}
variant
.
outputs
.
all
{
output
->
outputFileName
=
new
File
(
"FreshRSS-Jenkins-${variant.versionName}-${variant.name}.apk"
)
}
}
androidExtensions
{
...
...
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