From bcf871c96e3e5eff4389d568f9557391cc4c983f Mon Sep 17 00:00:00 2001 From: Alejandro Brugarolas Date: Thu, 19 Sep 2024 12:41:28 +0200 Subject: [PATCH 1/8] first script version Signed-off-by: Alejandro Brugarolas --- .gitignore | 97 ++++++++++++++++ popultate-konveyor.sh | 262 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 359 insertions(+) create mode 100644 .gitignore create mode 100644 popultate-konveyor.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..b264c526 --- /dev/null +++ b/.gitignore @@ -0,0 +1,97 @@ +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +.idea/**/aws.xml + +.idea/**/contentModel.xml + +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +.idea/**/gradle.xml +.idea/**/libraries + + +cmake-build-*/ + +.idea/**/mongoSettings.xml + +*.iws + +out/ + +.idea_modules/ + +atlassian-ide-plugin.xml + +.idea/replstate.xml + +.idea/sonarlint/ + +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +.idea/httpRequests + +.idea/caches/build_file_checksums.ser + + + +.idea/**/sonarlint/ + +.idea/**/sonarIssues.xml + +.idea/**/markdown-navigator.xml +.idea/**/markdown-navigator-enh.xml +.idea/**/markdown-navigator/ + +.idea/$CACHE_FILE$ + +.idea/codestream.xml + +.idea/**/azureSettings.xml + +*~ + +.fuse_hidden* + +.directory + +.Trash-* + +.nfs* + +.DS_Store +.AppleDouble +.LSOverride + +Icon + + +._* + +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +*.icloud \ No newline at end of file diff --git a/popultate-konveyor.sh b/popultate-konveyor.sh new file mode 100644 index 00000000..6a159cb0 --- /dev/null +++ b/popultate-konveyor.sh @@ -0,0 +1,262 @@ +#!/bin/bash + +baseName="Test" +count=10 + +declare -A app1=( + [name]="Tackle-testapp public" + [url]="https://github.com/konveyor/tackle-testapp-public.git" + [oldBranch]="feature/test-java9-removed-packagek" + [newBranch]="main" + [target]="cloud-readiness" +) + +declare -A app2=( + [name]="Day Trader" + [url]="https://github.com/WASdev/sample.daytrader7.git" + [oldBranch]="session" + [newBranch]="master" + [targets]="quarkus" +) + +apps=("app1" "app2") +declare -A createdApps + +pid=$$ +self=$(basename $0) +tmp=/tmp/${self}-${pid} + +usage() { + echo "Usage: ${self} " + echo "Auth has to be disabled in order to execute this script" + echo "-h help" + echo "Required:" + echo " -u /hub" + echo "Options:" + echo " -b base name (Test)" + echo " -n count (10)" + echo " -o output" +} + +while getopts "u:b:n:o:h" arg; do + case $arg in + u) + host=$OPTARG + ;; + b) + baseName=$OPTARG + ;; + n) + count=$OPTARG + ;; + o) + output=$OPTARG + ;; + h) + usage + exit 1 + ;; + esac +done + +if [ -z "${host}" ]; then + echo "-u required." + usage + exit 0 +fi + +print() { + if [ -n "${output}" ]; then + echo -e "$@" >>${output} + else + echo -e "$@" + fi +} + +echo +echo "Host: ${host}" +echo "Name: ${baseName}" +echo "Count: ${count}" +echo +answer="y" +read -p "Continue[Y,n]: " answer +if [ "$answer" != "y" ]; then + exit 0 +fi + +createAnalysis() { + appId=$1 + appName=$2 + appTarget=$3 + d=" +{ + \"name\": \"taskgroup.analyzer\", + \"kind\": \"analyzer\", + \"state\": \"Created\", + \"priority\": 10, + \"data\": { + \"tagger\": { + \"enabled\": true + }, + \"mode\": { + \"binary\": false, + \"withDeps\": true + }, + \"rules\": { + \"labels\": { + \"included\": [ + \"konveyor.io/target=${appTarget}\" + ] + } + } + }, + \"tasks\": [ + { + \"name\": \"${appName}.${appId}.windup\", + \"application\": { + \"id\": ${appId}, + \"name\": \"${appName}\" + } + } + ] +}" + + # Create taskgroup + code=$(curl -kSs -o ${tmp} -w "%{http_code}" -X POST ${host}/taskgroups -H 'Content-Type:application/json' -H 'Accept: application/json' -d "${d}") + if [ ! $? -eq 0 ]; then + exit $? + fi + case ${code} in + 201) + taskGroupId=$(jq .id ${tmp}) + print "TaskGroup ${taskGroupId} CREATED Taskgroup for application: ${appName} id=${appId}" + ;; + *) + print "Create task for: appId=${appId} - FAILED: ${code}." + cat ${tmp}c + exit 1 + ;; + esac + + # Start analysis + code=$(curl -kSs -o ${tmp} -w "%{http_code}" -X PUT ${host}/taskgroups/${taskGroupId}/submit -H 'Content-Type:application/json' -d "${d}") + if [ ! $? -eq 0 ]; then + exit $? + fi + case ${code} in + 204) + id=$(jq .id ${tmp}) + print "Analysis ${id} STARTED for application: ${appName} id=${appId}" + #updateBranch ${appId} ${appName} "https://github.com/konveyor/tackle-testapp-public.git" "main" + ;; + *) + print "Start analysis for: appId=${appId} - FAILED: ${code}." + cat ${tmp} + exit 1 + ;; + esac +} + +updateBranch() { + appId=$1 + appName=$2 + repositoryUrl=$3 + newBranch=$4 + d=" +--- +name: ${appName} +description: ${appName} Test application. +repository: + kind: git + branch: ${newBranch} + url: ${repositoryUrl} +tags: +" + code=$(curl -kSs -o ${tmp} -w "%{http_code}" -X PUT ${host}/applications/${appId} -H 'Content-Type:application/x-yaml' -d "${d}") + if [ ! $? -eq 0 ]; then + exit $? + fi + case ${code} in + 204) + print "Application ${appName} id=${appId} - UPDATED" + ;; + *) + print "Update application ${appName} - FAILED: ${code}." + cat ${tmp} + exit 1 + ;; + esac +} + +waitForAnalyses() { + while true; do + code=$(curl -kSs -o ${tmp} -w "%{http_code}" ${host}/tasks/report/queue) + total=$(jq .total ${tmp}) + + if [ "$total" -eq 0 ]; then + echo "All analyses are finished" + break + fi + + echo "Some analyses are still running, waiting 30 secs..." + sleep 30 + done +} + +createApplications() { + for i in $(seq 1 ${count}); do + + randomApp=${apps[$RANDOM % ${#apps[@]}]} + + appName="$(eval echo \${${randomApp}[name]})-$i" + appUrl=$(eval echo \${${randomApp}[url]}) + appBranch=$(eval echo \${${randomApp}[oldBranch]}) + appTarget=$(eval echo \${${randomApp}[target]}) + + d=" +--- +name: ${appName} +description: ${appName} Test application. +repository: + kind: git + branch: ${appBranch} + url: ${appUrl} +tags: +- id: 16 +" + code=$(curl -kSs -o ${tmp} -w "%{http_code}" -X POST ${host}/applications -H 'Content-Type:application/x-yaml' -d "${d}") + if [ ! $? -eq 0 ]; then + exit $? + fi + case ${code} in + 201) + id=$(jq .id ${tmp}) + print "Application ${appName} id=${id} - CREATED" + + createdApps["${id}"]="${randomApp}" + + createAnalysis ${id} "${appName}" "${appTarget}" + ;; + *) + print "Create application ${appName} - FAILED: ${code}." + cat ${tmp} + exit 1 + ;; + esac + done + + waitForAnalyses + + for appId in "${!createdApps[@]}"; do + appKey="${createdApps[$appId]}" + + appName=$(eval echo \${${appKey}[name]}) + appUrl=$(eval echo \${${appKey}[url]}) + appTarget=$(eval echo \${${appKey}[target]}) + appNewBranch=$(eval echo \${${appKey}[newBranch]}) + + updateBranch $appId "${appName}" "${appUrl}" "${appNewBranch}" + done +} + +createApplications From 9a7914a9739d489726cea9b62e8b9923ac8eb072 Mon Sep 17 00:00:00 2001 From: Alejandro Brugarolas Date: Thu, 19 Sep 2024 12:41:44 +0200 Subject: [PATCH 2/8] minor Signed-off-by: Alejandro Brugarolas --- .idea/.gitignore | 8 ++++++++ .idea/kai-ci.iml | 9 +++++++++ .idea/material_theme_project_new.xml | 13 +++++++++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ 5 files changed, 44 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/kai-ci.iml create mode 100644 .idea/material_theme_project_new.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 00000000..13566b81 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/kai-ci.iml b/.idea/kai-ci.iml new file mode 100644 index 00000000..5e764c4f --- /dev/null +++ b/.idea/kai-ci.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/material_theme_project_new.xml b/.idea/material_theme_project_new.xml new file mode 100644 index 00000000..c5722639 --- /dev/null +++ b/.idea/material_theme_project_new.xml @@ -0,0 +1,13 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 00000000..ae24a4c8 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..35eb1ddf --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file From d4b001fb7c533912ad0b5dcce1ab5f406771b660 Mon Sep 17 00:00:00 2001 From: Alejandro Brugarolas Date: Fri, 20 Sep 2024 10:04:28 +0200 Subject: [PATCH 3/8] first full working version Signed-off-by: Alejandro Brugarolas --- popultate-konveyor.sh | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/popultate-konveyor.sh b/popultate-konveyor.sh index 6a159cb0..eaa4f159 100644 --- a/popultate-konveyor.sh +++ b/popultate-konveyor.sh @@ -5,9 +5,9 @@ count=10 declare -A app1=( [name]="Tackle-testapp public" - [url]="https://github.com/konveyor/tackle-testapp-public.git" - [oldBranch]="feature/test-java9-removed-packagek" - [newBranch]="main" + [url]="https://github.com/abrugaro/tackle-testapp-public" + [oldBranch]="main" + [newBranch]="hardcode-ip-fix" [target]="cloud-readiness" ) @@ -16,7 +16,7 @@ declare -A app2=( [url]="https://github.com/WASdev/sample.daytrader7.git" [oldBranch]="session" [newBranch]="master" - [targets]="quarkus" + [target]="quarkus" ) apps=("app1" "app2") @@ -56,6 +56,10 @@ while getopts "u:b:n:o:h" arg; do usage exit 1 ;; + *) + usage + exit 1 + ;; esac done @@ -133,7 +137,7 @@ createAnalysis() { ;; *) print "Create task for: appId=${appId} - FAILED: ${code}." - cat ${tmp}c + cat ${tmp} exit 1 ;; esac @@ -235,7 +239,7 @@ tags: createdApps["${id}"]="${randomApp}" - createAnalysis ${id} "${appName}" "${appTarget}" + createAnalysis "$id" "$appName" "$appTarget" ;; *) print "Create application ${appName} - FAILED: ${code}." @@ -255,8 +259,13 @@ tags: appTarget=$(eval echo \${${appKey}[target]}) appNewBranch=$(eval echo \${${appKey}[newBranch]}) - updateBranch $appId "${appName}" "${appUrl}" "${appNewBranch}" + updateBranch "$appId" "${appName}-${appId}" "${appUrl}" "${appNewBranch}" + + createAnalysis "$appId" "${appName}-${appId}" "${appTarget}" done + + waitForAnalyses + } createApplications From 83bf5f8ac2ab6a56d3fa461fb6b1aa6c375c8f93 Mon Sep 17 00:00:00 2001 From: Alejandro Brugarolas Date: Fri, 20 Sep 2024 14:00:39 +0200 Subject: [PATCH 4/8] finished Signed-off-by: Alejandro Brugarolas --- popultate-konveyor.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/popultate-konveyor.sh b/popultate-konveyor.sh index eaa4f159..660c70fd 100644 --- a/popultate-konveyor.sh +++ b/popultate-konveyor.sh @@ -13,10 +13,10 @@ declare -A app1=( declare -A app2=( [name]="Day Trader" - [url]="https://github.com/WASdev/sample.daytrader7.git" - [oldBranch]="session" - [newBranch]="master" - [target]="quarkus" + [url]="https://github.com/abrugaro/sample.daytrader7.git" + [oldBranch]="master" + [newBranch]="fixes" + [target]="cloud-readiness" ) apps=("app1" "app2") @@ -125,7 +125,7 @@ createAnalysis() { ] }" - # Create taskgroup + # Create TaskGroup code=$(curl -kSs -o ${tmp} -w "%{http_code}" -X POST ${host}/taskgroups -H 'Content-Type:application/json' -H 'Accept: application/json' -d "${d}") if [ ! $? -eq 0 ]; then exit $? @@ -151,7 +151,6 @@ createAnalysis() { 204) id=$(jq .id ${tmp}) print "Analysis ${id} STARTED for application: ${appName} id=${appId}" - #updateBranch ${appId} ${appName} "https://github.com/konveyor/tackle-testapp-public.git" "main" ;; *) print "Start analysis for: appId=${appId} - FAILED: ${code}." From fde58e4127c8c3982ee165fe0f8cd868185b8847 Mon Sep 17 00:00:00 2001 From: Alejandro Brugarolas Date: Mon, 23 Sep 2024 13:19:59 +0200 Subject: [PATCH 5/8] cleanup Signed-off-by: Alejandro Brugarolas --- popultate-konveyor.sh | 110 ++++++++++++++++++++++-------------------- 1 file changed, 57 insertions(+), 53 deletions(-) diff --git a/popultate-konveyor.sh b/popultate-konveyor.sh index 660c70fd..97aa893d 100644 --- a/popultate-konveyor.sh +++ b/popultate-konveyor.sh @@ -70,8 +70,8 @@ if [ -z "${host}" ]; then fi print() { - if [ -n "${output}" ]; then - echo -e "$@" >>${output} + if [ -n "$output" ]; then + echo -e "$@" >>"$output" else echo -e "$@" fi @@ -83,7 +83,7 @@ echo "Name: ${baseName}" echo "Count: ${count}" echo answer="y" -read -p "Continue[Y,n]: " answer +read -rp "Continue[Y,n]: " answer if [ "$answer" != "y" ]; then exit 0 fi @@ -126,35 +126,37 @@ createAnalysis() { }" # Create TaskGroup - code=$(curl -kSs -o ${tmp} -w "%{http_code}" -X POST ${host}/taskgroups -H 'Content-Type:application/json' -H 'Accept: application/json' -d "${d}") - if [ ! $? -eq 0 ]; then - exit $? + code=$(curl -kSs -o "$tmp" -w "%{http_code}" -X POST "${host}/taskgroups" -H 'Content-Type:application/json' -H 'Accept: application/json' -d "$d") + ret=$? + if [ ! $ret -eq 0 ]; then + exit $ret fi case ${code} in 201) - taskGroupId=$(jq .id ${tmp}) - print "TaskGroup ${taskGroupId} CREATED Taskgroup for application: ${appName} id=${appId}" + taskGroupId=$(jq .id "$tmp") + print "TaskGroup $taskGroupId CREATED Taskgroup for application: $appName id=${appId}" ;; *) - print "Create task for: appId=${appId} - FAILED: ${code}." - cat ${tmp} + print "Create task for: appId=${appId} - FAILED: $code." + cat "$tmp" exit 1 ;; esac # Start analysis - code=$(curl -kSs -o ${tmp} -w "%{http_code}" -X PUT ${host}/taskgroups/${taskGroupId}/submit -H 'Content-Type:application/json' -d "${d}") - if [ ! $? -eq 0 ]; then - exit $? + code=$(curl -kSs -o "$tmp" -w "%{http_code}" -X PUT "${host}/taskgroups/${taskGroupId}/submit" -H 'Content-Type:application/json' -d "$d") + ret=$? + if [ ! $ret -eq 0 ]; then + exit $ret fi case ${code} in 204) - id=$(jq .id ${tmp}) - print "Analysis ${id} STARTED for application: ${appName} id=${appId}" + id=$(jq .id "$tmp") + print "Analysis $id STARTED for application: $appName id=${appId}" ;; *) - print "Start analysis for: appId=${appId} - FAILED: ${code}." - cat ${tmp} + print "Start analysis for: appId=${appId} - FAILED: $code." + cat "$tmp" exit 1 ;; esac @@ -167,25 +169,26 @@ updateBranch() { newBranch=$4 d=" --- -name: ${appName} -description: ${appName} Test application. +name: $appName +description: $appName Test application. repository: kind: git - branch: ${newBranch} - url: ${repositoryUrl} + branch: $newBranch + url: $repositoryUrl tags: " - code=$(curl -kSs -o ${tmp} -w "%{http_code}" -X PUT ${host}/applications/${appId} -H 'Content-Type:application/x-yaml' -d "${d}") - if [ ! $? -eq 0 ]; then - exit $? + code=$(curl -kSs -o "$tmp" -w "%{http_code}" -X PUT "${host}/applications/${appId}" -H 'Content-Type:application/x-yaml' -d "$d") + ret=$? + if [ ! $ret -eq 0 ]; then + exit $ret fi - case ${code} in + case $code in 204) - print "Application ${appName} id=${appId} - UPDATED" + print "Application $appName id=${appId} - UPDATED" ;; *) - print "Update application ${appName} - FAILED: ${code}." - cat ${tmp} + print "Update application $appName - FAILED: $code." + cat "$tmp" exit 1 ;; esac @@ -193,8 +196,8 @@ tags: waitForAnalyses() { while true; do - code=$(curl -kSs -o ${tmp} -w "%{http_code}" ${host}/tasks/report/queue) - total=$(jq .total ${tmp}) + code=$(curl -kSs -o "$tmp" -w "%{http_code}" "${host}/tasks/report/queue") + total=$(jq .total "$tmp") if [ "$total" -eq 0 ]; then echo "All analyses are finished" @@ -207,42 +210,43 @@ waitForAnalyses() { } createApplications() { - for i in $(seq 1 ${count}); do + for i in $(seq 1 "$count"); do randomApp=${apps[$RANDOM % ${#apps[@]}]} - appName="$(eval echo \${${randomApp}[name]})-$i" - appUrl=$(eval echo \${${randomApp}[url]}) - appBranch=$(eval echo \${${randomApp}[oldBranch]}) - appTarget=$(eval echo \${${randomApp}[target]}) + appName="$(eval echo \${"${randomApp}"[name]})-$i" + appUrl=$(eval echo \${"${randomApp}"[url]}) + appBranch=$(eval echo \${"${randomApp}"[oldBranch]}) + appTarget=$(eval echo \${"${randomApp}"[target]}) d=" --- -name: ${appName} -description: ${appName} Test application. +name: $appName +description: $appName Test application. repository: kind: git - branch: ${appBranch} - url: ${appUrl} + branch: $appBranch + url: $appUrl tags: - id: 16 " - code=$(curl -kSs -o ${tmp} -w "%{http_code}" -X POST ${host}/applications -H 'Content-Type:application/x-yaml' -d "${d}") - if [ ! $? -eq 0 ]; then - exit $? + code=$(curl -kSs -o "$tmp" -w "%{http_code}" -X POST "${host}"/applications -H 'Content-Type:application/x-yaml' -d "$d") + ret=$? + if [ ! $ret -eq 0 ]; then + exit $ret fi - case ${code} in + case $code in 201) - id=$(jq .id ${tmp}) - print "Application ${appName} id=${id} - CREATED" + id=$(jq .id "$tmp") + print "Application $appName id=${id} - CREATED" createdApps["${id}"]="${randomApp}" createAnalysis "$id" "$appName" "$appTarget" ;; *) - print "Create application ${appName} - FAILED: ${code}." - cat ${tmp} + print "Create application $appName - FAILED: $code." + cat "$tmp" exit 1 ;; esac @@ -253,14 +257,14 @@ tags: for appId in "${!createdApps[@]}"; do appKey="${createdApps[$appId]}" - appName=$(eval echo \${${appKey}[name]}) - appUrl=$(eval echo \${${appKey}[url]}) - appTarget=$(eval echo \${${appKey}[target]}) - appNewBranch=$(eval echo \${${appKey}[newBranch]}) + appName=$(eval echo \${"${appKey}"[name]}) + appUrl=$(eval echo \${"${appKey}"[url]}) + appTarget=$(eval echo \${"${appKey}"[target]}) + appNewBranch=$(eval echo \${"${appKey}"[newBranch]}) - updateBranch "$appId" "${appName}-${appId}" "${appUrl}" "${appNewBranch}" + updateBranch "$appId" "${appName}-${appId}" "$appUrl" "$appNewBranch" - createAnalysis "$appId" "${appName}-${appId}" "${appTarget}" + createAnalysis "$appId" "${appName}-${appId}" "$appTarget" done waitForAnalyses From 8ee6811a5cfd4344f37507ee2a60a7604f0ed5b1 Mon Sep 17 00:00:00 2001 From: Alejandro Brugarolas Date: Wed, 25 Sep 2024 12:04:02 +0200 Subject: [PATCH 6/8] fix typo Signed-off-by: Alejandro Brugarolas --- popultate-konveyor.sh => populate-konveyor.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename popultate-konveyor.sh => populate-konveyor.sh (100%) diff --git a/popultate-konveyor.sh b/populate-konveyor.sh similarity index 100% rename from popultate-konveyor.sh rename to populate-konveyor.sh From 4015409fc518be312c86ef6fb4a546017fbf1079 Mon Sep 17 00:00:00 2001 From: Alejandro Brugarolas Date: Thu, 26 Sep 2024 17:10:58 +0200 Subject: [PATCH 7/8] add new app Signed-off-by: Alejandro Brugarolas --- populate-konveyor.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/populate-konveyor.sh b/populate-konveyor.sh index 97aa893d..6a1f722d 100644 --- a/populate-konveyor.sh +++ b/populate-konveyor.sh @@ -19,7 +19,15 @@ declare -A app2=( [target]="cloud-readiness" ) -apps=("app1" "app2") +declare -A app3=( + [name]="Ticket Monster" + [url]="https://github.com/jmle/monolith.git" + [oldBranch]="master" + [newBranch]="quarkus" + [target]="quarkus" +) + +apps=("app1" "app2" "app3") declare -A createdApps pid=$$ From d9561f572ab784f09c07e0d8addae7f45421e16f Mon Sep 17 00:00:00 2001 From: Alejandro Brugarolas Date: Fri, 27 Sep 2024 10:30:14 +0200 Subject: [PATCH 8/8] add hello-world app Signed-off-by: Alejandro Brugarolas --- populate-konveyor.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/populate-konveyor.sh b/populate-konveyor.sh index 6a1f722d..1326d4ca 100644 --- a/populate-konveyor.sh +++ b/populate-konveyor.sh @@ -27,7 +27,15 @@ declare -A app3=( [target]="quarkus" ) -apps=("app1" "app2" "app3") +declare -A app4=( + [name]="Hello world" + [url]="https://github.com/savitharaghunathan/helloworld-mdb.git" + [oldBranch]="main" + [newBranch]="quarkus" + [target]="quarkus" +) + +apps=("app1" "app2" "app3" "app4") declare -A createdApps pid=$$