From 64387b8c78043fd7bd2e4d4426a8d048b4ae06ed Mon Sep 17 00:00:00 2001 From: Jan-Simon Moeller Date: Mon, 10 Aug 2020 17:17:30 +0200 Subject: Use master as distro for sandbox branches Signed-off-by: Jan-Simon Moeller Change-Id: Ieadb93820dcb1ee07d7b59ef99a8341d36d9f172 --- jjb/common/include-agl-auto-conf.sh | 1 + jjb/housekeeping/include-template.sh | 0 jjb/housekeeping/template.yaml | 28 ++++++++++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 jjb/housekeeping/include-template.sh create mode 100644 jjb/housekeeping/template.yaml diff --git a/jjb/common/include-agl-auto-conf.sh b/jjb/common/include-agl-auto-conf.sh index 20f5d9fb..02e2c58a 100644 --- a/jjb/common/include-agl-auto-conf.sh +++ b/jjb/common/include-agl-auto-conf.sh @@ -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 index 00000000..e69de29b diff --git a/jjb/housekeeping/template.yaml b/jjb/housekeeping/template.yaml new file mode 100644 index 00000000..5b239c7b --- /dev/null +++ b/jjb/housekeeping/template.yaml @@ -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 -- cgit 1.2.3-korg