Disable automatic archiving of Maven builds

>From the Web UI:

> If checked, Jenkins will not automatically archive all artifacts generated by 
> this project. If you wish to archive the results of this build within 
> Jenkins, you will need to use the "Archive the artifacts" post-build action 
> below.


Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/85422f99
Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/85422f99
Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/85422f99

Branch: refs/heads/gearpump-runner
Commit: 85422f999752fc827113609be0ba72cc64a9d3b3
Parents: 28d7913
Author: Daniel Halperin <dhalp...@users.noreply.github.com>
Authored: Mon Dec 19 11:13:49 2016 -0800
Committer: Dan Halperin <dhalp...@google.com>
Committed: Mon Dec 19 16:16:48 2016 -0800

----------------------------------------------------------------------
 .jenkins/common_job_properties.groovy | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/85422f99/.jenkins/common_job_properties.groovy
----------------------------------------------------------------------
diff --git a/.jenkins/common_job_properties.groovy 
b/.jenkins/common_job_properties.groovy
index 3880236..e1688ec 100644
--- a/.jenkins/common_job_properties.groovy
+++ b/.jenkins/common_job_properties.groovy
@@ -140,6 +140,10 @@ class common_job_properties {
     context.rootPOM('pom.xml')
     // Use a repository local to the workspace for better isolation of jobs.
     context.localRepository(LocalRepositoryLocation.LOCAL_TO_WORKSPACE)
+    // Disable archiving the built artifacts by default, as this is slow and 
flaky.
+    // We can usually recreate them easily, and we can also opt-in individual 
jobs
+    // to artifact archiving.
+    context.archivingDisabled(true)
   }
 
   // Sets common config for PreCommit jobs.

Reply via email to