Index: Leahi/Jira/Jira_Create_Story.sh =================================================================== diff -u -r968c892bbd1eb259b789b175fbc9036e10db8758 -rcdf92e4d93c7e74702583b46fff901b51f441a95 --- Leahi/Jira/Jira_Create_Story.sh (.../Jira_Create_Story.sh) (revision 968c892bbd1eb259b789b175fbc9036e10db8758) +++ Leahi/Jira/Jira_Create_Story.sh (.../Jira_Create_Story.sh) (revision cdf92e4d93c7e74702583b46fff901b51f441a95) @@ -49,7 +49,6 @@ "11: BLD - Develop Build - version & release notes" "12: SCR - Code Review" "13: BLD - Staging Build - version & release notes" - "14: SUT - Software Unit Tests - Qt Test" ) SW_SUBTASK_LIST_QnR=( "14: SUT - Software Unit Tests - Qt Test" @@ -330,7 +329,7 @@ -u "$JIRA_USER:$JIRA_API_TOKEN" \ -H "Content-Type: application/json" \ "$JIRA_BASE_URL/rest/api/3/user/search?query=$1" \ - | jq -r '.[0] | "\(.accountId) - \(.emailAddress) - \(.displayName) - \(.active)"' + | jq -r '.[] | "\(.accountId) - \(.emailAddress) - \(.displayName) - \(.active)"' )" local RESULT=$? @@ -345,7 +344,7 @@ -u "$JIRA_USER:$JIRA_API_TOKEN" \ -H "Content-Type: application/json" \ "$JIRA_BASE_URL/rest/api/3/user/search?query=$1" \ - | jq -r '.[0] | "\(.accountId)"' + | jq -r '.[] | "\(.accountId)"' )" local RESULT=$? Index: Leahi/Jira/LDT-82 - AMG - Integration,UnitTests,DialIn.sh =================================================================== diff -u --- Leahi/Jira/LDT-82 - AMG - Integration,UnitTests,DialIn.sh (revision 0) +++ Leahi/Jira/LDT-82 - AMG - Integration,UnitTests,DialIn.sh (revision cdf92e4d93c7e74702583b46fff901b51f441a95) @@ -0,0 +1,56 @@ +#!/bin/bash + +PROJECT="LDT" +EPIC_NUMBER="82" + +EPIC="$PROJECT"-"$EPIC_NUMBER" +echo "Creating stories for $EPIC" + +SUMMARY="" +DESCRIPTION="" + +Behrouz="5d6f09ceab129d0c306d9ddb" +Sean="612ea6656fa73c006a74b38a" +Dara="63bdca0294d18cbf67728f0c" +Michael="612ea6656b6661006902b6a6" +Tiffany="60e7528f84c99200718a2beb" +Sarina="5f84db2c57ca8c0076426fbb" +Vinay="712020:786e2eb8-3cdd-4975-aa18-c3f40b0d6871" +Jonny="712020:af6bd98b-1897-4870-aaf6-fd6169805d9e" +Daniel="712020:1cd45b7c-2a8a-4635-beb4-fe4680cd2c44" + +# in the UI project, all the stories are assigned to Behrouz +# since the UI project is not using the same group as the other projects, we need to assign all the stories to Behrouz +# and then assign the stories to the other users +if [ "$PROJECT" = "UI" ]; then + Behrouz="5d6f09ceab129d0c306d9ddb" + Sean="$Behrouz" + Dara="$Behrouz" + Michael="$Behrouz" + Tiffany="$Behrouz" + Sarina="$Behrouz" + Vinay="$Behrouz" + Jonny="$Behrouz" + Daniel="$Behrouz" +fi + +# The SW/FW should be first to use the script default summary +# or be defined if needed. + +GROUP="SW" +SUMMARY="Auto Message Generation - Integration" +DESCRIPTION="This story is the separation of th Auto Message Generation story for the generated code integration in the Leahi Project and build the software successfully." +USER="$Dara" +./Jira_Create_Story.sh "$PROJECT" "$EPIC" "$GROUP" "$SUMMARY" "$DESCRIPTION" "$USER" + +GROUP="SW" +SUMMARY="Auto Message Generation - Unit Tests" +DESCRIPTION="This story is the separation of th Auto Message Generation story for generating the Unit Test codes." +USER="$Dara" +./Jira_Create_Story.sh "$PROJECT" "$EPIC" "$GROUP" "$SUMMARY" "$DESCRIPTION" "$USER" + +GROUP="SW" +SUMMARY="Auto Message Generation - DialIn" +DESCRIPTION="This story is the separation of th Auto Message Generation story for generating the DialIn messages API generation." +USER="$Dara" +./Jira_Create_Story.sh "$PROJECT" "$EPIC" "$GROUP" "$SUMMARY" "$DESCRIPTION" "$USER" Index: Leahi/Jira/LDT-82 - MainTreatment - Sprint 5-6.sh =================================================================== diff -u -r968c892bbd1eb259b789b175fbc9036e10db8758 -rcdf92e4d93c7e74702583b46fff901b51f441a95 --- Leahi/Jira/LDT-82 - MainTreatment - Sprint 5-6.sh (.../LDT-82 - MainTreatment - Sprint 5-6.sh) (revision 968c892bbd1eb259b789b175fbc9036e10db8758) +++ Leahi/Jira/LDT-82 - MainTreatment - Sprint 5-6.sh (.../LDT-82 - MainTreatment - Sprint 5-6.sh) (revision cdf92e4d93c7e74702583b46fff901b51f441a95) @@ -36,6 +36,7 @@ # The SW/FW should be first to use the script default summary # or be defined if needed. + GROUP="SW" SUMMARY="Components & Broadcasts" DESCRIPTION="This story is the the actual epic implementation on the Main Treatment Screen for Components and Broadcasts." Index: Leahi/Jira/LDT-952 - Device Settings - Ready Device for Testing - SW only.sh =================================================================== diff -u --- Leahi/Jira/LDT-952 - Device Settings - Ready Device for Testing - SW only.sh (revision 0) +++ Leahi/Jira/LDT-952 - Device Settings - Ready Device for Testing - SW only.sh (revision cdf92e4d93c7e74702583b46fff901b51f441a95) @@ -0,0 +1,83 @@ +#!/bin/bash + +PROJECT="LDT" +EPIC_NUMBER="952" + +EPIC="$PROJECT"-"$EPIC_NUMBER" +echo "Creating stories for $EPIC" + +SUMMARY="" +DESCRIPTION="" + +Behrouz="5d6f09ceab129d0c306d9ddb" +Sean="612ea6656fa73c006a74b38a" +Dara="63bdca0294d18cbf67728f0c" +Michael="612ea6656b6661006902b6a6" +Tiffany="60e7528f84c99200718a2beb" +Sarina="5f84db2c57ca8c0076426fbb" +Vinay="712020:786e2eb8-3cdd-4975-aa18-c3f40b0d6871" +Jonny="712020:af6bd98b-1897-4870-aaf6-fd6169805d9e" +Daniel="712020:1cd45b7c-2a8a-4635-beb4-fe4680cd2c44" +Nico="712020:f7c17740-8464-4767-97c8-2b822cae8e8d" + +# in the UI project, all the stories are assigned to Behrouz. +# since the UI project is not using the same group as the other projects, we need to assign all the stories to Behrouz. +# and then assign the stories to the other users +if [ "$PROJECT" = "UI" ]; then + Behrouz="5d6f09ceab129d0c306d9ddb" + Sean="$Behrouz" + Dara="$Behrouz" + Michael="$Behrouz" + Tiffany="$Behrouz" + Sarina="$Behrouz" + Vinay="$Behrouz" + Jonny="$Behrouz" + Daniel="$Behrouz" + Nico="$Behrouz" +fi + +# The SW/FW should be first to use the script default summary +# or be defined if needed. + +GROUP="SW" +SUMMARY="Wifi" +DESCRIPTION="Implementation of the Device Wifi connection.\nThis feature is also necessary for testing, debugging, and Device bring-up." +USER="$Nico" +./Jira_Create_Story.sh "$PROJECT" "$EPIC" "$GROUP" "$SUMMARY" "$DESCRIPTION" "$USER" + +GROUP="SW" +SUMMARY="Export Log" +DESCRIPTION="Implementation of the Export Logs to USB drive.\nThis feature is also necessary for testing, debugging, and Device bring-up." +USER="$Behrouz" +./Jira_Create_Story.sh "$PROJECT" "$EPIC" "$GROUP" "$SUMMARY" "$DESCRIPTION" "$USER" + +GROUP="SW" +SUMMARY="Information - Version" +DESCRIPTION="Implementation of the Device Information including only Version column.\nThis feature is also necessary for testing, debugging, and Device bring-up." +USER="$Tiffany" +./Jira_Create_Story.sh "$PROJECT" "$EPIC" "$GROUP" "$SUMMARY" "$DESCRIPTION" "$USER" + +GROUP="SW" +SUMMARY="Information - Service" +DESCRIPTION="Implementation of the Device Information including only Service column.\nThis feature is also necessary for testing, debugging, and Device bring-up." +USER="$Behrouz" +./Jira_Create_Story.sh "$PROJECT" "$EPIC" "$GROUP" "$SUMMARY" "$DESCRIPTION" "$USER" + +GROUP="SW" +SUMMARY="Information - Treatment" +DESCRIPTION="Implementation of the Device Information including only Treatment column.\nThis feature is also necessary for testing, debugging, and Device bring-up." +USER="$Behrouz" +./Jira_Create_Story.sh "$PROJECT" "$EPIC" "$GROUP" "$SUMMARY" "$DESCRIPTION" "$USER" + +GROUP="SW" +SUMMARY="Alarm Volume" +DESCRIPTION="Implementation of the Alarm Volume.\nThis must be already done as part of the General Alarm implementation, but has different epic that we need to finalize the design and implementation.\nThis feature is also necessary for testing, debugging, and Device bring-up." +USER="$Behrouz" +./Jira_Create_Story.sh "$PROJECT" "$EPIC" "$GROUP" "$SUMMARY" "$DESCRIPTION" "$USER" + +GROUP="SW" +SUMMARY="Brightness" +DESCRIPTION="ON-HOLD for 15\" LVDS touchscreen\nImplementation of the Screen Brightness was done with the 10inch LVDS touchscreen.\nThis feature is also necessary for testing, debugging, and Device bring-up." +USER="$Tiffany" +./Jira_Create_Story.sh "$PROJECT" "$EPIC" "$GROUP" "$SUMMARY" "$DESCRIPTION" "$USER" + Index: Leahi/scripts/createWorkspace.sh =================================================================== diff -u -rf55de0d11a2115300d32f798a8152253cdadfa43 -rcdf92e4d93c7e74702583b46fff901b51f441a95 --- Leahi/scripts/createWorkspace.sh (.../createWorkspace.sh) (revision f55de0d11a2115300d32f798a8152253cdadfa43) +++ Leahi/scripts/createWorkspace.sh (.../createWorkspace.sh) (revision cdf92e4d93c7e74702583b46fff901b51f441a95) @@ -13,7 +13,10 @@ ERROR_WORKSPACE_REJECTED=2 ERROR_WORKSPACE_MD=3 ERROR_WORKSPACE_CD=4 +ERROR_REPOSITORY_CLONE=5 +DEFAULT_BRANCH="staging" + OK=N toUpper() { @@ -46,11 +49,20 @@ REPO=$1 FLDR=$2 - echo "<<<<< clonning $REPO in $PWD/$FLDR started" + echo "<<<<< cloning $REPO in $PWD/$FLDR started" git clone git@bitbucket.org:diality-cloud/$REPO.git $FLDR - echo ">>>>> clonning $REPO in $PWD/$FLDR done" + if (( $? )); then echo "ERROR_REPOSITORY_CLONE"; exit $ERROR_REPOSITORY_CLONE; fi + echo ">>>>> cloning $REPO in $PWD/$FLDR done" echo + echo "<<<<< checking out to $DEFAULT_BRANCH" + pushd "$FLDR" + git checkout $DEFAULT_BRANCH + popd + echo ">>>>> checking out to $DEFAULT_BRANCH done" + echo + + if [[ "$3" == "" ]]; then return; fi LNLOC=$3 LNSRC=$FLDR @@ -95,12 +107,8 @@ mkdir $DIR_TEST cd $DIR_TEST clone leahi-simulator simulator - clone leahi-sw.plugins.sim plugins simulator - # clone leahi-dialin dialin simulator dialin/leahi_dialin - cp $WKS/dialin-setup.sh ./simulator - pushd $DIR_TEST - ./simulator/dialin-setup.sh - popd + clone leahi-sw.plugins.sim plugins + clone leahi-dialin dialin clone leahi-testsuites testsuites clone leahi-unittests unittests cd .. @@ -144,7 +152,7 @@ function confirm() { echo "All the required Leahi repositories will be cloned in the following given folder:" echo $DIR_PRJ - read -p "Are you sure? " -n 1 OK + read -p "Are you sure? (N/y)" -n 1 OK echo "" if [ "$(toUpper $OK)" != "Y" ]; then echo "ERROR_WORKSPACE_REJECTED" Fisheye: Tag cdf92e4d93c7e74702583b46fff901b51f441a95 refers to a dead (removed) revision in file `Leahi/scripts/dialin-setup.sh'. Fisheye: No comparison available. Pass `N' to diff?