Skip to content
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.

rande/gitlab-ci-helper

Repository files navigation

gitlab-ci-helper

Build Status Coverage Status GoDoc GitHub license Go Report Card GitHub issues

This tool provides a binary cli to execute common commands inside a gitlab's job.

Installation

gitlab-ci-helper is a single binary with no external dependencies, released for several platforms. Go to the releases page, download the package for your OS, and copy the binary to somewhere on your PATH. Please make sure to rename the binary to gitlab-ci-helper and make it executable.

As it primarily targets GitLab CI environment, a simple curl will also do :).

A release also includes checksums for various build flavors, as a build has access to sensible information (GitLab tokens, AWS credentials…), please use them.

Commands

A detailed commands list is available in the commands.md file

Build Commands

  • ci:revision: dump a REVISION file
  • ci:meta: dump a ci.json file, with build information
  • project:builds:artifacts: download an artifacts file from a previous job

Integration Commands

  • hipchat:message: send a message to hipchat
  • flowdock:message: send a message to flowdock
  • flowdock:status: create a build status on flowdock

Tools commands

  • project:builds: list builds
  • project:list: list projets