[java-parent-project] branch main updated: Add hook for SSH username.
Scott Cantor
cantor.2 at osu.edu
Wed Mar 13 00:24:51 UTC 2024
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-parent-project.
View the commit online:
http://git.shibboleth.net/view/?p=java-parent-project.git;a=commit;h=e80a06175d8cbe4a3bcadb8b2a936db565fb412f
The following commit(s) were added to refs/heads/main by this push:
new e80a061 Add hook for SSH username.
e80a061 is described below
commit e80a06175d8cbe4a3bcadb8b2a936db565fb412f
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Mar 12 20:24:47 2024 -0400
Add hook for SSH username.
---
bin/build-and-deploy-javadoc.sh | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/bin/build-and-deploy-javadoc.sh b/bin/build-and-deploy-javadoc.sh
index 6cf7aca..c63a13e 100755
--- a/bin/build-and-deploy-javadoc.sh
+++ b/bin/build-and-deploy-javadoc.sh
@@ -20,6 +20,11 @@ if [ ! -v REPO ] ; then
exit -1
fi
+if [ ! -v USERNAME ] ; then
+ USERNAME=$USER
+ echo "USERNAME not set, assuming $USER"
+fi
+
if [ ! -f pom.xml ] ; then
echo "No pom.xml found in CWD."
exit -1
@@ -58,5 +63,5 @@ if [ "no" == $(ask_yes_or_no "Unpack aggregate on server?") ] ; then
exit 0
fi
-ssh shibboleth.net curl -s "http://127.0.0.1/cgi-bin/deploy-release-javadoc.cgi/$GROUP/$ARTIFACT?project=$PROJ"
+ssh $USERNAME at shibboleth.net curl -s "http://127.0.0.1/cgi-bin/deploy-release-javadoc.cgi/$GROUP/$ARTIFACT?project=$PROJ"
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list