summaryrefslogtreecommitdiff
diff options
authorPMR <pmr@pmr-lander>2017-07-12 15:50:21 +0000
committerPMR <pmr@pmr-lander>2017-07-12 15:50:21 +0000
commitbdfca11de6c0670b49f759f3162bd5643a7fa1b2 (patch)
tree9a91b2f05316275238d22cadee558dbc85cac05d
parente8eb04725191e3ca4beaefc87a02c57022632a68 (diff)
parentc727cf315f546ca939aed0c100c38f812ac8d720 (diff)
Merge #327137 from ~bladernr/plainbox-provider-checkbox:add-sosreport-job
-rw-r--r--jobs/miscellanea.txt.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/jobs/miscellanea.txt.in b/jobs/miscellanea.txt.in
index dc79a32..6dec07d 100644
--- a/jobs/miscellanea.txt.in
+++ b/jobs/miscellanea.txt.in
@@ -334,3 +334,23 @@ _steps:
2. Compare items on System Manifest to the devices known to udev
_verification:
Do the devices reported by udev match the devices on the Manifest?
+
+plugin: shell
+category_id: com.canonical.plainbox::miscellanea
+estimated_duration: 20.0
+id: miscellanea/sosreport
+user: root
+requires: executable.name == 'sosreport'
+command: sosreport --batch --tmp-dir $PLAINBOX_SESSION_SHARE
+_summary: Generate baseline sosreport
+_description: Generates a baseline sosreport of logs and system data
+
+plugin: attachment
+category_id: com.canonical.plainbox::miscellanea
+estimated_duration: 5.0
+id: miscellanea/sosreport_attachment
+depends: miscellanea/sosreport
+user: root
+command:
+ SOSFILE=`ls -t $PLAINBOX_SESSION_SHARE/sosreport*xz | head -1`; [ -e ${SOSFILE} ] && base64 $SOSFILE
+_summary: Attach the baseline sosreport file