Teamcity equivalent of Jenkins DSL plugin
Answered
Hi,
Is there a way to express the definition of a build job as "configuration as code"? It has the obvious benefits of being able to version control, script and automate the job creation process. Jenkins has a plugin for that, the job DSL plugin. If there's no functionality at the moment, are there any plans to support this functionality in the future?
Thanks,
Ben
Please sign in to leave a comment.
I think this is possible with http://confluence.jetbrains.com/display/TCD9/Storing+Project+Settings+in+Version+Control (but I have not tested it yet)
There is also jonnyzzz's TeamCity2DSL on Github. https://github.com/jonnyzzz/TeamCity2DSL
Here is him talking about some implementation options. http://jonnyzzz.com/blog/2016/03/08/gradle-for-dsl/
Hi Guys,
In the upcoming TeamCity 10 version we are working on DSL for defining build configurations. Here is the related request https://youtrack.jetbrains.com/issue/TW-42364, please watch it to get status updates.
We have released TeamCity 10.0 EAP2 with DSL support. Please try it, your feedback is appreciated!
The DSL example on the Confluence page is kind of broken, maybe you could format it something like this?
It would be a shame if people are put of from this feature by the scary looking, broken formattting ;)
Hi Kevin,
Thank you for the report. We fixed the documentation. Also please note that there were changes after EAP2 in DSL. The working example for the upcoming TeamCity 10.0 version can be found here.
I wrote a plugin for doing this in Java:
https://plugins.jetbrains.com/plugin/10349-jarrunner
https://bitbucket.org/charlie_hayes/jarrunner/src/master/
Thanks for sharing!