From bf9ae182a238adbffc597123ca34d8aedcb634b9 Mon Sep 17 00:00:00 2001 From: Fatih Degirmenci Date: Fri, 18 May 2018 18:40:07 +0200 Subject: [PATCH 1/1] openci: bugfix: Fix var names and event headers Change-Id: I449037e727abed363766ca47a26ea3d2bd6abf4e Signed-off-by: Fatih Degirmenci --- jjb/openci/create-cde.sh | 4 ++-- jjb/openci/create-clme.sh | 4 ++-- jjb/openci/openci-opnfv-daily-jobs.yaml | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/jjb/openci/create-cde.sh b/jjb/openci/create-cde.sh index ac16ab00e..410db50e6 100755 --- a/jjb/openci/create-cde.sh +++ b/jjb/openci/create-cde.sh @@ -19,9 +19,9 @@ cat << EOF > $WORKSPACE/event.properties type=$PUBLISH_EVENT_TYPE origin=$PUBLISH_EVENT_ORIGIN scenario=$DEPLOY_SCENARIO -eventBody="{ 'type': '$EVENT_TYPE', 'id': '$(uuidgen)', 'time': '$(date -u +%Y-%m-%d_%H:%M:%SUTC)', 'origin': '$EVENT_ORIGIN', 'buildUrl': '$BUILD_URL', 'branch': 'master', 'compositionName': '$DEPLOY_SCENARIO', 'compositionMetadataUrl': '$SCENARIO_METADATA' }" +eventBody="{ 'type': '$PUBLISH_EVENT_TYPE', 'id': '$(uuidgen)', 'time': '$(date -u +%Y-%m-%d_%H:%M:%SUTC)', 'origin': '$PUBLISH_EVENT_ORIGIN', 'buildUrl': '$BUILD_URL', 'branch': 'master', 'compositionName': '$DEPLOY_SCENARIO', 'compositionMetadataUrl': '$SCENARIO_METADATA_LOCATION' }" EOF -echo "Constructed $EVENT_TYPE" +echo "Constructed $PUBLISH_EVENT_TYPE" echo "--------------------------------------------" cat $WORKSPACE/event.properties echo "--------------------------------------------" diff --git a/jjb/openci/create-clme.sh b/jjb/openci/create-clme.sh index 85dd06d54..5e8ee10c9 100755 --- a/jjb/openci/create-clme.sh +++ b/jjb/openci/create-clme.sh @@ -19,9 +19,9 @@ cat << EOF > $WORKSPACE/event.properties type=$PUBLISH_EVENT_TYPE origin=$PUBLISH_EVENT_ORIGIN scenario=$DEPLOY_SCENARIO -eventBody="{ 'type': '$EVENT_TYPE', 'id': '$(uuidgen)', 'time': '$(date -u +%Y-%m-%d_%H:%M:%SUTC)', 'origin': '$EVENT_ORIGIN', 'buildUrl': '$BUILD_URL', 'branch': 'master', 'compositionName': '$DEPLOY_SCENARIO', 'compositionMetadataUrl': '$SCENARIO_METADATA', 'confidenceLevel': { $CONFIDENCE_LEVEL } }" +eventBody="{ 'type': '$PUBLISH_EVENT_TYPE', 'id': '$(uuidgen)', 'time': '$(date -u +%Y-%m-%d_%H:%M:%SUTC)', 'origin': '$PUBLISH_EVENT_ORIGIN', 'buildUrl': '$BUILD_URL', 'branch': 'master', 'compositionName': '$DEPLOY_SCENARIO', 'compositionMetadataUrl': '$SCENARIO_METADATA_LOCATION', 'confidenceLevel': { $CONFIDENCE_LEVEL } }" EOF -echo "Constructed $EVENT_TYPE" +echo "Constructed $PUBLISH_EVENT_TYPE" echo "--------------------------------------------" cat $WORKSPACE/event.properties echo "--------------------------------------------" diff --git a/jjb/openci/openci-opnfv-daily-jobs.yaml b/jjb/openci/openci-opnfv-daily-jobs.yaml index e896149cd..cb150148b 100644 --- a/jjb/openci/openci-opnfv-daily-jobs.yaml +++ b/jjb/openci/openci-opnfv-daily-jobs.yaml @@ -77,6 +77,7 @@ msg-props: | type=$type origin=$origin + scenario=$scenario msg-content: $eventBody -- 2.16.6