save build artifacts

Change-Id: Idf489ef2298dae0b778a45f284e698dde21d42ac
diff --git a/jobs.yaml b/jobs.yaml
index 0ebee25..2433543 100644
--- a/jobs.yaml
+++ b/jobs.yaml
@@ -6,10 +6,10 @@
 
         To add or modify a job, look for the "vm-build" project on https://gerrit.onlab.us
     logrotate:
-        daysToKeep: 3
-        numToKeep: 3
-        artifactDaysToKeep: -1
-        artifactNumToKeep: -1
+        daysToKeep: 10
+        numToKeep: 10
+        artifactDaysToKeep: 5
+        artifactNumToKeep: 5
     wrappers:
       - workspace-cleanup:
           include: 
@@ -57,6 +57,8 @@
     builders:
       - shell: "~mininet/mininet/util/vm/build.py -v --test sanity {flavor}"
     publishers:
+      - archive:
+            artifacts: '*'
       - trigger-parameterized-builds:
           - project: 'mininet-{flavor}-test'
             condition: SUCCESS
@@ -64,6 +66,11 @@
 
 - job-template:
     name: 'mininet-{flavor}-test'
+    parameters:
+        - string:
+            name: dir 
+            default: /var/lib/jenkins/jobs/mininet-{flavor}/workspace
+            description: "$dir defaults to last build when using Build Now."
     builders:
       - shell: "echo $dir; ~mininet/mininet/util/vm/build.py -v --test core --image $dir/*/*.vmdk"
 
@@ -100,9 +107,16 @@
     name: update-jenkins-verify
     description: |
         This job is used to verify new Jenkins jobs using jenkins-job test before they are accepted in Gerrit.
+    parameters:
+        - string:
+            name: GERRIT_REFSPEC
+            default: refs/heads/master 
+            description: "Use master as default when using Build Now."
     scm:
       - git:
           url: ssh://jenkins@gerrit.onlab.us:29418/vm-build
+          refspec: $GERRIT_REFSPEC
+          name: origin
           branches:
             - $GERRIT_BRANCH
           browser: gitweb