]> git.nbdom.net Git - nb.git/commitdiff
bin/nb-update
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 19 Feb 2019 03:15:36 +0000 (03:15 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 19 Feb 2019 03:15:36 +0000 (03:15 +0000)
bin/nb-update

index b907e7d5116464a3fd039212d4012cc8c077c485..ad5d8295caf4c8c436e2b5ab0f3016394fdd42b1 100755 (executable)
@@ -116,8 +116,13 @@ for repo in $(nb_repos); do
 
        echo
        (
-               nb_api_post_host_info "${NAME}.$repo" "name:$name branch:$branch"
-               nb_api_post_host_info "${NAME}.$repo.git.status.exit_code" "$(git status --short &> /dev/null; echo $?)"
+               nb_api_post_host_info "${NAME}.$name.name" "$name"
+               nb_api_post_host_info "${NAME}.$name.path" "$repo"
+               nb_api_post_host_info "${NAME}.$name.branch" "$branch"
+               nb_api_post_host_info "${NAME}.$name.url" "$(git remote get-url origin)"
+               nb_api_post_host_info "${NAME}.$name.exit_code" "$(git status --short &> /dev/null; echo $?)"
+# NB 19.02.19          nb_api_post_host_info "${NAME}.$repo" "name:$name branch:$branch"
+# NB 19.02.19          nb_api_post_host_info "${NAME}.$repo.git.status.exit_code" "$(git status --short &> /dev/null; echo $?)"
                # NB 06.02.18   key="repo.$name.$branch"
                # NB 06.02.18   nb_api_post_host_info "${key}.path"        "$repo"
                # NB 06.02.18   nb_api_post_host_info "${key}.exit_code"   "$ex"