Skip to content

An adapter to publish the status of Jobs in SemaphoreCI in the cctray XML format, so that it can be consumed by build monitors.

License

Notifications You must be signed in to change notification settings

pricingmonkey/semaphoreci-cctray

Repository files navigation

semaphoreci-cctray

A cctray feed server for SemaphoreCI.

semaphoreci-cctray was built with the goal of using Nevergreen with SemaphoreCI, which lacks a built-in cctray feed. But it enables the use of any tool supporting the cctray format.

Getting started

Prerequisites

Running the tests

cargo test

Building an executable

This command build the executable in development mode:

cargo build --package semaphoreci-cctray --bin semaphoreci-cctray

To build in release mode:

cargo build --package semaphoreci-cctray --bin semaphoreci-cctray --release

Running the app locally

To run a development build:

target/debug/semaphoreci-cctray

To run a release build:

target/release/semaphoreci-cctray

Configuration

The app is configured with environment variables.

Env Var Description Default
BIND_IP IP address to bind to the server 127.0.0.1
PORT TCP port to bind to the server 8080

Running in docker

From the project directory, run:

docker compose up -d --build

This will run both semaphoreci-cctray and nevergreen. By default, you can then open:

From nevergreen, you can connect to semaphoreci-cctray using http://semaphoreci-cctray:8080.

Configuration

You can configure the host ports using environment variables. Eg.

PORT_NEVERGREEN=5080 docker compose up -d --build
Env Var Description Default
PORT_NEVERGREEN configures the host port for nevergreen 5000
PORT_SEMAPHORECI_CCTRAY configures the host port for semaphoreci-cctray 8080

About

An adapter to publish the status of Jobs in SemaphoreCI in the cctray XML format, so that it can be consumed by build monitors.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •