Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 1.17 KB

README.md

File metadata and controls

28 lines (24 loc) · 1.17 KB

Build Status

gocd-ci

GoCD-CI helps you build your projects using a .gocd-ci.yml file. You just have to download the binary and run it from the project's root.

Features

  • Set environment variables
  • Run commands for your build
  • Upload artifacts to GoCD after the build

.gocd-ci.yml

---
  name: "GoCD CI"
  env:
    FOO: "BAR"
  cmd:
    - make setup
    - make test
    - make build
  artifacts:
   gocd-ci : .
  • name - Human readable name for the project. Currently not being used.
  • env - Map of Environment variables required for the application. You'll get GO_* variables for free. If none, it can be ignored from the yml file.
  • cmd - List of commands to run as part of the build. Like travis-ci we run all the commands even if one of them fail. Though the final exit code will be 1 if any command failed.
  • artifacts - Map of artifacts to be exposed on the pipeline via GoCD. If none, it can be ignored from the yml file.