Use master as distro for sandbox branches sandbox/jsmoeller/distro-sandbox
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 10 Aug 2020 15:17:30 +0000 (17:17 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 10 Aug 2020 15:17:30 +0000 (17:17 +0200)
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: Ieadb93820dcb1ee07d7b59ef99a8341d36d9f172

jjb/common/include-agl-auto-conf.sh
jjb/housekeeping/include-template.sh [new file with mode: 0644]
jjb/housekeeping/template.yaml [new file with mode: 0644]

index 20f5d9f..02e2c58 100644 (file)
@@ -10,6 +10,7 @@ if test x"" = x"${GERRIT_BRANCH}"; then
     export DISTROBRANCH="master"
 else
     export DISTROBRANCH="${GERRIT_BRANCH}"
+    grep -q sandbox <<< $GERRIT_BRANCH && export DISTROBRANCH="master"
 fi
 cat << EOF >> conf/auto.conf
 PREMIRRORS = "\
diff --git a/jjb/housekeeping/include-template.sh b/jjb/housekeeping/include-template.sh
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/jjb/housekeeping/template.yaml b/jjb/housekeeping/template.yaml
new file mode 100644 (file)
index 0000000..5b239c7
--- /dev/null
@@ -0,0 +1,28 @@
+---
+- project:
+    name: snapshot-jjb-template
+    jobs:
+      - snapshot-jjb-template
+
+- job-template:
+    name: 'snapshot-jjb-template'
+    project-type: freestyle
+    concurrent: false
+    node: agl-test-slave
+
+    build-discarder:
+      days-to-keep: 30
+      num-to-keep: 40
+      artifact-days-to-keep: -1
+      artifact-num-to-keep: 5
+
+#    triggers:
+#      - timed: '@weekly'
+
+    wrappers:
+      - agl-infra-wrappers:
+          build-timeout: '{build-timeout}'
+
+    builders:
+      - shell:
+          !include-raw-escape: include-template.sh