]> git.ipfire.org Git - pakfire.git/commitdiff
jenkins: Build Debian packages only when we are in the master branch jenkins
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 7 Dec 2024 11:40:05 +0000 (11:40 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 7 Dec 2024 11:43:02 +0000 (11:43 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jenkinsfile

index 43eea67cdaad55d085892acb99e22ed64d27d4e9..fa02f066b511904757a28f018f9642a30f00739b 100644 (file)
@@ -6,11 +6,6 @@ pipeline {
                        Run the build and test suite on various distributions...
                */
                stage("Run Tests on Multiple Distributions") {
-                       // Disabled to be faster with testing the following stages
-                       when {
-                               expression { false }
-                       }
-
                        matrix {
                                axes {
                                        axis {
@@ -271,6 +266,13 @@ pipeline {
                }
 
                stage("Debian Packages") {
+                       // Only build packages when we are in the master branch
+                       when {
+                               expression {
+                                       env.GIT_BRANCH == "origin/master"
+                               }
+                       }
+
                        stages {
                                stage("Build Debian Packages") {
                                        matrix {