Hudson Job configuration to invoke REST to JFRManager - nobuhikosekiya/jfrmanager GitHub Wiki

Build Steps

Please replace the bold stirng with your environment.
cat <<EOF > capture.xml
<jfrCaptureRequest>
<selectedServers>
<value>#YOUR Managed Server 1#</value>
<value>#YOUR Managed Server 2#</value>
</selectedServers>
</jfrCaptureRequest>
EOF
export https_proxy=$HTTPS_PROXY_HOST:$HTTPS_PROXY_PORT
export http_proxy=$HTTPS_PROXY_HOST:$HTTPS_PROXY_PORT
wget --no-check-certificate --http-user=#app.username# --http-password=#app.password# --post-file capture.xml --header="Content-Type:application/xml" \
-O jfrLink.html \
https://#YOUR JCS ADMIN SERVER PUBLIC ADDRESS#/jfrmanager/resources/capture
|
- #YOUR Managed Server # ... list the managed server names in <selectedServers> xml tag.
- #app.username# ... The user and password to authenticate to the application. Same value in application.properties file.
- #YOUR JCS ADMIN SERVER PUBLIC ADDRESS# ... The public ip address and port (default 7002) for you JCS admin server.
Post Build

Files to Archive: jfrLink.html