Hygieia Build Bamboo CollectorWelcome ot the Hygieia Build Bamboo CollectorSetup InstructionsHygieia Build Bamboo Collector.Configure the Bamboo Collector to display and monitor information (related to build status) on the Hygieia Dashboard, from Bamboo. Hygieia uses Spring Boot to package the collector as an executable JAR file with dependencies. Setup InstructionsTo configure the Bamboo Collector, execute the following steps:
Change the current working directory to the bamboo directory of your Hygieia source code installation. For example, in the Windows command prompt, run the following command: cd C:\Users\[usernname]\hygieia\collectors\build\bamboo
Run the maven build to package the collector into an executable JAR file: mvn install The output file bamboo-collector.jar is generated in the bamboo\target folder.
Set the configurable parameters in the application.properties file to connect to the Dashboard MongoDB database instance, including properties required by the Bamboo Collector. To configure parameters for the Bamboo Collector, refer to the sample application.properties file. For information about sourcing the application properties file, refer to the Spring Boot Documentation.
To deploy the bamboo-collector.jar file, change directory to bamboo\target, and then execute the following from the command prompt: java -jar bamboo-collector.jar --spring.config.name=bamboo --spring.config.location=[path to application.properties file] Sample Application Properties File# Database Name dbname=dashboarddb # Database HostName - default is localhost dbhost=localhost # Database Port - default is 27017 dbport=9999 # MongoDB replicaset dbreplicaset=[false if you are not using MongoDB replicaset] dbhostport=[host1:port1,host2:port2,host3:port3] # Database Username - default is blank dbusername=dashboarduser # Database Password - default is blank dbpassword=dbpassword # Collector schedule (required) bamboo.cron=0 0/5 * * * * # Jenkins server (required) - Can provide multiple bamboo.servers[0]=http://bamboo.company.com # If using username/token for API authentication # (required for Cloudbees Jenkins Ops Center) see sample bamboo.servers[1]=http://username:token@bamboo.company.com # Another option: If using same username/password Jenkins auth, # set username/apiKey to use HTTP Basic Auth (blank=no auth) bamboo.username= bamboo.apiKey= # Determines if build console log is collected - defaults to false # (Bamboo for some reason has not exposed it as an API) bamboo.saveLog=false |