clj-cctray.ci.go
Functions specific to the GoCD server.
normalise-job
(normalise-job project)
Normalises the job name in the given project map.
normalise-stage
(normalise-stage project)
Normalises the stage name in the given project map.
split-name
(split-name {:keys [name]})
GoCD combines the project name, stage and job into the CCTray XML name attribute, using :: as a delimiter.
This function splits the name into individual entries in the project map.
So instead of:
{:name "Project Name :: Stage Name :: Job Name"}
You end up with:
{:name "Project Name"
:stage "Stage Name"
:job "Job Name"}