From 161485537248a6a7e827ef448a4493beb176e356 Mon Sep 17 00:00:00 2001 From: Hasan Wan Date: Tue, 20 Aug 2013 13:22:25 +0300 Subject: [PATCH] Add new job post-image-creation This job updates image information to OBS, generate manifest files etc Signed-off-by: Hasan Wan --- jobs/post-image-creation/config.xml | 67 +++++++++++++++++++++++++++++++++++++ packaging/jenkins-jobs.spec | 2 ++ 2 files changed, 69 insertions(+) create mode 100644 jobs/post-image-creation/config.xml diff --git a/jobs/post-image-creation/config.xml b/jobs/post-image-creation/config.xml new file mode 100644 index 0000000..27968e8 --- /dev/null +++ b/jobs/post-image-creation/config.xml @@ -0,0 +1,67 @@ + + + + This job handles the image infomation updates and image manifest creation etc. + false + + + 100 + + + + imager + false + false + false + false + + false + + + #/bin/bash + +python jenkins-scripts/job_post_image.py + + + + + def matcher = manager.getLogMatcher(".*\"name\": (.*)\$") + +if(matcher?.matches()) { + manager.addShortText(matcher.group(1)) +}else{ + manager.addShortText("??") + //manager.build.delete() +} + + 0 + + + false + false + true + true + true + true + true + false + false + + + + + configuration, jenkins-scripts/job_post_image.py, jenkins-scripts/common/*, jenkins-scripts/repomaker/*, jenkins-scripts/images/* + + 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 d8554cf..ca188fa 100644 --- a/packaging/jenkins-jobs.spec +++ b/packaging/jenkins-jobs.spec @@ -58,6 +58,8 @@ cp -rf jobs/* %{buildroot}%{destdir}/ %{destdir}/delete-tag/config.xml %dir %{destdir}/image-creator/ %{destdir}/image-creator/config.xml +%dir %{destdir}/post-image-creation/ +%{destdir}/post-image-creation/config.xml %dir %{destdir}/build-check/ %{destdir}/build-check/config.xml %dir %{destdir}/requests/ -- 2.7.4