How I can configure the build tasks in 2017 within "build" and "release" as code? I am searching for something like the Jenkinsfiles for the Jenkins Pipelines.
Use case is:
- I need to validate params and then decide which tasks I call in which order etc. based on globally passed parameters
- Don't have the only source of changes in a web UI
- Have the configuration in source control
Is there may be a possibility or a Plugin available doing this?
There's no out of the box way. There are marketplace tasks to export build and release definitions as JSON, and you can use the REST APIs to create or update build and release definitions. Combine those things, and you certainly can achieve what you want. I've had some success with scripting build/release definition creation via PowerShell against TFS 2015 and VSTS.