I've seen some custom settings files used in combination with TFS build, but nothing native. Does Team Foundation Server or Visual Studio Team Services have a Jenkinsfile-like, declarative method for defining a build process?
-
Do you have any specific requirements for TFS Build? That would probably help any answer to actually help you solve your problem—what I think is like a Jenkinsfile might be different to what you're expecting, so a few constraints would be useful to know.– Aurora0001Commented Apr 12, 2017 at 15:33
-
I'm generally looking to provide the ability to source-control the build process, in the same way that a Jenkinsfile does. TFS build pipelines are very opinionated, and fine-grained access to them doesn't look possible.– Dave SwerskyCommented Apr 12, 2017 at 17:19
2 Answers
The strict answer is no, in that there is no direct equivalent to a Jenkinsfile
. However, there are Build Process Templates and you can use the Psake Build Automation tool in combination with templates to reduce the barriers to entry for creating a new build, test and deployment build definitions.
It is nowhere near as fluid as Jenkins' Pipelines as Code, AppVeyor's appveyor.yml
, CircleCI's circleci.yml
and Travis' .travis.yml
. There is a wealth of information on the ALM Rangers Library of tooling and guidance solutions.
Visual Studio Team Services has a YAML Build feature in public preview that allows you to store your build definitions as source controlled files.