Commit 1e13ea5f authored by Christophe Henry's avatar Christophe Henry

Disable Assamble on other branches than develop

parent 85b3fbaf
Pipeline #3725 passed with stage
in 0 seconds
......@@ -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/.gradle/:/root/.gradle/:rw " +
"-v /home/android/freshrss_signkey.jks:/home/android/freshrss_signkey.jks:ro " +
"-u root --privileged"
}
......@@ -23,14 +24,7 @@ pipeline {
buildDiscarder(logRotator(numToKeepStr: "2"))
skipStagesAfterUnstable()
gitLabConnection('GitlabFeneas')
gitlabBuilds(builds: [
"Compile",
"Lint",
"Unit tests",
"Instrumented tests on min SDK image",
"Instrumented tests on max SDK image",
"Build APK"
])
gitlabBuilds(builds: getBuildSteps(env.BRANCH_NAME))
disableConcurrentBuilds()
newContainerPerStage()
timestamps()
......@@ -137,6 +131,8 @@ pipeline {
archiveArtifacts artifacts: "**/*.apk", fingerprint: true
}
}
when { branch "develop" }
}
}
......@@ -145,4 +141,16 @@ pipeline {
sh "chown jenkins: ${env.WORKSPACE}"
}
}
}
def getBuildSteps(String branch) {
def buildSteps = [
"Compile",
"Lint",
"Unit tests",
"Instrumented tests on min SDK image",
"Instrumented tests on max SDK image"
]
if(branch == "develop") return buildSteps + ["Build APK"]
return buildSteps
}
\ No newline at end of file
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