GoCD Pipeline Label Template Improvements

353 views
Skip to first unread message

Connor Shearwood

unread,
Jan 5, 2016, 8:50:48 AM1/5/16
to go-cd-dev
Hello,

As part of our work with GoCD at Springer Nature, we have come across the need to extend the pipeline label template syntax. Whilst we could make these changes internally we would like to share our changes upstream.

We are proposing to add a number of additional special reserved names alongside COUNT to the pipeline label template format as follows:

CURRENTDATE - The date in YYMMDD format
CURRENTTIME - The time in HHMM format
CURRENTDATETIME - The date and time in YYMMDDHHMM format

An initial implementation of this feature is almost complete, but your feedback on this feature would be appreciated.

Yours,
Connor Shearwood
Software Engineer, Tools Engineering
SpringerNature

Zabil C M

unread,
Jan 6, 2016, 2:37:53 AM1/6/16
to GoCD Dev
Hi Connor,
 Thanks!
 Please feel free to send us the pull request once you are done and we'll take a look at it and take care of the testing.

Cheers.

--
You received this message because you are subscribed to the Google Groups "go-cd-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ketan Padegaonkar

unread,
Jan 6, 2016, 3:55:32 AM1/6/16
to go-c...@googlegroups.com
Everyone has a different opinion about how date and time should be rendered :)

It'd be great if this timestamp support was configurable using the SimpleDateFormat pattern and something to ensure that the pattern is not ambiguous. Go already support a suffix like `MATERIAL_NAME[10]`  to pick the first 10 chars of the git SHA for e.g.

If the template could accept something along the lines of `GO_TIMESTAMP[FMT]` where FMT is a SimpleDateFormat compatible string, it'd be great :)

The team usually hangs out at gitter.im/gocd/gocd should you have any questions and want to have a quick chat.

--

Priya Samuel

unread,
Jan 21, 2016, 8:57:36 AM1/21/16
to go-c...@googlegroups.com
Hi Connor,

Thanks, that would be much appreciated. Please make sure you update the docs when you update the label template.


Regards,
Priya Samuel



ThoughtWorks
Reply all
Reply to author
Forward
0 new messages