]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-pipeline: Copy less artifacts
authorZack Cerza <zack@cerza.org>
Thu, 27 Feb 2025 18:15:22 +0000 (11:15 -0700)
committerZack Cerza <zack@cerza.org>
Fri, 18 Apr 2025 17:19:25 +0000 (11:19 -0600)
This is purely to save time.

Signed-off-by: Zack Cerza <zack@cerza.org>
ceph-dev-pipeline/build/Jenkinsfile

index 674a1ae901c5ad5f66909c8a2222f2c5236a2ac1..5509837b92ff4ccde9d25b00717c966f3472481a 100644 (file)
@@ -123,17 +123,18 @@ pipeline {
           stage("copy artifacts") {
             steps {
               script {
-                if ( env.CI_COMPILE == "true" ) {
-                  env.ARTIFACT_FILTER = "dist/**"
-                } else {
-                  env.ARTIFACT_FILTER = "dist/sha1,dist/version,dist/other_envvars,dist/ceph_*.orig.tar.gz"
+                def artifact_filter = "dist/sha1,dist/version,dist/other_envvars,dist/ceph-*.tar.bz2"
+                def os = get_os_info(env.DIST)
+                if ( env.CI_COMPILE && os.pkg_type == "deb" ) {
+                  artifact_filter += ",dist/ceph_*.orig.tar.gz,dist/ceph_*.diff.gz,dist/ceph_*.dsc"
                 }
+                println artifact_filter
+                copyArtifacts(
+                  projectName: "ceph-dev-new-setup",
+                  selector: specific(buildNumber: env.SETUP_BUILD_ID),
+                  filter: artifact_filter,
+                )
               }
-              copyArtifacts(
-                projectName: "ceph-dev-new-setup",
-                selector: specific(buildNumber: env.SETUP_BUILD_ID),
-                filter: env.ARTIFACT_FILTER,
-              )
               script {
                 def sha1_props = readProperties file: "${WORKSPACE}/dist/sha1"
                 env.SHA1 = sha1_props.SHA1