Merge pull request 'Check if the java process is running.' (#20) from andrea.dellamico/docker-jenkins-integration-test:master into master

Reviewed-on: #20
This commit is contained in:
Andrea Dell'Amico 2022-04-02 03:02:18 +02:00
commit 4582a4e786
1 changed files with 10 additions and 2 deletions

View File

@ -38,9 +38,17 @@ if [ -d /home/${USER}/workspace ]; then
fi
fi
ln -sf $workspace_dir /home/${USER}/workspace
echo "Mount the workspace"
su - "$USER" -c "/usr/bin/java -cp .:${workspace_dir}:${workspace_logdir}/ -Dlogback.configurationFile=${workspace_logdir}/logback.xml -jar $workspace_fuse_jar $SHINYPROXY_OIDC_ACCESS_TOKEN $workspace_dir" >/dev/null 2>&1 &
exit $?
_retval=
_fuse_process=$(ps auwwx | grep fuse | grep java)
_retval=$?
if [ $_retval -ne 0 ]; then
echo "The mount of the workspace failed"
exit 1
fi
ln -sf $workspace_dir /home/${USER}/workspace
exit 0