GithubHelp home page GithubHelp logo

isabella232 / hygieia-build-bamboo-collector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hygieia/hygieia-build-bamboo-collector

0.0 0.0 0.0 27.29 MB

Hygieia Collector for Bamboo builds

Home Page: https://hygieia.github.io/hygieia-build-bamboo-collector/index.html

License: Apache License 2.0

Dockerfile 0.49% Shell 6.11% Java 93.41%

hygieia-build-bamboo-collector's Introduction

Hygieia Build Bamboo Collector.

Coverage Status Build Status Maven Central

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 Instructions

To configure the Bamboo Collector, execute the following steps:

  • Step 1: Change Directory

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
  • Step 2: Run Maven Build

Run the maven build to package the collector into an executable JAR file:

mvn clean install

The output file bamboo-collector.jar is generated in the bamboo\target folder.

  • Step 3: Set Parameters in Application Properties File

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.

  • Step 4: Deploy the Executable File

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:[email protected]

# 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

hygieia-build-bamboo-collector's People

Contributors

rvema avatar beasknees avatar markrx avatar courtneyp123 avatar megha849 avatar rob-miller-777 avatar chtompki avatar nireesht avatar amitmawkin avatar audithawks avatar benj58xu avatar shriver135 avatar virtualpeter avatar spennec avatar pxk5958 avatar satishc1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.