From f7b90ec9dd24070530af9f2d6aea9d4c06e2bae9 Mon Sep 17 00:00:00 2001 From: Hasan Wan Date: Fri, 22 Nov 2013 09:24:33 +0200 Subject: [PATCH] add the jobs to generate buildlogs directory in repository Change-Id: Ib9afc53dad70559f470c3fec35ffb47235828fac Signed-off-by: Hasan Wan --- jobs/buildlogs/config.xml | 77 +++++++++++++++++++++++++++++++++++++++++++++ packaging/jenkins-jobs.spec | 2 ++ 2 files changed, 79 insertions(+) create mode 100644 jobs/buildlogs/config.xml diff --git a/jobs/buildlogs/config.xml b/jobs/buildlogs/config.xml new file mode 100644 index 0000000..3892f1c --- /dev/null +++ b/jobs/buildlogs/config.xml @@ -0,0 +1,77 @@ + + + + Job to collect buildlogs and sync to target snapshot, this jobs must be run on OBS server + + 7 + 1000 + -1 + -1 + + false + + + 100 + + + + 30 + obs + false + false + false + false + + false + + + #/bin/bash + +python ${WORKSPACE}/jenkins-scripts/job_buildlogs.py + + + + + + def matcher = manager.getLogMatcher(".*buildid='(.*)'\$") + +if(matcher?.matches()) { + manager.addShortText(matcher.group(1)) +}else{ + manager.addShortText("??") +} + 0 + + + false + false + true + true + true + true + true + false + false + + + + + false + + + + configuration, jenkins-scripts/job_buildlogs.py, jenkins-scripts/common/* + + false + false + false + userContent + + + + ${WORKSPACE}/configuration + false + + + + \ No newline at end of file diff --git a/packaging/jenkins-jobs.spec b/packaging/jenkins-jobs.spec index f117228..a1d28eb 100644 --- a/packaging/jenkins-jobs.spec +++ b/packaging/jenkins-jobs.spec @@ -84,6 +84,8 @@ fi %{destdir}/obs-event-dispatcher/config.xml %dir %{destdir}/load-repo-conf/ %{destdir}/load-repo-conf/config.xml +%dir %{destdir}/buildlogs/ +%{destdir}/buildlogs/config.xml %files common %defattr(-,jenkins,jenkins) -- 2.7.4