[ONOS-7346] ver.d
Change-Id: I757b2cb0089bfda73ac7206178fdce41c2a84e95
diff --git a/jjb/OnosSystemTest/onos-test-freestyle.yaml b/jjb/OnosSystemTest/onos-test-freestyle.yaml
index f3029f2..726f803 100644
--- a/jjb/OnosSystemTest/onos-test-freestyle.yaml
+++ b/jjb/OnosSystemTest/onos-test-freestyle.yaml
@@ -31,6 +31,29 @@
echo "WikiPrefix=$WikiPrefix" >> /var/jenkins/TestONOS.property
override-build-parameters: true
+- builder:
+ name: clean-up-bash
+ beforeClean: |
+ echo -e "\n Before clean up disk usage: \n"
+ df -h
+ cleaning: |
+ cleaning{
+ if [ $? -eq 0 ]
+ then
+ echo "Checking if there are logs older than ${DAYS_OLD} days...."
+ for i in $(find . -mtime +${DAYS_OLD} -type d)
+ do
+ echo -e "DIRs older than $DAYS_OLD are: "
+ echo $i
+ rm -rf $i
+ done
+ fi
+ afterClean: |
+ echo -e "\n After clean up disk usage:\n"
+ df -h
+ builders:
+ - shell: '{cleanFileName}'
+
# post_Job
- job-template:
name: postjob-{station-type}
@@ -92,7 +115,8 @@
builders:
- - shell: !include-raw-escape: vm-bm-clean-up.sh
+ - clean-up-bash:
+ cleanFileName: 'vm-bm-clean-up.sh'
- job-template:
name: test-station-log-cleanup-BM
@@ -123,7 +147,8 @@
builders:
- - shell: !include-raw-escape: vm-bm-clean-up.sh
+ - clean-up-bash:
+ cleanFileName: 'vm-bm-clean-up.sh'
- job-template:
name: test-station-log-cleanup-CHO
@@ -154,7 +179,8 @@
builders:
- - shell: !include-raw-escape: cho-clean-up.sh
+ - clean-up-bash:
+ cleanFileName: 'cho-clean-up.sh'
# haven't done this yet.
- job-template:
@@ -183,10 +209,6 @@
# triggers:
# - timed: '@daily'
- builders:
-
- - shell: !include-raw-escape: cho-clean-up.sh
-
- job-template:
name: delta-nightly
@@ -279,3 +301,13 @@
<<: *test-free-init-procedure-plate
jobs:
- 'delta-nightly'
+
+#- project:
+# name: cho-tests
+# project-name: cho-tests
+#
+# <<: *test-free-init-procedure-plate
+# jobs:
+# - 'init-CHO'
+# - 'running-CHO'
+# - 'post-CHO-master'