From cc49a731f97fa072196a9609d9e5e880bb2fc06c Mon Sep 17 00:00:00 2001 From: kalyanreddy Date: Wed, 8 Feb 2017 15:54:48 +0530 Subject: KVMFORNFV: Uploading logs to artifacts. This patch includes script updates/corrections to upload the artifacts based on Job type and phase. Change-Id: I817f9a0cc9a2850759743a72f0db7d2c342360f1 Signed-off-by: Gundarapu Kalyan Reddy --- jjb/kvmfornfv/kvmfornfv-upload-artifact.sh | 2 +- jjb/kvmfornfv/kvmfornfv.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/jjb/kvmfornfv/kvmfornfv-upload-artifact.sh b/jjb/kvmfornfv/kvmfornfv-upload-artifact.sh index c6b8005c3..56fb4f9c1 100755 --- a/jjb/kvmfornfv/kvmfornfv-upload-artifact.sh +++ b/jjb/kvmfornfv/kvmfornfv-upload-artifact.sh @@ -21,7 +21,7 @@ case "$JOB_TYPE" in echo "Uploading daily artifacts This could take some time..." OPNFV_ARTIFACT_VERSION=$(date -u +"%Y-%m-%d_%H-%M-%S") GS_UPLOAD_LOCATION="gs://$GS_URL/$OPNFV_ARTIFACT_VERSION" - GS_LOG_LOCATION="gs://$GS_URL/logs-$(date -u +"%Y-%m-%d")/ + GS_LOG_LOCATION="gs://$GS_URL/logs-$(date -u +"%Y-%m-%d")"/ ;; *) echo "Artifact upload is not enabled for $JOB_TYPE jobs" diff --git a/jjb/kvmfornfv/kvmfornfv.yml b/jjb/kvmfornfv/kvmfornfv.yml index 522e9716b..a782ee0fa 100644 --- a/jjb/kvmfornfv/kvmfornfv.yml +++ b/jjb/kvmfornfv/kvmfornfv.yml @@ -131,6 +131,10 @@ - '{slave-label}-defaults' - 'kvmfornfv-defaults': gs-pathname: '{gs-pathname}' + - string: + name: PHASE + default: '{phase}' + description: "Execution of kvmfornfv daily '{phase}' job ." builders: - description-setter: -- cgit 1.2.3-korg