minodudd / TeamCity-plugins

Apache License 2.0
10 stars 8 forks source link

Adding Date components as Build Params #2

Open sadgit opened 9 years ago

sadgit commented 9 years ago

Sorry for the Noob request - not a Java Dev.

It looks pretty straightforward to add at Line 68

newParams.put("build.date.yy", (new SimpleDateFormat("yy")).format(buildStartDate));
newParams.put("build.date.yyyy", (new SimpleDateFormat("yyyy")).format(buildStartDate));
newParams.put("build.date.mm", (new SimpleDateFormat("MM")).format(buildStartDate));
newParams.put("build.date.dd", (new SimpleDateFormat("dd")).format(buildStartDate));
sadgit commented 9 years ago

See Pull Request