]> source.dussan.org Git - sonarqube.git/commitdiff
BUILD-1090 Sign dogfood builds
authorMalena Ebert <63863184+malena-ebert-sonarsource@users.noreply.github.com>
Thu, 15 Jul 2021 12:52:29 +0000 (14:52 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 20 Jul 2021 20:03:17 +0000 (20:03 +0000)
build.gradle

index 5d998357bd841ebc144018f77a08a21a6b5d8225..ad2d148b3cbf62fe69ae5785fc856d7b3be2c5c6 100644 (file)
@@ -624,7 +624,7 @@ subprojects {
     useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
     required {
       def branch = System.getenv()["CIRRUS_BRANCH"]
-      return (branch == 'master' || branch ==~ 'branch-[\\d.]+') &&
+      return (branch in ['master', 'dogfood-on-next'] || branch ==~ 'branch-[\\d.]+') &&
              gradle.taskGraph.hasTask(":artifactoryPublish")
     }
     sign publishing.publications
@@ -634,7 +634,7 @@ subprojects {
     onlyIf {
       def branch = System.getenv()["CIRRUS_BRANCH"]
       return !artifactoryPublish.skip &&
-             (branch == 'master' || branch ==~ 'branch-[\\d.]+') &&
+             (branch in ['master', 'dogfood-on-next'] || branch ==~ 'branch-[\\d.]+') &&
              gradle.taskGraph.hasTask(":artifactoryPublish")
     }
   }