Jenkins Job for downloading monthly download statistics of inspectIT on github
What is it?
The Jenkins Job monthly stores the download statistics of the inspectIT-github project. Corresponding JiraTicket: - INSPECTIT-2002Getting issue details... STATUS
For retrieving the data, the Jenkins Job executes a small Java- program
Current Features
- Monthly creates a text-file with the current download statistics.
Code
- The Code is published on GitHub
Used API's
Dependencies
Description | Link | License | Problem |
---|---|---|---|
JSON data interchange format support in Java | http://www.json.org/java/ | http://json.org/license.html | |
RESTClient library | http://resteasy.jboss.org/ | GitHub- License | |
GitHub REST API | GitHub API v3 | https://help.github.com/articles/github-terms-of-service/#b-api-terms |
After each execution a text file containing the download- URL and the absolute number of downloads, separated by spaces, will be created.
2016-01.txt
RELEASE.1.6.5.70/inspectit-agent-sun1.5.zip 0 RELEASE.1.6.5.70/inspectit-cmr.linux.x64.tar.gz 0 RELEASE.1.6.5.70/inspectit-cmr.linux.x86.tar.gz 0 RELEASE.1.6.5.70/inspectit-cmr.windows.x64.zip 0 RELEASE.1.6.5.70/inspectit-cmr.windows.x86.zip 0 RELEASE.1.6.5.70/inspectit-linux.gtk.x86.zip 1 RELEASE.1.6.5.70/inspectit-linux.gtk.x86_64.zip 1 RELEASE.1.6.5.70/inspectit-macosx.cocoa.x86.zip 0 RELEASE.1.6.5.70/inspectit-macosx.cocoa.x86_64.zip 0 RELEASE.1.6.5.70/inspectit-win32.win32.x86.zip 0 RELEASE.1.6.5.70/inspectit-win32.win32.x86_64.zip 0 RELEASE.1.6.5.70/inspectit.installer-all.linux.x64.jar 0 RELEASE.1.6.5.70/inspectit.installer-all.linux.x86.jar 0 RELEASE.1.6.5.70/inspectit.installer-all.win.x64.jar 0 RELEASE.1.6.5.70/inspectit.installer-all.win.x86.jar 1 RELEASE.1.6.4.69/inspectit-agent-sun1.5.zip 7 RELEASE.1.6.4.69/inspectit-cmr.linux.x64.tar.gz 6 RELEASE.1.6.4.69/inspectit-cmr.linux.x86.tar.gz 2 RELEASE.1.6.4.69/inspectit-cmr.windows.x64.zip 2 RELEASE.1.6.4.69/inspectit-cmr.windows.x86.zip 0 RELEASE.1.6.4.69/inspectit-linux.gtk.x86.zip 0 RELEASE.1.6.4.69/inspectit-linux.gtk.x86_64.zip 3 RELEASE.1.6.4.69/inspectit-macosx.cocoa.x86.zip 0 RELEASE.1.6.4.69/inspectit-macosx.cocoa.x86_64.zip 1 RELEASE.1.6.4.69/inspectit-win32.win32.x86.zip 1 RELEASE.1.6.4.69/inspectit-win32.win32.x86_64.zip 3 RELEASE.1.6.4.69/inspectit.installer-all.linux.x64.jar 0 RELEASE.1.6.4.69/inspectit.installer-all.linux.x86.jar 0 RELEASE.1.6.4.69/inspectit.installer-all.win.x64.jar 1 RELEASE.1.6.4.69/inspectit.installer-all.win.x86.jar 0 RELEASE.1.6.3.68/inspectit-agent-sun1.5.zip 5 RELEASE.1.6.3.68/inspectit-cmr.linux.x64.tar.gz 13 RELEASE.1.6.3.68/inspectit-cmr.linux.x86.tar.gz 1 RELEASE.1.6.3.68/inspectit-cmr.windows.x64.zip 2 RELEASE.1.6.3.68/inspectit-cmr.windows.x86.zip 0 RELEASE.1.6.3.68/inspectit-linux.gtk.x86.zip 0 RELEASE.1.6.3.68/inspectit-linux.gtk.x86_64.zip 1 RELEASE.1.6.3.68/inspectit-macosx.cocoa.x86.zip 1 RELEASE.1.6.3.68/inspectit-macosx.cocoa.x86_64.zip 2 RELEASE.1.6.3.68/inspectit-win32.win32.x86.zip 1 RELEASE.1.6.3.68/inspectit-win32.win32.x86_64.zip 2 RELEASE.1.6.3.68/inspectit.installer-all.linux.x64.jar 3 RELEASE.1.6.3.68/inspectit.installer-all.linux.x86.jar 2 RELEASE.1.6.3.68/inspectit.installer-all.win.x64.jar 1 RELEASE.1.6.3.68/inspectit.installer-all.win.x86.jar 0
Execution
Get the sourcecode from GitHub and execute
Bash
./gradlew dependencies build execute