To add the Jenkins builds as custom events in show slow simply add a shell build event to your build job. In the command field add the following bash script.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
URL_PREFIX=http://www.example.com/ | |
RESOURCE_URL=http://www.example.com/ | |
SHOW_SLOW_URL=http://192.168.154.130/showslow_1.2/beacon/events/ | |
wget "$SHOW_SLOW_URL?type=JenkinsJob&url_prefix=$URL_PREFIX&title=${JOB_NAME}_${BUILD_NUMBER}&resource_url=$RESOURCE_URL&start=$(date +'%F %T')&end=$(date +'%F %T')" |
Set the URL_PREFIX variable to your website's scheme and domain. Remember to include a trailing /.
Set the RESOURCE_URL variable to the path of your sub-page
Set the SHOW_SLOW_URL variable to the location of your showslow beacon events page without any parameters
No comments:
Post a Comment