Github action to build branches except master (#4404)

This commit is contained in:
yueh
2020-06-11 20:18:41 +02:00
committed by GitHub
parent 5cda370746
commit c45a15e13b
77 changed files with 58 additions and 1831 deletions
+8 -3
View File
@@ -55,9 +55,14 @@ tasks.withType(JavaCompile) {
// Create version number
version = version_major + "." + version_minor + "." + version_patch
ext.prNumber = System.getenv('PR_NUMBER') ?: false
if (ext.prNumber) {
version = version + "+pr." + ext.prNumber
ext.pr = System.getenv('PR_NUMBER') ?: ""
if (ext.pr) {
version = version + "+pr." + ext.pr
}
ext.branch = System.getenv('BRANCH') ?: ""
if (ext.branch) {
version = version + "+branch." + ext.branch
}
// Maven group and artifact name